[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: PHP and ldap_bind function problem

On Wed, 15 Dec 2004, Dennis Putnam wrote:

You may be on to the right track here. Unfortunately, I am using v4 and v5 will not install (but that is a separate problem). In some of the research I've done on this problem, there are apparently 2 types of authentication, strong and simple. I think PHP V4 is incapable of doing strong which might be the default for my LDAP server.

Well, you can do simple over ldapi or TLS/SSL if you want strong(er) protection.

The solution may come done to how to tell the LDAP server to accept simple authentication.

My guess is you are not using LDAPv3 protocol. (see http://us3.php.net/manual/en/function.ldap-set-option.php)

Can you show us your PHP code?


On Dec 15, 2004, at 1:57 PM, Quanah Gibson-Mount wrote:

Quoting "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>:

At 08:46 AM 12/15/2004, Dennis Putnam wrote:
I am having a problem authenticating users via the ldap_bind function.
I think this is more of an LDAP question then PHP

Yes, this is more of a question for a forum about PHP's LDAP facilities. See http://us2.php.net/support.php for some possibilities here.

You also don't say what version of PHP you are using. I have a patch for PHP5.x that allows SASL binds, which of course allows greater security. I'm not sure what LDAP protocol versions older versions of PHP allow, either.

You can find my patch at:


You can look at my access example there as well.


Dennis Putnam
Sr. IT Systems Administrator
AIM Systems, Inc.
11675 Rainwater Dr., Suite 200
Alpharetta, GA 30004
Phone: 678-297-0700
FAX: 678-297-2666 or 770-576-1000
The information contained in this e-mail and any attachments is strictly confidential. If you are not the intended recipient, any use, dissemination, distribution, or duplication of any part of this e-mail or any attachment is prohibited. If you are not the intended recipient, please notify the sender by return e-mail and delete all copies, including the attachments.

-- Igor