Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Apache modules ldap and auth_ldap to work on SUSE 9.2 1

Status
Not open for further replies.

rawe

Programmer
May 25, 2004
8
DK
Hi

We're trying to get LDAP authentication to work on our Apache server
(running on an installation of SUSE Linux Professional 9.2).
We can see that the modules ldap and auth_ldap are supplied as precompiled
modules in the apache2-prefork folders.
We have enabled the Apache modules in the YAST (in the HTTP Server module
of YAST) and everything seems to work fine - the modules get registrered as
loaded in the /etc/apache2/sysconfig.d/loadmodule.conf once the Apache
server is restarted.

But: as soon as we put some LDAP authentication lines in the
part of the httpd.conf file, we get errors when trying to restart Apache.
We try to insert the following lines in the part of httpd.conf:

Code:
<directory /srv/[URL unfurl="true"]www/cgi-bin>[/URL]
AuthType Basic
AuthName "BackupPC"
LDAP_Server 192.168.1.23
LDAP_Port 389
Base_DN "dc=example,dc=com"
UID_attr uid
AuthAuthoritative on
Require valid-user
</directory>

Restarting Apache with the following lines inserted in httpd.conf gets us the following error:

Syntax error on line 213 of /etc/apache2/httpd.conf:
Invalid command 'LDAP_Server', perhaps mis-spelled or defined by a module not included in the server configuration


Hopefully someone out there has a tip to what needs to be corrected/changed?

Best

Rasmus Wehner
ROSA - The Danish Rock Council
Denmark
 
That line must be like

ldap://ldap.domain.com:389/dc=domain,dc=com??base?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top