Question : How to have Apache authenticate against Mac OS X Open Directory (10.5)

I want to have all my "secured" websites authenticate against my Mac OS X 10.5 Open Directory server. Currently the sites simply authenticate against a local passwd file on the server. I think I'm simply stuck at the AuthLDAPURL line in my httpd config file.

The OD server is running 10.5.7 and I have both Mac and Linux clients successfully authenticating against it.

I'm unsure of what to put for the objectClass attribute for starters.
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
From my httpd config file for the test site. (stuff changed to protect the innocent)
 

        ServerAdmin me
        ServerAlias tessite
        ServerName testsite.mydomain.com
        DocumentRoot /home/websites/testsite/www
        
                AuthType Basic
                AuthBasicProvider  ldap
                AuthzLDAPAuthoritative  off
                AuthName  "LDAP Auth Test"
                AuthLDAPURL  ldap://ldap.mydomain.com/dc=mydomain,dc=com?uid?one?objectClass=*
                Require  ldap-attribute  employeeType=employee
                AllowOverride All
 
       
 

Answer : How to have Apache authenticate against Mac OS X Open Directory (10.5)

I figured it out... here is the change I made based on my current schema:

AuthLDAPURL  ldap://ldap.mydomain.com/cn=users,dc=myserver,dc=mydomain,dc=com

Random Solutions  
 
programming4us programming4us