Results 1 to 2 of 2

Thread: LDAP authentication?

  1. #1
    Join Date
    Jun 2006
    Posts
    1
    Rep Power
    9

    Default LDAP authentication?

    I am attempting to integrate zimbra into our intranet enviroment. I have created several users and they can log on and send/recieve email via both the webclient and external sources via the smtp interface. I am now trying to use zimbra to validate users for my php web app. I can successfully connect to the ldap server, but once i try to bind it fails. I can run ldapsearch -x and dump the entire ldap database. Any idea how to debug this conneciton via php? A brief example of what I am trying to do is here...


    $auth_user="uid=dummyuser,dc=flightlock.com,dc=com "

    if ($connect = ldap_connect($ldap_server))
    {
    echo "connected<br>";
    ldap_set_option($connect,LDAP_OPT_PROTOCOL_VERSION ,3);
    $binder = ldap_bind($connect, $auth_user, $auth_pass);
    }

    ldap_bind returns an error
    Warning: ldap_bind(): Unable to bind to server: Unknown error .

    Just need a few pointers on how to debug this problem. Thanks!

  2. #2
    Join Date
    Apr 2006
    Posts
    27
    Rep Power
    9

    Default

    $auth_user="uid=dummyuser,dc=flightlock.com,dc=com "
    Looks like an error in your domain component.

    Try changing to:

    Code:
    $auth_user="uid=dummyuser,dc=flightlock,dc=com"

Similar Threads

  1. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 07:45 AM
  2. LDAP Authentication to Zimbra LDAP
    By zlex in forum Administrators
    Replies: 1
    Last Post: 05-08-2007, 04:52 AM
  3. External LDAP Authentication Issue
    By xtreme-one in forum Installation
    Replies: 10
    Last Post: 02-16-2007, 07:52 PM
  4. Authentication to external ldap stop working.
    By jahaj in forum Installation
    Replies: 3
    Last Post: 12-05-2006, 03:17 PM
  5. Replies: 4
    Last Post: 11-15-2006, 12:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •