Write this to a file (FILENAME):
Code:
# Add HSM-specific attributes and values
dn: cn=config,cn=zimbra
changetype: modify
objectclass: zimbraHsmGlobalConfig
-
dn: cn=config,cn=zimbra
changetype: modify
add:
zimbraHsmAge: 30d
zimbraServerInheritedAttr: zimbraHsmAge
then
Code:
zmlocalconfig -s ldap_root_password
zmlocalconfig -s zimbra_ldap_userdn
Take the values you got for password and userdn and the name of the file you created and run (as the zimbra user):
Code:
/opt/zimbra/openldap/bin/ldapmodify -a -c -w 'PASSWORD' -D "USERDN" -x -f FILENAME
NOTE - quotes are important in the above command.