Displaying 3 results from an estimated 3 matches for "newpwd2".
Did you mean:
newpwd
2006 Dec 12
1
changing password only works the second time?
...ript align_pwd.sh that makes some things when
changing password.
The script is this:
#!/bin/bash
USER=$1
LOGFILE=/tmp/${USER}_pwdchange.log
SYSMAIL="our_mail@our_mail_domain"
export USER LOGFILE SYSMAIL
echo "New password"
read newpwd1
echo "Retype new password"
read newpwd2
if [ "$newpwd1" != "$newpwd2" ]
then
echo "Sorry, passwords do not match" > $LOGFILE
exit 1
fi
NEWPWD=$newpwd1
export USER NEWPWD
echo "updating pdc..." > $LOGFILE 2>&1
echo "$NEWPWD" | passwd --stdin $USER >> $LO...
2006 Sep 04
3
Having trouble with update_attributes() after member access
.... i get this exception:
wrong number of arguments (1 for 0)
## this does not work:
@voicemail_user = VoicemailUser.find(session[:asterisk][:user_id])
if (@voicemail_user.password == params[:pwd][:current])
@voicemail_user.update_attributes({"password" =>
params[:pwd][:newpwd2]})
end
## but this works:
@voicemail_user = VoicemailUser.find(session[:asterisk][:user_id])
@voicemail_user.update_attributes({"password" =>
params[:pwd][:newpwd2]})
What am i doing wrong?
## application trace below:
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4...
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