Problem with LDAP Pear::Auth Settings With Microsoft Active Directory Services (ADS) And TikiWiki 1.9.7 - URGENT
Hi,
I am trying to integrate my TikiWiki application (windows, easyPHP) with the ADS with following LDAP settings:
Auth Type: LDAP
IMAP/POP3/LDAP Host: Valid ADS name
IMAP/POP3/LDAP Port: 389
IMAP/POP3 BaseDSN: -
Create user if not in Tiki? Checked
Create user if not in Auth? Not Checked
Just use Tiki auth for admin? Checked
LDAP URL: -
LDAP Scope: sub
LDAP Base DN: dc=my-domain,dc=com
LDAP User DN: -
LDAP User Attribute: sAMAccountName
LDAP User OC: *
LDAP Group DN: -
LDAP Group Attribute: cn
LDAP Group OC: groupOfUniqueNames
LDAP Member Attribute: uniqueMember
LDAP Member Is DN: n
LDAP Admin User: cn=LDAPReader, dc=my-domain, dc=com
LDAP Admin Pwd: valid password
I have made necessary changes to "userslib.php".
I am not able to login with any valid LDAP user. But the login works only if OU is mentioned in Base DB or User DN. As this application should be accessed by users belonging to multiple OUs, I can't stick to single OU. I used ldp.exe to connect to LDAP server and I was able to search the users just by using "dc=my-domain,dc=com". I am not sure why it is not working in TikiWiki. Are there any additional settings required?
I tried to debug in LDAP.php by setting debug=true in options in userslib.php. But I am not getting any debug statements in EasyPHP.log. I tried givin echo and print in various places but I am not seeing any output in any logs. As I am new to PHP, please let me know how to debug PHP.