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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
34 + 35 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 21:01:36 2024 UTC