Results 1 to 2 of 2

Thread: LDAP authentication?

  1. #1
    Join Date
    Jun 2006
    Rep Power

    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=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
    Rep Power


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

    Try changing to:


Similar Threads

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

Posting Permissions

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