Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: [SOLVED] LDAP Auth to Zimbra from Different Server PHP

  1. #1
    undertoe is offline Loyal Member
    Join Date
    Jun 2006
    Posts
    86
    Rep Power
    8

    Default [SOLVED] LDAP Auth to Zimbra from Different Server PHP

    I am looking to authenticate off of zimbra via PHP ldap functions. I am having some issues and not able to authenticate. I am doing this on the same network but from a different server.

    server name is : zwm.otelconsulting.com
    email: bleto@otelconsulting.com
    domain on zimbra for email: otelconsulting.com

    Can anyone give me some direction, or maybe ldap search command to test to see if i can do it via command line on the server.

    MY CODE:

    Code:
    $ldap['user']      = 'bleto@otelconsulting.com';
    
    $ldap['pass']      = 'test111';
    
    $ldap['host']      = 'zwm.otelconsulting.com';
    
    $ldap['port']      = 389;
    
    $ldap['dn']= 'uid='.$ldap['user'].',ou=people,dc=otelconsulting,dc=com';
    
    $ldap['base']      = '';
    
    // connecting to ldap
    $ldap['conn'] = ldap_connect( $ldap['host'], $ldap['port'] );
    ldap_set_option($ldap['conn'], LDAP_OPT_PROTOCOL_VERSION, 3);
    
    // binding to ldap
    $ldap['bind'] = ldap_bind( $ldap['conn'], $ldap['dn'], $ldap['pass'] );
    
    if ($ldap['bind']) {
      echo "LDAP bind successful...";
    } else {
    	echo 'no bind';
    }
    otel consulting, inc.
    www.otelconsulting.com | facebook | twitter

  2. #2
    undertoe is offline Loyal Member
    Join Date
    Jun 2006
    Posts
    86
    Rep Power
    8

    Default

    Anyone? This is driving me insane
    otel consulting, inc.
    www.otelconsulting.com | facebook | twitter

  3. #3
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    uid should not have the domain name after it eg. uid=bleto,ou=people,dc=otelconsulting,dc=com

  4. #4
    undertoe is offline Loyal Member
    Join Date
    Jun 2006
    Posts
    86
    Rep Power
    8

    Default

    Yeah i tried both, still no go. Does it matter that I am connecting to zimbra from a different server?

    Uxbod i knew you would come to my resuce thanks for responding so quickly!
    otel consulting, inc.
    www.otelconsulting.com | facebook | twitter

  5. #5
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    Try with ldapsearch
    Code:
    ldapsearch -x -H ldap://zimbraserver:389 -D "uid=bleto,ou=people,dc=otelconsulting,dc=com" -W -b "ou=people,dc=otelconsulting,dc=com"

  6. #6
    undertoe is offline Loyal Member
    Join Date
    Jun 2006
    Posts
    86
    Rep Power
    8

    Default

    ldap_bind: Invalid credentials (49)
    otel consulting, inc.
    www.otelconsulting.com | facebook | twitter

  7. #7
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    Are you only using Zimbra authentication or is Zimbra configured to use say Active Directory ?

  8. #8
    undertoe is offline Loyal Member
    Join Date
    Jun 2006
    Posts
    86
    Rep Power
    8

    Default

    in verbose mode:

    ldap_initialize( ldap://zwm.otelconsulting.com:389 )
    Enter LDAP Password:
    ldap_bind: Invalid credentials (49)

    me and ldap are not friends right now
    otel consulting, inc.
    www.otelconsulting.com | facebook | twitter

  9. #9
    undertoe is offline Loyal Member
    Join Date
    Jun 2006
    Posts
    86
    Rep Power
    8

    Default

    its configured to auth against an AS400 with fall back auth. Damn i created another domain and authed against it just fine. So is that the problem

    Anyway to do the domain that is auth'd against the AS400 through the zimbra server. Cause some users have as400 users names and some don;t and it uses zimbra for the auth cridentianls?

    I am retarded when it comes to ldap and how it works.
    otel consulting, inc.
    www.otelconsulting.com | facebook | twitter

  10. #10
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Postfix unavailable - queue down
    By pmona in forum Administrators
    Replies: 20
    Last Post: 01-21-2010, 10:03 PM
  2. /tmp filling
    By Nutz in forum Administrators
    Replies: 8
    Last Post: 02-22-2008, 02:00 AM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  4. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM
  5. Zimbra server crashed
    By goetzi in forum Administrators
    Replies: 6
    Last Post: 03-25-2006, 01:00 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
  •