Hi,

I'm trying to use your script: Account expiration mail warning (
https://ltb-project.org/documentation/ldap-scripts/checkldappwdexpiration).
However it doesn't work and I have an error in the ouput:

*./checkLdapPwdExpiration.sh: line 213: [: cn=Directory: unary operator
expected*
Mar 29 12:15:40 localhost ./checkLdapPwdExpiration.sh[20049]: No password
change date for test
Mar 29 12:15:40 localhost ./checkLdapPwdExpiration.sh[20049]: No password
change date for test1
Mar 29 12:15:40 localhost ./checkLdapPwdExpiration.sh[20049]: No password
change date for test2
Mar 29 12:15:40 localhost ./checkLdapPwdExpiration.sh[20049]: No password
change date for test3
Mar 29 12:15:40 localhost ./checkLdapPwdExpiration.sh[20049]: ---
Statistics ---
Mar 29 12:15:40 localhost ./checkLdapPwdExpiration.sh[20049]: Users
checked: 4
Mar 29 12:15:40 localhost ./checkLdapPwdExpiration.sh[20049]: Account
expired: 0
Mar 29 12:15:40 localhost ./checkLdapPwdExpiration.sh[20049]: Account in
warning: 0

There are users with the password expired, but I dont' receive any email, I
don't know if the problem is the password policy DN

#
# LDAP default password policy DN
# eg: ou=defaultPasswordPolicy,dc=example,dc=com
# If commented, we suppose there are no default, and only per-user policies
#
MY_LDAP_DEFAULTPWDPOLICYDN="cn=nspwpolicycontainer,ou=people,dc=paddypower,dc=com"

Please if you can give me any help, I would appreciate it :)

Cheers,
Miguel
_______________________________________________
ltb-users mailing list
ltb-users@lists.ltb-project.org
https://lists.ltb-project.org/cgi-bin/mailman/listinfo/ltb-users

Reply via email to