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
Obtain 'description' user attribute by ldapsearch
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.
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
what its the password uid=zimbra?
Obtain 'description' user attribute by ldapsearch
here is:
zmlocalconfig -s zimbra_ldap_password ldap_master_url
zmlocalconfig -s zimbra_ldap_password ldap_master_url