SUN-Apache + LDAP: 2 different worlds?

From: Rob De Langhe (rob.delanghe@telindus.be)
Date: Mon Jun 23 2003 - 03:51:15 EDT


Hi,
 
anyone successfully got the SUN-shipped apache server to work with LDAP for
authentication?
 
I'm running Sol-9, Apache 1.3.26, and iPlanet LDAP server.
 
The host is configured to authenticate UNIX logins against the LDAP server,
that part works fine since several months (files in /var/ldap, modified
/etc/nsswitch.conf)
 
I added directives in /etc/apache/httpd.conf as follows:
 
<Location /secure>
AuthType Basic
AuthName "secure section"
require myloginname
</Location>
 
When connecting to the URL "http://myserver/secure <http://myserver/secure>
" it get the popup to authenticate, but then shows me a server-error page.
The server's error_log file reveils
 
... configuration error: could'n check user. No user file?: /secure/
 
I also tried with the directive
 
<Location /secure>
AuthType Basic
AuthName "secure section"
LDAPServer ldap://ldap1..../ <ldap://ldap1..../>
LDAP...
require myloginname
</Location>
 
but at startup the server fails with -sort of- "invalid directive
LDAPServer" message.
 
Conclusions:
1) is there no support for LDAP auth with the shipped version of Apache
(1.3.26), and should I install the freeware version 2 ?
2) there is support for LDAP included with v 1.3.26, but I am missing
something in its configuration.
 
Any clues ?
 
Rob
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:38 EDT