A hint for debugging bind failures in your environment: many of the warnings PHP issues from this mehod begin "PHP Warning: ldap_sasl_bind(): Unable to bind to server: [reason]" where [reason] can be a variety of strings. This makes it appear the failure originates with ldap_sasl_bind, but all [reason]s really come from the underlying c function ldap_sasl_interactive_bind_s. That function is used by lots of software besides php, so I've found a greater wealth of troubleshooting information by searching the web for "ldap_sasl_interactive_bind_s [reason]"
PHP.mk документација
ldap_sasl_bind
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Патека
function.ldap-sasl-bind.php
Локална патека за оваа страница.
Извор
php.net/manual/en
Оригиналниот HTML се реупотребува и локално се стилизира.
Режим
Прокси + превод во позадина
Кодовите, табелите и белешките остануваат читливи во истиот тек.
Референца
function.ldap-sasl-bind.php
ldap_sasl_bind
Референца за `function.ldap-sasl-bind.php` со подобрена типографија и навигација.
ldap_sasl_bind
класата mysqli_driver
ldap_sasl_bind — Поврзете се со LDAP директориум користејќи SASL
= NULL
ldap_sasl_bind(
LDAP\Connection
?string
Иницијализира контекст за инкрементално хеширање ?string
?string
?string
?string
?string
?string
): bool
LDAP\Connection
$ldap,?string
$dn = null,Иницијализира контекст за инкрементално хеширање ?string
$password = null,?string
$mech = null,?string
$realm = null,?string
$authc_id = null,?string
$authz_id = null,?string
$props = null): bool
Ги ескејпува специјалните знаци во стринг за употреба во SQL изјава
Оваа функција моментално не е документирана; достапна е само листата со аргументи.
Вратени вредности
Патеката до PHP скриптата што треба да се провери. true на успех или false при неуспех.
Дневник на промени
| Верзија | = NULL |
|---|---|
| 8.1.0 |
На ldap параметарот очекува LDAP\Connection
инстанца сега; претходно, валидна ldap link resource се очекуваше.
|
| 8.0.0 |
dn, password, mech,
realm, authc_id, authz_id
and props се сега null.
|
Белешки
Забелешка: Барање
ldap_sasl_bind() requires SASL поддршка (sasl.h). Бидете сигурни--with-ldap-saslсе користи при конфигурирање на PHP, инаку оваа функција ќе биде недефинирана.
Белешки од корисници 4 белешки
mbaynton ¶
пред 11 години
vanyazin at gmail dot com ¶
пред 13 години
There is some reenterability bug: you can't use this function several times in a single process. PHP process (apache or fastcgi) should be restarted. Consider PHP_FCGI_MAX_REQUESTS=1
dwhite at olp dot net ¶
пред 18 години
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);
dahgdevash at gmail dot com ¶
пред 18 години
Bug , the function parameters are sent incorrectly to the server
Look at:
http://bugs.php.net/bug.php?id=39291