idbroker
idbroker copied to clipboard
Active Directory search problems using root of the domain as a $base_dn
Hi!
I'm using your LDAP Datasource in my Project (https://github.com/fiveoclock/proximus-admin/blob/master/app/models/datasources/ldap_source.php) and had problems searching when I used the root of the domain as $base_dn.
The solution was to following the Ldap option:
ldap_set_option($this->database, LDAP_OPT_REFERRALS, 0);
as described here: http://www.php.net/manual/de/function.ldap-search.php#49889
I added the line stated above to the ActiveDirectory specific section (line 1270) now everything is working properly :-) Maybe you want to add this to master as well....
By the way.. thank you for your work! I'm using your Ldap source to authenticate users against AD.
Cheers, Alex
I ran into this the other day also and updated the datasource in the official cake branch as they have adopted it. I'll update mine as well.
On Mon, Jun 20, 2011 at 8:44 PM, fiveoclock [email protected] wrote:
Hi!
I'm using your LDAP Datasource in my Project (https://github.com/fiveoclock/proximus-admin/blob/master/app/models/datasources/ldap_source.php) and had problems searching when I used the root of the domain as $base_dn.
The solution was to following the Ldap option:
ldap_set_option($this->database, LDAP_OPT_REFERRALS, 0);
as described here: http://www.php.net/manual/de/function.ldap-search.php#49889
I added the line stated above to the ActiveDirectory specific section (line 1270) now everything is working properly :-) Maybe you want to add this to master as well....
By the way.. thank you for your work! I'm using your Ldap source to authenticate users against AD.
Cheers, Alex
Reply to this email directly or view it on GitHub: https://github.com/analogrithems/idbroker/issues/5