ldap authentication error

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-19-2005
R.Smits
 
Posts: n/a
Default ldap authentication error

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


Reply With Quote
  #2 (permalink)  
Old 05-19-2005
Daniel Tryba
 
Posts: n/a
Default Re: ldap authentication error

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0