Connecting to LDAP

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

    Connecting to LDAP

    Good Morning, I am having some issues connecting to LDAP through PHP.

    I am using the function provided here:
    http://www.php.net/manual/en/function.ldap-bind.php (By 'edi01 at gmx
    dot at'). I don't get any errors till it tries to do the search. I get
    the following error:
    ldap_search(): Search: Operations error
    verification on 'ldap://newkenny': ldap_error(Reso urce id #2)
    failure: search in LDAP-tree failed
    ACCESS DENIED

    I'm trying to connect to a Win2003 AD server. I have set the
    "LDAP_OPT_REFER RALS" to 0 as someone else stated.

    When I do: ldapsearch -H ldap://myserver -b "cn=users,dc=ba se,dc=com"
    -x -W -Dmyaccount -LLL "(SAMACCOUNTNAM E=myaccount)"
    from the command line it works fine.

    Any ideas?

    thanks!

Working...