Displaying 2 results from an estimated 2 matches for "set_adpwd".
2006 Sep 06
2
passwd program example for parsing new password typed?
hello,
I have two domains, one w2k3 and one with samba 3.
The users log on to the samba domain and use outlook connected on
exchange on w2k3 domain.
pwd age for the two domains is aligned.
On another samba 3.0.23c linux machine inside the w2k3 domain (ads
security parameter set) I have set up a script that allows to change
the w2k3 domain password for the user, using ldapmodify command to
change
2006 Dec 12
1
changing password only works the second time?
...&1
FULLNAME=$(pdbedit -Lv $USER | grep "^Full Name" | awk '{print $3" "$4}'
| sed "s/'/\\\'/") >> $LOGFILE 2>&1
echo "updating AD server..." >> $LOGFILE 2>&1
ssh adsrv "/usr/local/bin/set_adpwd.sh $FULLNAME $NEWPWD" >>
$LOGFILE 2>&1
else
echo "an error occured in ssh ad script!" >> $LOGFILE 2>&1
exit 1
fi
echo "passwd: all authentication tokens updated successfully"
cat $LOGFILE | mail -s "$USER changed password"...