note 52253 added to function.ldap-connect

From: Date: Tue, 26 Apr 2005 10:58:04 +0000
Subject: note 52253 added to function.ldap-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-88555@lists.php.net to get a copy of this message
As mentioned above, openLDAP will always return a resource, even if the server name isn't valid. If you then bind with errors suppressed (@ldap_bind) and it fails, it's not obvious what caused the failure (ie: connection or credentials). As the bind doesn't return a resource you can't get the last error from ldap_error etc. either. If you display just a message about login failure to the user they may get frustrated re-typing a valid username/password when it's the connection that's at fault. ---- Manual Page -- http://www.php.net/manual/en/function.ldap-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52253 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52253&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52253&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52253&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52253&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52253&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52253&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88555) next »