Loading...
 
LDAP / Active directory

LDAP / Active directory


OpenLDAP bind with cn, login with uid

Hello,
I'm struggling to set up LDAP authentication in Tiki7.
I need to first bind with:
cn=bindusername,ou=Auth,o=universityname,c=ca
then I can authenticate with:
uid=username,ou=People,o=universityname,c=ca
Sorry if I'm missing something obvious, but if I look at the logs it looks it's trying to bind with the user name that I'm trying to log in with.

How do I bind with a different userid and DN?
Will I have to hack ldap.php to do it?

OK, I hacked ldap.php and on line 204 I manually entered the auth DN:
$this->options'binddn' = 'cn=authusername,ou=Auth,o=university,c=ca';
and added this below:
$this->options'bindpw' = 'mypassword';
I'm still getting a blank screen when I try to log in and the user account is not getting created in Tiki.
Any advice, please?

it helps if I install php5-ldap
smile

  • bangs head against the wall*

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting