note 44453 added to function.ldap-compare

From: Date: Fri, 06 Aug 2004 02:08:11 +0000
Subject: note 44453 added to function.ldap-compare
Groups: php.notes 
Request: Send a blank email to php-notes+get-74099@lists.php.net to get a copy of this message
Just a side note that this is not how you'd ever AUTHENTICATE someone, just an example code. The common way to authenticate is to get the users name, use search and perhaps selection to the user to get her DN (single value) then attempt to BIND to the ldapserver using that dn and the offered password. If it works, then it's the right password. Note that the password offered MUST NOT BE EMPTY or many LDAPs will presume you meant to authenticate anonymously and it will succeed, leaving you thinking it's the right password. ---- Manual Page -- http://www.php.net/manual/en/function.ldap-compare.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44453 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44453&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44453&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#74099) next »