#include <sys/types.h> #include <pwd.h> int __passwd(const char *userID, const char *currentPassword, const char *newPassword);
__passwdverifies or changes a user password.
userIDis a 1 to 8 character, null-terminated, MVS user ID.
currentPasswordis verified and not changed.
This function can only be used by a process that is a member
BPX.DAEMON class. See IBM's
Planning OpenEdition MVS
for more information.
Refer to IBM's OpenEdition MVS Supplement for rlogin (SC23-3847).
0if successful and a
-1if unsuccessful. It is possible for
__passwdto fail even if the password is correct, if the password has expired, and a new password was not specified.
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.