Menu

#600 Problem to bind ldap

open
nobody
None
5
2007-08-06
2007-08-06
CaloRE
No

I've found a problem on the ldap authentication "lib/owl.lib.php" (on Debian ETCH package).

On ldap_authenticate function must change the following line:

if (!($bind=@ldap_bind($connect,"$usr@$domain","$pswd"))) {

with:

if (!($bind=@ldap_bind($connect,"$default->ldapuserattr=$usr,$domain","$pswd"))) {

Sorry for my bad english.

Ciao, marco

Discussion

  • Steve

    Steve - 2007-08-06

    Logged In: YES
    user_id=55225
    Originator: NO

    Yes the ldap function often times has to be changed to your needs, to accomodate your LDAP Configuration.

     
  • CaloRE

    CaloRE - 2007-08-07

    Logged In: YES
    user_id=1861566
    Originator: YES

    You say well, but I think that to use $default variable (see config.php) is more flexible than to hard coding "$usr@$domain" or "$default->ldapuserattr=$usr,$domain". I think to re-use $default->ldapuserattr variable for eliminate @ from lib/owl.lib.php.

     

Log in to post a comment.

MongoDB Logo MongoDB