php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52961 ldap_unbind() closes connection
Submitted: 2010-10-01 00:49 UTC Modified: 2013-02-18 00:34 UTC
From: ashafer01 at gmail dot com Assigned:
Status: No Feedback Package: LDAP related
PHP Version: 5.3.3 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ashafer01 at gmail dot com
New email:
PHP Version: OS:

 

 [2010-10-01 00:49 UTC] ashafer01 at gmail dot com
Description:
------------
ldap_unbind() closes the connection rather than simply unbinding. This is not 
desirable as some LDAP server configurations require an unbind before being able 
to bind again, thus greatly increasing the expense of authenticating via LDAP.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-01 12:28 UTC] cataphract@php.net
-Status: Open +Status: Feedback
 [2010-10-01 12:28 UTC] cataphract@php.net
What ldap_unbind actually does is that, as long as there are no more references to the resource, it triggers a call to ldap_unbind_s.

The manual says:

The ldap_unbind() call is used to unbind from the directory, terminate the current association, and free the resources contained in the ld structure. Once it is called, the connection to the LDAP server is closed, and the ld structure is invalid. The ldap_unbind_s() call is just another name for ldap_unbind(); both of these calls are synchronous in nature.

http://linux.die.net/man/3/ldap_unbind_s

Can you clarify what you want?
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 12:01:23 2020 UTC