YPPASSWD(3R) YPPASSWD(3R)
yppasswd - update user password in NIS database
#include <rpcsvc/yppasswd.h>
yppasswd(char *oldpass, struct passwd *newpw);
If oldpass is indeed the old user password, this routine replaces the
password entry with newpw. It returns 0 if successful.
program number:
YPPASSWDPROG
xdr routines:
xdr_ppasswd(XDR *xdrs, struct yppasswd *yp);
xdr_yppasswd(XDR *xdrs, struct passwd *pw);
procs:
YPPASSWDPROC_UPDATE
Takes struct yppasswd as argument, returns integer.
Same behavior as yppasswd() wrapper.
Uses UNIX authentication.
versions:
YPPASSWDVERS_ORIG
structures:
struct yppasswd {
char *oldpass; /* old (unencrypted) password */
struct passwd newpw; /* new pw structure */
};
To compile and link a program that calls this routine, follow the
procedures for section (3R) routines as described in intro (3).
yppasswd(1), rpc.passwd(1M)
PPPPaaaaggggeeee 1111 [ Back ]
|