password expiry email notification
Posted: Thu Feb 10, 2011 11:54 am
This forum has a bug where it randomly adds spaces in some words when they aren't wrapped in a
Code: Select all
block, it usually only shows up in LDAP filters though, not sure why. Anyway...
It looks like you only pasted part of the command as the full one looks like this (and works for me on 6.0.10 at least):
ldapsearch -w `zmlocalconfig -s zimbra_ldap_password | awk '{print $3}'` -D uid=zimbra,cn=admins,cn=zimbra -x -h 192.168.1.6 -b ou=people,dc=domain,dc=com "(&(objectclass=posixAccount)(objectclass=sambaSamAccount))" | awk '/zimbraPasswordModifiedTime:/ {print substr($2,1,8)}'
20081016
20101115
...
I'm not sure which "awk" isn't working for you, the first or second? The first is to split out the password only from the response of the zmlocalconfig query, the second is what actually gets the password modified times.