From: William L. <le...@k2...> - 2006-06-26 20:20:33
|
I've been digging through the code trying to figure out why I can't authenticate, and the best I can tell, an instance of _LDAPPassUser never gets created. This tells me that I have some other problem I need to deal with before worrying about the LDAP specific settings. Basically I know that _LDAPPassUser->checkPass will never run until this is fixed on my install. Is there any overview of the authentication code out there, or can someone provide one? I feel like I am missing something in my understanding of how this part of the code works. -William William Leader wrote: > 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 > > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > > > |