This option didn't work ./checkLdapPwdExpiration.sh ldap_bind: No such object (32) Mar 29 14:12:24 dubdc1testds03.cmdb.inhouse.paddypower.com ./checkLdapPwdExpiration.sh[21437]: --- Statistics --- Mar 29 14:12:24 dubdc1testds03.cmdb.inhouse.paddypower.com ./checkLdapPwdExpiration.sh[21437]: Users checked: 0 Mar 29 14:12:24 dubdc1testds03.cmdb.inhouse.paddypower.com ./checkLdapPwdExpiration.sh[21437]: Account expired: 0 Mar 29 14:12:24 dubdc1testds03.cmdb.inhouse.paddypower.com ./checkLdapPwdExpiration.sh[21437]: Account in warning: 0
I tried to use too other contributed script, but it's the same: https://github.com/ltb-project/ldap-scripts/files/615850/checkLdapPwdExpiration.sh.txt My suggestion is I have a problem with MY_LDAP_DEFAULTPWDPOLICYDN Cheers, Miguel 2017-03-29 14:01 GMT+01:00 Clément OUDOT <clem.ou...@gmail.com>: > 2017-03-29 14:35 GMT+02:00 Miguel Angel Gonzalez <mag...@gmail.com>: > > 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 :) > > > Your root DN seems to have spaces. Try: > > if [ "${MY_LDAP_ROOTDN}" ]; then > ldap_param="${ldap_param} -D '${MY_LDAP_ROOTDN}' -w ${MY_LDAP_ROOTPW}" > fi > > > This script is quite old, you can try other contributed scripts, see: > https://github.com/ltb-project/ldap-scripts/issues/1 > > > > Clément. > _______________________________________________ > ltb-users mailing list > ltb-users@lists.ltb-project.org > https://lists.ltb-project.org/cgi-bin/mailman/listinfo/ltb-users
_______________________________________________ ltb-users mailing list ltb-users@lists.ltb-project.org https://lists.ltb-project.org/cgi-bin/mailman/listinfo/ltb-users