From: William L. <le...@k2...> - 2006-06-21 22:41:39
|
Hello all, I've been working on getting phpwiki to use LDAP to authenticate users in the windows active directory. but I'm not doing so well. I can get apache to use LDAP for basic authentication, and I could just do that on the directory the wiki is and setup the wiki for anonymous use, but thats not so clean. I think it is just going to be a matter of getting the config.ini right. here is what i have: ldapclient is a user on my domain. This is the initial user to bind to. This account is working because the other ldap connection uses it. server4.pdi.com is a domain controller on the network. the ldap port is 389, This is working because the other connection uses it. WikiUsers is a group of users that should be able to access the wiki. The domain is named pdi.com So from my config.ini: USER_AUTH_ORDER = "LDAP" USER_AUTH_POLICY = stacked LDAP_AUTH_HOST = "ldap://server4.pdi.com:389" LDAP_BASE_DN = "ou=Users,dc=pdi.com" LDAP_SET_OPTION = "LDAP_OPT_PROTOCOL_VERSION=3:LDAP_OPT_REFFERALS=0" LDAP_AUTH_USER = "cn=ldapclient,ou=Users,dc=pdi.com" LDAP_AUTH_PASSWORD = thisisnottherealpassword LDAP_SEARCH_FIELD = sAMAccountName LDAP_OU_USERS = ou=Users LDAP_OU_GROUP = ou=Groups I'm sure its just a matter of getting the right things in here, but I am pretty ignorant when it comes to LDAP. Any help or an example of a configuration for connecting to active directory would be appreciated. Thanks, -William |