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
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
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
Look in ZimbraServer/docs/soap.txt from Zimbra source.
Maybe the method GetAccountInfoRequest is the right one.
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..."; }
Any help on this? I am pulling my hair out
There are currently 1 users browsing this thread. (0 members and 1 guests)