From:             nedrafehi at gmail dot com
Operating system: Vista/Server 2003
PHP version:      5.2.6
PHP Bug Type:     LDAP related
Bug description:  Not all users able to login

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 bug report at http://bugs.php.net/?id=45045&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45045&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45045&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45045&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45045&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45045&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45045&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45045&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45045&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45045&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45045&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45045&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45045&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45045&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45045&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45045&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45045&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45045&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45045&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45045&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45045&r=mysqlcfg

Reply via email to