[Ltb-users] Script - Account expiration mail warning

Miguel Angel Gonzalez maglez at gmail.com
Wed Mar 29 14:35:38 CEST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ltb-project.org/pipermail/ltb-users/attachments/20170329/0577ef09/attachment.html>


More information about the ltb-users mailing list