note 77987 added to function.ldap-sasl-bind
| From: | dwhite at olp dot net | Date: | Sun, 23 Sep 2007 00:30:04 +0000 |
| Subject: | note 77987 added to function.ldap-sasl-bind | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130698@lists.php.net to get a copy of this message | ||
With the patch introduced in the bug below (which has been included in CVS), the parameters for this
function should be:
bool ldap_sasl_bind ( resource $link [, string $binddn [, string $password [, string $sasl_mech [,
string $sasl_realm [, string $sasl_authc_id [, string $sasl_authz_id [, string $props]]]]]]] )
Some example calls:
$r=ldap_sasl_bind ( $ds, NULL, 'mysecret', 'DIGEST-MD5', NULL,
'jimmy');
With authz_id, specifying a dn:
$r=ldap_sasl_bind ( $ds, NULL, 'mysecret', 'DIGEST-MD5', NULL,
'jimmy', 'dn:uid=tommy,ou=people,dc=example,dc=com');
With authz_id, specifying a SASL username:
$r=ldap_sasl_bind ( $ds, NULL, 'mysecret', 'DIGEST-MD5', NULL,
'jimmy', 'u:tommy');
Also, since SASL authentication was introduced in LDAP version 3,
you may need to explicitly set the version number with:
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
----
Server IP: 209.41.74.194
Probable Submitter: 65.161.253.242
----
Manual Page -- http://www.php.net/manual/en/function.ldap-sasl-bind.php
Edit -- https://master.php.net/note/edit/77987
Del: integrated -- https://master.php.net/note/delete/77987/integrated
Del: useless -- https://master.php.net/note/delete/77987/useless
Del: bad code -- https://master.php.net/note/delete/77987/bad+code
Del: spam -- https://master.php.net/note/delete/77987/spam
Del: non-english -- https://master.php.net/note/delete/77987/non-english
Del: in docs -- https://master.php.net/note/delete/77987/in+docs
Del: other reasons-- https://master.php.net/note/delete/77987
Reject -- https://master.php.net/note/reject/77987
Search -- https://master.php.net/manage/user-notes.php