httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Hall <>
Subject [users@httpd] Apache 2.2.0 + Solaris 10 + ~user not working.
Date Wed, 19 Apr 2006 22:18:19 GMT

I'm reaching my wits end here. I have Sol10 fully installed,
and automounts are working (this is where the home dirs are).

So if I do any of the following:

"cd /home/user"
"ls /home/user"
"su - user"

The home dir gets automagically mounted. That works great.

Here's where my setup gets a little tricky. All the automaps
are stored in LDAP (OpenLDAP). I linked Apache against the
OpenLDAP libs. I can query against the server using the Solaris
provided LDAP tools, and the OpenLDAP ones.

If I "cd /home/user" and then hit the webserver with a "~user"
request, it works fine. If the user dir is not mounted, then
I get a 404.

I wrote a quick C program to "stat" the directory, which triggered
automountd to "do the right thing". AFAICT, the system is performing
as it should be.

My main question at this point is how is Apache handling requests
for userdirs? Why isn't it triggering an automount? Is Apache not
performing a system 'stat' or something similiar? Are the OpenLDAP libs 
of Apache "in the way" of the system LDAP libs? I needed the OpenLDAP
libs in order to do TLS/SSL which Apache 2.2 actively complained

If I switch the backend to "files" in nsswitch.conf, and include
the correct entries for the home dirs, then it works as expected.

At this point, I'm really just looking for closure as to why this is
acting as described, or more things for me to look at.

I used the default apache conf that came with 2.2.0, and turned on

Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.7i PHP/5.1.2 Server
ldd httpd =>     /lib/ =>     /local/apache/lib/ =>      /local/ldap/lib/ =>   /lib/ =>         /local/sasl2/lib/ =>    /lib/ =>        /lib/ =>       /local/ssl/lib/ =>    /local/ssl/lib/ =>      /local/ldap/lib/ =>         /local/apache/lib/ =>         /local/apache/lib/ =>  /lib/ =>      /lib/ =>    /lib/ =>        /lib/ =>   /lib/ =>       /lib/ =>     /lib/ =>         /usr/sfw/lib/ =>   /lib/ =>   /lib/ =>    /lib/ =>   /lib/ =>  /lib/ =>         /lib/

Any thoughts or other things for me to look at would be appreciated.

It's always September somewhere on the 'net. |
Another proud member of Eep's killfile.      | Unix Sys. Admin.
All projects approach the ghetto, some       |
faster than others.                          |

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message