2013-07-05 17:47 keltezéssel, John Tolson írta:
All,

I am trying to use the ldapsarch too to mange the ldap of the ZEG vmware 
machine.  Everything seems  work great with webmin and ldap but when I use the 
unix tool I get an error.

root@sogo:~# ldapsearch -x -D 'cn=admin,dc=example,dc=com' -W
Enter LDAP Password:
ldap_bind: Invalid credentials (49)

According to the landing page of the webmin for the ZEG the password is sogo.  
Has anyone used the unix tools to manage the ldap and/or is there documentation 
for managing the ldap.  I am assuming ldap is used to manage domain, mail users 
and mail user passwords.

Thanks ahead of time.

The ZEG manual says: the Samba LDAP listens on the TCP/389. The OpenLDAP listens on the TCP/3389.
So, you need the -h and -p parameter:

ldapsearch -h localhost -p 3389

Or -H parameter:

ldapsearch -H ldap://localhost:3389

Or, if you want to access the real Samba 4 LDAP, you nedd to use ldbsearch command and -U parameter:

ldbsearch -U administrator

instead of ldbsearch, or you need to samba credentials for the -D and -W parameter. So, the possibilities are endless... Just you need to know what are you really want :)
--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to