Bug 33802 - ldap cache doesn't work inside VirtualHost
Summary: ldap cache doesn't work inside VirtualHost
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_ldap (show other bugs)
Version: 2.0.53
Hardware: Other Linux
: P3 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL: http://marc.theaimsgroup.com/?l=apach...
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-02 11:03 UTC by Mark Young
Modified: 2010-12-04 07:31 UTC (History)
1 user (show)



Attachments
httpd.conf that shows the bug (46.14 KB, text/plain)
2005-10-26 06:51 UTC, Dirk Bergstrom
Details
How to reproduce the ldap cache problem (15.29 KB, text/plain)
2005-11-03 13:17 UTC, Mark Young
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Young 2005-03-02 11:03:12 UTC
I have found that the ldap-status handler only reports details if it is
configured outside of a VirtualHost. If it is inside a VirtualHost then the
ldap-status page only displays the title "LDAP Cache Information".

So I got my ssl configuration to work by commenting out the VirtualHost tags:

        #<VirtualHost *:443>
        #</VirtualHost>

Then I had to turn off the "SSLEngine off" in the default HTTP configuration.
Comment 1 Mark Young 2005-03-02 11:12:15 UTC
I have confirmed, through testing, that all ldap lookups are going out to the
ldap server, as verified by network tracing, on each page access. This is not
just a problem with the ldap-status page display, the problem is that all page
accesses are delayed by about 3 seconds whilst ldap lookups take place.
Comment 2 Brad Nicholes 2005-03-10 22:38:55 UTC
I was able to put the cache-handler as well as auth_ldap configuration 
directive within a virtual host and everything worked as expected.  Are you 
sure you had the caching enabled?  Can you provide an example of a 
configuration that doesn't work?
Comment 3 Mark Young 2005-10-24 15:58:59 UTC
(In reply to comment #2)
> Can you provide an example of a configuration that doesn't work?

Yes. I will do so. Sorry for the delay, I need to get a system that I can play
with to do this.
Comment 4 Dirk Bergstrom 2005-10-26 06:51:55 UTC
Created attachment 16811 [details]
httpd.conf that shows the bug

I have seen the same problem on 2.0.54.  Attached is our (very ugly)
httpd.conf.  The problem is the same if I put the ldap-status bit inside the
virtual host.

I believe that ldap-status worked for us in 2.0.53...
Comment 5 Brad Nicholes 2005-10-26 18:54:30 UTC
  I tried to duplicate the same LDAP, SSL and virtual host configuration you 
have and I am still unable to duplcation the problem.  Everything seems to 
work as expected.
Comment 6 Mark Young 2005-11-03 13:17:57 UTC
Created attachment 16860 [details]
How to reproduce the ldap cache problem
Comment 7 Mark Young 2005-11-03 13:18:58 UTC
Comment on attachment 16860 [details]
How to reproduce the ldap cache problem

Please see this attachment for full details of how I can reproduce the ldap
cache not working.
Comment 8 Mark Young 2006-02-28 00:40:34 UTC
Sorry, this is my first time using bugzilla. I didn't realise that I needed to 
change the status.
All the best,
Mark
Comment 9 Graham Leggett 2007-11-27 08:26:25 UTC
Can you verify whether this bug is still present in v2.2.x of httpd?
Comment 10 Eric Covener 2010-12-04 07:31:35 UTC
fixed in 2.2.16 and later