Issue #783 has been updated by Christian Iuga. File checkLdapPwdExpiration.sh added
---------------------------------------- Bug #783: ldap-scripts/trunk/checkLdapPwdExpiration.sh http://tools.lsc-project.org/issues/783 Author: Christian Iuga Status: New Priority: Normal Assigned to: Category: LDAP Scripts Target version: I have rewrite this script, major change on it : - Use bash instead of sh - Remove function getTimeInSeconds, use date --date instead - use bashish instead of expr - remove deprecated ` ` use instaed $( ) - use ldapsearch with -o ldif-wrap=no if version >= 2.4.24 - otherwise get pwdPolicySubentry even it's on 2 lines - don't use anymore temporay file, use in-memory variable - add argument of the script : --detail_body|-d to show when the password will expire - simplify the code - show since when a account is expired (help cleaning unused entry) - avoid making useless ldapsearch : - now : Ldap request = 1 + Nb user + Nb different ppolicy - old : Ldap request = 1 + Nb user *3 - so for 1000k User, it's creating only 1002 ldapsearch before, it's was 3001 ! - Performance improvement : Running more than twice quicker -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://tools.lsc-project.org/my/account
_______________________________________________ ltb-dev mailing list [email protected] http://lists.ltb-project.org/listinfo/ltb-dev
