Page 1 of 1

Obtain 'description' user attribute by ldapsearch

Posted: Mon Aug 01, 2011 3:25 am
by finth
Hello all. I had a simple question.


zmprov createAccount someaccount@mydomain.com ... description "Some description"


Now i want to get this description through ldapsearch utility, but nothing happens when i ask this attribute:


ldapsearch -x -v -H 'ldap://zimbra.mydomain.com/' -b 'ou=people,dc=mydomain,dc=com' -D 'uid=admin,ou=people,dc=mydomain,dc=com' -W -v '(mail='someaccount@mydomain.com')' mail sn description givenName


It returns only mail, sn, givenName but nothing about description. What i'm doing wrong, tell me please. Thanks to all.

Obtain 'description' user attribute by ldapsearch

Posted: Tue Aug 02, 2011 12:27 am
by finth
The problem solved. I must use zimbra system account to bind instead of admin account. Like this:


ldapsearch -x -v -H 'ldap://zimbra.mydomain.com/' -b ou=people,dc=mydomain,dc=com' -D 'uid=zimbra,cn=admins,cn=zimbra' -W -v '(mail='someaccount@mydomain.com')' mail sn description givenName


And description is here now.

Obtain 'description' user attribute by ldapsearch

Posted: Mon Apr 07, 2014 11:22 am
by jorgemop
what its the password uid=zimbra?

Obtain 'description' user attribute by ldapsearch

Posted: Mon Apr 07, 2014 11:54 am
by jorgemop
here is:
zmlocalconfig -s zimbra_ldap_password ldap_master_url