Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.2.0

Bug #23758 Bind to a referral is anonymous
Submitted: 2018-07-18 19:00 UTC
From: jlwasmer Assigned:
Status: Open Package: Net_LDAP2 (version 2.2.0)
PHP Version: 5.6.24 OS: FreeBSD 10.3
Roadmaps: (Not assigned)    
Subscription  


 [2018-07-18 19:00 UTC] jlwasmer (Jean-Luc Wasmer)
Description: ------------ Hi, Although I bind to the local LDAP server as a valid user, when making a change the local server is sending a referral back which is followed but this fails because the bind is then anonymous. Thanks, JL Expected result: ---------------- I would expect to bind to the referral server with the same DN and password as initially used.

Comments

 [2018-07-19 20:42 UTC] beni (Benedikt Hallinger)
Hello, thanks for this report. Unfortunately i cannot reproduce this here (lack of test stack) so i would need your help to debug this. Can you spot the buggy line in the code? Maybe its also a bug in the underlaying PHP functions.
 [2018-10-14 01:42 UTC] jlwasmer (Jean-Luc Wasmer)
Hi, Sorry for the late reply, didn't notice your response. So, I looked it up and here's the issue: when calling PHP's ldap_modify() function, if the server returns a referral, binding to that referral server needs to be handled by defining a callback using PHP's ldap_set_rebind_proc() function. Cheers, JL