ID: 8714
Updated by: venaas
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: LDAP related
Operating System: Linux 2.2.18
PHP Version: 4.0.4pl1
New Comment:

This is correct behavior. It is done in the LDAP library,
it's not something PHP can fix. There are however two
possible solutions.

The first one is to turn off automatic referral chasing,
which can be done using
ldap_set_option($ds, LDAP_OPT_REFERRALS, 0);
Next you need to somehow see what referral you get back.
I'm not exactly sure how to do that right now, and some
PHP code might have to be tweaked. If you want this
solution, I'll do some digging and come up with something
for you.

The other possibility is to use automatic referral
chasing, but set a rebind procedure that can do the
bind to the new server. This is something I'm looking
into now, but it will probably only be implemented for
OpenLDAP 2.1 and newer which should be released in a
few months time. It is very complicated to implement it
for 2.0, so I would rather wait.

I'm closing this now since it's not a bug, but please
contact me if you want me to find a solution.

Previous Comments:
------------------------------------------------------------------------

[2001-01-15 10:52:17] [EMAIL PROTECTED]

We have a replicated LDAP tree. If I add entries to a replica, AND specify a DN and 
password, the add operation gets referred (correctly) to the master/supplier server, 
but the credentials are lost. This is reproducable.
I have OpenLDAP libs 2.0.6 installed and is using Netscape 4.12 Dir server.

If required, I have a complete network trace (from ethereal) that shows all ldap 
packets.

Best regards

Anders

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=8714&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to