fix yppasswd support on linux

This commit is contained in:
eknauel 2004-11-23 12:51:37 +00:00
parent 08b2fa0f6f
commit d4bc81dfff
1 changed files with 6 additions and 5 deletions

View File

@ -195,13 +195,14 @@ Please choose a password with at least 2 character classes.")
"Please retype new password:"
"Sorry."
"Mismatch - password unchanged."
#f ;; TODO??
)))))
(rx "The NIS password has been changed on"))))))
(define (verify-yp-password password)
(if (password-stored-in-yp-passwd? (user-login-name))
(verify-password yppasswd password)
#t))
(let ((user-has-yp-password?
(password-stored-in-yp-passwd? (user-login-name))))
(if user-has-yp-password?
(verify-password yppasswd password)
#t)))
(define (change-yp-password old-pw new-pw)
(if (password-stored-in-yp-passwd? (user-login-name))