logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: auth_ldap authentication sometimes takes exact 60 seconds
Author
simkin



Joined: 20 Sep 2013
Posts: 4
Location: NL

PostPosted: Tue 22 Oct '13 16:34    Post subject: auth_ldap authentication sometimes takes exact 60 seconds Reply with quote

After being idle for a while users need to wait one minute before the website is opened (see timestamps first two lines first code snippit). Please advise how this can be resolved. I did not have this problem when using Apache 2.2.

System:
- Windows Server 2008 R2 Standard Edition Service Pack 1
- Server version: Apache/2.4.6 (Win64)
- Apache Lounge VC11 Server built: Jul 15 2013 20:45:22
- PHP Version 5.5.3

Code:
[Tue Oct 22 16:11:56.931064 2013] [authnz_ldap:debug] [pid 1576:tid 1048] mod_authnz_ldap.c(500): [client 111.222.333.444:38369] AH01691: auth_ldap authenticate: using URL ldap://ldap.subdomain.domain.com:389/OU=Users,OU=Accounts,OU=HQ,OU=DOMAIN,DC=COM?sAMAccountName?sub?(objectClass=user)
[Tue Oct 22 16:12:56.957064 2013] [authnz_ldap:debug] [pid 1576:tid 1048] mod_authnz_ldap.c(592): [client 111.222.333.444:38369] AH01697: auth_ldap authenticate: accepting lmolenaar
[Tue Oct 22 16:12:57.478064 2013] [authnz_ldap:debug] [pid 1576:tid 1096] mod_authnz_ldap.c(500): [client 111.222.333.444:39906] AH01691: auth_ldap authenticate: using URL ldap://ldap.subdomain.domain.com:389/OU=Users,OU=Accounts,OU=HQ,OU=DOMAIN,DC=COM?sAMAccountName?sub?(objectClass=user), referer: https://subdomain.domain.com/index.php?title=Main_Page
[Tue Oct 22 16:12:57.478064 2013] [authnz_ldap:debug] [pid 1576:tid 1096] mod_authnz_ldap.c(592): [client 111.222.333.444:39906] AH01697: auth_ldap authenticate: accepting lmolenaar, referer: https://subdomain.domain.com/index.php?title=Main_Page
[Tue Oct 22 16:12:57.503064 2013] [authnz_ldap:debug] [pid 1576:tid 1040] mod_authnz_ldap.c(500): [client 111.222.333.444:39907] AH01691: auth_ldap authenticate: using URL ldap://ldap.subdomain.domain.com:389/OU=Users,OU=Accounts,OU=HQ,OU=DOMAIN,DC=COM?sAMAccountName?sub?(objectClass=user), referer: https://subdomain.domain.com/index.php?title=Main_Page
[Tue Oct 22 16:12:57.503064 2013] [authnz_ldap:debug] [pid 1576:tid 1040] mod_authnz_ldap.c(592): [client 111.222.333.444:39907] AH01697: auth_ldap authenticate: accepting lmolenaar, referer: https://subdomain.domain.com/index.php?title=Main_Page


Code:
   LDAPSharedCacheSize 500000
   LDAPConnectionTimeout 3
   LDAPCacheEntries 1024
   LDAPCacheTTL 10
   LDAPOpCacheEntries 1024
   LDAPOpCacheTTL 10

<VirtualHost *:443>

   DocumentRoot "C:/Apache24/htdocs/mediawiki"   
   <Directory "C:/Apache24/htdocs/mediawiki">
      Options Includes FollowSymLinks MultiViews
      LDAPReferrals Off   
        AuthBasicProvider ldap
        AuthType Basic
        AuthName "Login using your domain credentials"
        AuthLDAPURL "ldap://ldap.subdomain.domain.com:389/OU=Users,OU=Accounts,OU=HQ,OU=DOMAIN,DC=COM?sAMAccountName?sub?(objectClass=user)"
        AuthLDAPBindDN "BIND-USER"
        AuthLDAPBindPassword "PASSWORD"
        require valid-user
      RequestHeader set REMOTE-USER %{REMOTE_USER}s
   </Directory>

...
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 24 Oct '13 10:09    Post subject: Reply with quote

You should take a look at LDAPConnectionPoolTTL
Back to top


Reply to topic   Topic: auth_ldap authentication sometimes takes exact 60 seconds View previous topic :: View next topic
Post new topic   Forum Index -> Apache