Hi everyone.
I'm testing a ZCS 7.1.3 OS on Ubuntu 10.04.3 64bit, and use an external OpenLdap + Samba PDC installed on OpenSUSE 11.4 to authenticate users. The connection is fine until i found out that when user change their password in Zimbra Web UI, it doesn't auto-sync to external ldap server.
I found this thread and try the above script, firstly i have problem when the ldapsearch command execute:
Code:
ldap_bind: Invalid credentials (49)
I've used the slappasswd command to generate a SSHA encrypted password and update in the folowing part of the
/openldap-2.4.26.5z/etc/openldap/slapd.conf file:
Code:
database bdb
suffix "dc=homedomain,dc=org"
rootdn "cn=Administrator,dc=homedomain,dc=org"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw {SSHA}p7XipDi6VJCfiUpx8XGHmwIq7tnUdXUO
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /opt/zimbra/openldap-2.4.26.5z/var/openldap-data In the ldapsearch command, i've tried everything like -D "cn=config", -D "cn=Administrator", -D "cn=root", -D "cn=Administrator,dc=homedomain,dc=org" but the ldap_bind error keeps show up. Then i found that when i use -D "uid=admin,ou=people,dc=homedomain,dc=org", the ldapsearch command can run without error, but nothing returned and no password is updated!
Code:
ldapsearch -LLLx -H "${ZIMBRA_LDAP}" -D "uid=admin,ou=people,dc=homedomain,dc=org" -b "${ZIMBRA_BASEDN}" -w "${ZIMBRA_ROOTPW}" \
"(zimbraPasswordModifiedTime>=`date -u +%Y%m%d%H%M%SZ -d \"-${TIME} sec\"`)" I tried this single command and comment the 2 commands followed, but nothing returned, even when i changed the filter to "(zimbraPasswordModifiedTime>=0)" or "(zimbraPasswordModifiedTime=20111116022747Z)"
This is the exactly time string i got from the command Code:
zimbra@zimbra:/home/administrator$ zmprov ga thanhdv zimbrapasswordmodifiedtime
# name thanhdv@homedomain.org
zimbraPasswordModifiedTime: 20111116022747Z
My ldapsearch command works normally with other normal filter "cn=*" "objectClass=*" ...
Any help please !!!!!
Sorry for my bad Eng.
Thanks, thanhdv.