Bug #8714 Updated: Adding LDAP entries drops credentials if update is referred

From: Date: Mon, 12 Nov 2001 13:24:50 +0000
Subject: Bug #8714 Updated: Adding LDAP entries drops credentials if update is referred
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-70232@lists.php.net to get a copy of this message
ID: 8714 Updated by: venaas Reported By: anders.ostling@neurope.ikea.com 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] anders.ostling@neurope.ikea.com 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

« previous php.dev (#70232) next »