Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-24-2010, 12:08 PM
Loyal Member
 
Posts: 81
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
Reply With Quote
  #2 (permalink)  
Old 08-25-2010, 11:58 AM
Loyal Member
 
Posts: 81
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
Reply With Quote
  #3 (permalink)  
Old 08-26-2010, 02:19 AM
Special Member
 
Posts: 113
Default

Look in ZimbraServer/docs/soap.txt from Zimbra source.
Maybe the method GetAccountInfoRequest is the right one.
Reply With Quote
  #4 (permalink)  
Old 09-07-2010, 12:30 PM
Loyal Member
 
Posts: 81
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
Reply With Quote
  #5 (permalink)  
Old 09-08-2010, 07:19 AM
Loyal Member
 
Posts: 81
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.