This is a discussion on ldap authentication error within the PHP Language forums, part of the PHP Programming Forums category; Hello, I'm trying to make a ldap query but I am getting a strange error. Warning: ldap_bind() expects parameter ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
In comp.lang.php R.Smits <R.Smits@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 |