Access Active Directory (of WINDOWS SERVER 2003) via LDAP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank F

    #1

    Access Active Directory (of WINDOWS SERVER 2003) via LDAP

    Hi,

    I want to read user information from the microsoft windows 2003 server.

    In the windows server 2003, i've create a domain, called "wissenskolleg" .
    I've assigned a password to it.

    Now, i want get access to the Active Directory with PHP.

    My code:
    $ds=ldap_connec t("wissenkolleg .com");
    $r=ldap_bind($d s,"administrato r","psword") ;

    Always I've get the following error message: warning: ldap_bind(): For
    Unable ton bind tons of servers
    I've found out, that $ds always return: Resource id #2
    If i changed "wissenkolleg.c om" in "whyitis", it is all the same, i've can
    only read: Resource id #2 and the same error with ldap_bind.


    I hope you can understand the problem. Any useful hint is welcome.



  • andyt_2000_uk@yahoo.co.uk

    #2
    Re: Access Active Directory (of WINDOWS SERVER 2003) via LDAP

    Hi,

    Try checking out http://adldap.sourceforge.net

    Its the class that i used to connect to Active Directory. It handles
    authentications as well as lots of other things.

    I can post some code later if that doesn't help you. There are some
    examples in the downloads section of that site as well.

    Andy
    Frank F wrote:[color=blue]
    > Hi,
    >
    > I want to read user information from the microsoft windows 2003 server.
    >
    > In the windows server 2003, i've create a domain, called "wissenskolleg" .
    > I've assigned a password to it.
    >
    > Now, i want get access to the Active Directory with PHP.
    >
    > My code:
    > $ds=ldap_connec t("wissenkolleg .com");
    > $r=ldap_bind($d s,"administrato r","psword") ;
    >
    > Always I've get the following error message: warning: ldap_bind(): For
    > Unable ton bind tons of servers
    > I've found out, that $ds always return: Resource id #2
    > If i changed "wissenkolleg.c om" in "whyitis", it is all the same, i've can
    > only read: Resource id #2 and the same error with ldap_bind.
    >
    >
    > I hope you can understand the problem. Any useful hint is welcome.[/color]

    Comment

    Working...