Thread:Extension talk:LDAP Authentication/Undefined offset: 0 in /xxx/wiki/extensions/LdapAuthentication.php on line 1028/reply (3)

Hello Again Ryan,

Correction I did change the password to a different one. It had the same error: Undefined offset: 0 in LdapAuthentication.php on line 1028. I was able to extract a debug log

2010-04-10 03:53:56 itswaki: Entering validDomain 2010-04-10 03:53:56 itswaki: User is using a valid domain. 2010-04-10 03:53:56 itswaki: Setting domain as: proxy2 2010-04-10 03:53:56 itswaki: Entering getCanonicalName 2010-04-10 03:53:56 itswaki: Username isn't empty. 2010-04-10 03:53:56 itswaki: Munged username: User01 2010-04-10 03:53:56 itswaki: Entering authenticate 2010-04-10 03:53:56 itswaki: 2010-04-10 03:53:56 itswaki: Entering Connect 2010-04-10 03:53:56 itswaki: Using TLS or not using encryption. 2010-04-10 03:53:56 itswaki: Using servers:  ldap://proxy2.xs.edu.ph 2010-04-10 03:53:56  itswaki: Connected successfully 2010-04-10 03:53:56 itswaki: Entering getSearchString 2010-04-10 03:53:56 itswaki: Doing an anonymous bind 2010-04-10 03:53:56 itswaki: Entering getUserDN 2010-04-10 03:53:56 itswaki: Created a regular filter: (uid=User01) 2010-04-10 03:53:56 itswaki: Entering getBaseDN 2010-04-10 03:53:56 itswaki: basedn is not set for this type of entry, trying to get the default basedn. 2010-04-10 03:53:56 itswaki: Entering getBaseDN 2010-04-10 03:53:56 itswaki: basedn is dc=proxy2,dc=xs,dc=edu,dc=ph 2010-04-10 03:53:56 itswaki: Using base: dc=proxy2,dc=xs,dc=edu,dc=ph 2010-04-10 03:53:56 itswaki: Fetched username is not a string (check your hook code...). This message can be safely ignored if you do not have the SetUsernameAttributeFromLDAP hook defined. 2010-04-10 03:53:56 itswaki: userdn is: 2010-04-10 03:53:56 itswaki: User DN is blank 2010-04-10 03:53:56 itswaki: Entering strict. 2010-04-10 03:53:56 itswaki: Returning true in strict. 2010-04-10 03:53:56 itswaki: Entering allowPasswordChange 2010-04-10 03:53:56 itswaki: Entering modifyUITemplate

So now the DN is blank and could not bind. What seems to be wrong here? Is there any code for me to expose other bugs? Thanks again.