Results 1 to 5 of 5

Thread: LDAP user Info

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

    Default LDAP user Info

    I want to basically do this command with php

    ldapsearch -x -h 'zimbra.host.com' -D cn=config -w MasterLDAPPassword uid=username

    To pull back all the users info.

    anyone have any guidance or should I be trying to do this with soap
    otel consulting, inc.
    www.otelconsulting.com | facebook | twitter

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

    Default

    Better yet can i do this with soap? Anyone know the command
    that would show me all the user info similar to

    zmprov ga user@domain.com
    otel consulting, inc.
    www.otelconsulting.com | facebook | twitter

  3. #3
    jummo is offline Special Member
    Join Date
    May 2009
    Location
    Bremen, Germany
    Posts
    122
    Rep Power
    6

    Default

    Look in ZimbraServer/docs/soap.txt from Zimbra source.
    Maybe the method GetAccountInfoRequest is the right one.

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

    Default

    Can anyone help me with this PHP auth code, I am trying to auth against zimbra and I keep getting "LDAP bind failed". what am i missing here as far as code goes? Any help would be greatly appreciated.

    Code:
    $Domain = 'mydomain';
    $Server = 'zwm.mydomain.com';
    
    $Username = 'username1@mydomain.com';
     
    $Password = 'xxxx';
      
    $LDAPConnection    =    ldap_connect($Server,389);
    ldap_set_option($LDAPConnection,LDAP_OPT_PROTOCOL_VERSION,3);
    
    $LDAPbind    =    @ldap_bind($LDAPConnection,'uid='.$Username.',ou=people,dc='.$Domain.',dc=com' , $Password);
    
    if ($LDAPbind) {
    	echo "LDAP bind successful...";
    } else {
      echo "LDAP bind failed...";
    }
    otel consulting, inc.
    www.otelconsulting.com | facebook | twitter

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

    Default

    Any help on this? I am pulling my hair out
    otel consulting, inc.
    www.otelconsulting.com | facebook | twitter

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Replies: 10
    Last Post: 10-22-2008, 10:24 AM
  3. server dropped connection
    By ferra in forum Installation
    Replies: 20
    Last Post: 10-06-2008, 04:32 PM
  4. [SOLVED] Install Problem in Ubuntu 6.06 Server
    By xtimox in forum Installation
    Replies: 16
    Last Post: 03-27-2008, 09:36 AM
  5. Web client logon fails (INVALID_PDU)
    By jermxx in forum Installation
    Replies: 8
    Last Post: 02-20-2007, 02:20 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
  •