By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,409 Members | 1,604 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,409 IT Pros & Developers. It's quick & easy.

ldap authentication error

P: n/a
Hello,

I'm trying to make a ldap query but I am getting a strange error.

Warning: ldap_bind() expects parameter 1 to be resource, null given in
home/user1/cgibin/test.php on line 10

Does anyone knows what this means.

This is the code :

$bind = ldap_bind($ds ,"cn=user,o=company","password");

I have ldap support in php.

[PHP Modules]
ldap
openssl
overload
pcre
posix
session
standard
tokenizer
xml

[Zend Modules]

Greetings... Richard Smits
Technical University Delft
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In comp.lang.php R.Smits <R.*****@io.tudelft.nl> wrote:
Warning: ldap_bind() expects parameter 1 to be resource, null given in
home/user1/cgibin/test.php on line 10

Does anyone knows what this means.
Simple, the first argument in your call of ldap_bind had the value NULL,
it should be a resource instead.
This is the code :

$bind = ldap_bind($ds ,"cn=user,o=company","password");


Where does $ds get it's value?

FUP to comp.lang.php
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.