ID: 45045 Updated by: [EMAIL PROTECTED] Reported By: nedrafehi at gmail dot com -Status: Open +Status: Feedback Bug Type: LDAP related Operating System: Vista/Server 2003 PHP Version: 5.2.6 New Comment:
Check your ldap server logs for possible errors. Previous Comments: ------------------------------------------------------------------------ [2008-05-20 06:54:02] nedrafehi at gmail dot com Description: ------------ When using LDAP to authenticate ActiveDirectory users hosted on Windows Server 2003 I get some issues connecting with all users. Reproduce code: --------------- global $ad_opts; $auth = ldap_connect($serverAddress) or die("Could not connect to LDAP server."); # SET VERSION ################# ldap_set_option($auth, LDAP_OPT_PROTOCOL_VERSION, 3); ldap_set_option($auth, LDAP_OPT_REFERRALS, 0); $login = ldap_bind($auth, $u, $p); if(!$login) { return 0; } return 1; } Expected result: ---------------- I expect the function to return 1 if the correct user credentials have been supplied. Actual result: -------------- While this works for most users, there have been a few users I've had trouble authenticating. Even though the username/password are correct, it fails. The strange thing is, users in the same 'directory' as the user are authenticated through LDAP. Also, this user has no trouble actually logging into the Windows network so I have no idea why this may be happening. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45045&edit=1