Obtain 'description' user attribute by ldapsearch

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
finth
Posts: 11
Joined: Sat Sep 13, 2014 1:23 am

Obtain 'description' user attribute by ldapsearch

Post 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.
finth
Posts: 11
Joined: Sat Sep 13, 2014 1:23 am

Obtain 'description' user attribute by ldapsearch

Post 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.
User avatar
jorgemop
Posts: 20
Joined: Sat Sep 13, 2014 3:27 am
Location: Venezuela

Obtain 'description' user attribute by ldapsearch

Post by jorgemop »

what its the password uid=zimbra?
User avatar
jorgemop
Posts: 20
Joined: Sat Sep 13, 2014 3:27 am
Location: Venezuela

Obtain 'description' user attribute by ldapsearch

Post by jorgemop »

here is:
zmlocalconfig -s zimbra_ldap_password ldap_master_url
Post Reply