Re: LDAP Troubleshooting
My environment: Ubuntu 9.04, Tiki 3.1, PHP 5.2.6, PEAR::Auth 1.6.1 and latest php5-ldap Ubuntu package (and pre-requsites).
I copied my LDAP config info directly from another wiki (DekiWiki) which worked fine with LDAP authentication.
But when I try logging in to Tiki, I get invalid password. As noted in my previous post, the error from the Auth LDAP module is:
PHP (5.2.6-3ubuntu4.2) ERROR (E_WARNING):
File: lib/pear/Auth/Container/LDAP.php
Line: 330
Type: ldap_bind() function.ldap-bind: Unable to bind to server: Invalid DN syntax
I've tried modifying enabling debugging but that didn't seem to work (same problem as Gabriel). I tried changing the error_reporting in my php.ini file and restarting apache2 but I still don't see any messages on the wiki web page or in any log file that I had specified in my php.ini.
Next, I ran some LDAP CLI utilities to test my connection to the LDAP server:
serverA% ldapwhoami -x -h ldap1.eng.mycompany.ca -D "uid=t821891,ou=people,ou=internal,o=mycompany,c=ca" -w temp123
returned this:
dn:uid=t821891,ou=people,ou=internal,o=mycompany,c=ca
I also tried running:
serverA% ldapsearch -x -h ldap1.eng.mycompany.ca -D "uid=t821891,ou=people,ou=internal,o=mycompany,c=ca" -w temp123
which gave:
- extended LDIF
- LDAPv3
- base (default) with scope subtree
- filter: (objectclass=*)
- requesting: sn
-
- search result
search: 2
result: 32 No such object
- numResponses: 1
In any case, there was no complaint about invalid DN syntax that I got from the Auth LDAP module as shown above.
If I can't get this (LDAP authentication) working, I'll likely be asked to abandon tikiwiki and stick with our dekiwiki installation.
Thanks,
Paul