Obtain 'description' user attribute by ldapsearch

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

Obtain 'description' user attribute by ldapsearch

Postby finth » Mon Aug 01, 2011 3:25 am

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

Postby finth » Tue Aug 02, 2011 12:27 am

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

Postby jorgemop » Mon Apr 07, 2014 11:22 am

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

Postby jorgemop » Mon Apr 07, 2014 11:54 am

here is:
zmlocalconfig -s zimbra_ldap_password ldap_master_url

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 10 guests