ldap authentication error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • R.Smits

    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=com pany","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


  • Daniel Tryba

    #2
    Re: ldap authentication error

    In comp.lang.php R.Smits <R.Smits@io.tud elft.nl> wrote:[color=blue]
    > 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.[/color]

    Simple, the first argument in your call of ldap_bind had the value NULL,
    it should be a resource instead.
    [color=blue]
    > This is the code :
    >
    > $bind = ldap_bind($ds ,"cn=user,o=com pany","password ");[/color]

    Where does $ds get it's value?

    FUP to comp.lang.php

    Comment

    Working...