PHP: ldap_set_rebind_proc - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ldap_sort ldap_set_option

Last updated: Fri, 26 Jan 2007

view this page in

# ldap_set_rebind_proc

(PHP 4 >= 4.2.0, PHP 5)

ldap_set_rebind_proc -- Set a callback function to do re-binds on referral chasing

## Description

bool ldap_set_rebind_proc ( resource link, callback callback )

Внимание
К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.

add a note User Contributed Notes
ldap_set_rebind_proc
pearcec at commnav dot com
01-May-2003 04:09
`PHP expects the ldap function ldap_set_rebind_proc to be the one that has tree parameters. As far as I can tell this isn't in the 2.0 release of OpenLDAP. But made it into 2.1. Configure will tell you
checking for 3 arg ldap_set_rebind_proc... no`
night0wl at frost dot ath dot cx
02-Apr-2003 07:19
`Couse there was no example code for this function, i had alot of troubles to make it work properly.
So, here is working example:
function rebind_on_ref ($ds, $ldap_url) {
global $binddn; // DN used to bind
global $bindpw; // password used to bind
// required by most modern LDAP servers, use LDAPv3
ldap_set_option($a, LDAP_OPT_PROTOCOL_VERSION, 3);
if (!ldap_bind($a,$binddn,$bindpw)) {
print "Cannot bind";
}
}`
randy at kotmail dot com
25-Apr-2002 04:46
`If rebind_proc isn't compiled in slapd, your will never get that funtction working. Check out the new alpha release of slapd and rtfm.`
add a note
ldap_sort ldap_set_option

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST