Issue #295 has been updated by Clément OUDOT.
Jitendra Bhaskar also reported: >After running script checkLdapPwdExpiration.sh I got some error like <pre> Feb 22 14:11:11 jitendrab ./checkLdapPwdExpiration.sh[23199]: No password change date for jitendrab cut: fields and positions are numbered from 1 Try `cut --help' for more information. </pre> >I am using openldap 2.4.23 on ubuntu 11.04. ---------------------------------------- Feature #295: checkLdapPwdExpiration.sh / minor issues http://tools.lsc-project.org/issues/295 Author: Benjamin Griese Status: Assigned Priority: Low Assigned to: Thomas Chemineau Category: LDAP Scripts Target version: ldap-scripts-0.4 Hello, while trying to get the expiration mails working I felt into some trouble getting users from my DIT for the below small issues: searching for users didn't work for me, because my ou's are further branched in sub ou's: @${MY_LDAP_SEARCHBIN} ${ldap_param} -s -one- -b "${MY_LDAP_SEARCHBASE}" \@ I simply fixed that by using sub instead of one: @${MY_LDAP_SEARCHBIN} ${ldap_param} -s *sub* -b "${MY_LDAP_SEARCHBASE}" \@ The next problem was the different behaviour/syntax of cut on my system than expected in your script in below lines. The problem was the character extraction at the beginning by character number 0: @pwdChangedTime=`grep -w "pwdChangedTime:" ${buffer_file} | cut -d : -f 2 | cut -c 0-15 | sed "s/^ *//;s/ *$//"`@ and @y=`echo ${pwdChangedTime} | cut -c 0-4`@ fixed by beginning at 1 @pwdChangedTime=`grep -w "pwdChangedTime:" ${buffer_file} | cut -d : -f 2 | cut -c 1-15 | sed "s/^ *//;s/ *$//"`@ and @y=`echo ${pwdChangedTime} | cut -c 1-4`@ Maybe the problem only appears with my version of the coreutils where cut belongs to. Thanks for your great work anyway. :) My System: SLES11 SP1 Stock OpenLDAP 2.4.20 coreutils-6.12-32.17 (provides /usr/bin/cut) -- 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
