note 50060 added to function.ldap-bind

From: Date: Wed, 16 Feb 2005 19:27:09 +0000
Subject: note 50060 added to function.ldap-bind
Groups: php.notes 
Request: Send a blank email to php-notes+get-85130@lists.php.net to get a copy of this message
As noted before with the password, I have found that if either of the valuse for user or password are blank, or as in my case a typo resulted in a blank user as it was an undefined variable, the ldap_bind() will just perform an anonymous bind and return true! Shouldn't this detect the presence of the additional values and return an error? At least if the user or password is passed. If they are both blank I'm not sure what it should do. ---- Manual Page -- http://www.php.net/manual/en/function.ldap-bind.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50060 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50060&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50060&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50060&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50060&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50060&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50060&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85130) next »