1832128 Members
3152 Online
110038 Solutions
New Discussion

RH yppasswd issue

 
Jun Zhang_4
Regular Advisor

RH yppasswd issue

After creating a nis user and updated the map, I used a script where perl module Authen-PAM is invoked to change the password. The script run smoothly, but password is not updated for the user.
The update is successful when using yppasswd manually. Here, root password was asked first, and then twice for new password.
Monitoring the script line by line, I noticed that only two times for new password are prompted, root password is not asked.
In
$res = $pamh->pam_chauthtok;
the value of $res is 0, means successful authentication.

Jun
Food lover
1 REPLY 1
Jun Zhang_4
Regular Advisor

Re: RH yppasswd issue

The fault is at Redhat yppasswd. I moved the same script to run on an hpux machine, password updated.
The behavior of using yppasswd at the command line and through Authen-PAM script is the same, which make me feel much better.
I wish good luck to the author of Authen-PAM in writing his thesis.

Jun
Food lover