yppasswd(3N)
NAME
yppasswd() − update user password in Network Information Service
SYNOPSIS
#include <pwd.h>
#include <rpcsvc/yppasswd.h>
int yppasswd(char *oldpass, struct passwd *newpw);
DESCRIPTION
If oldpass is the old, unencrypted user password, this routine replaces the password entry with the encrypted newpw.
RPC Info
program number:
YPPASSWDPROG
xdr routines:
xdr_yppasswd(xdrs, yp)
XDR *xdrs;
struct yppasswd *yp;
xdr_passwd(xdrs, pw)
XDR *xdrs;
struct passwd *pw;
procs:
YPPASSWDPROC_UPDATE
Takes struct yppasswd as an argument; returns an integer.
Behaves the same as the yppasswd() function.
Uses UNIX authentication.
versions:
YPPASSWDVERS
structures:
struct yppasswd {
char *oldpass;/* old (unencrypted) password */
struct passwd newpw;/* new pw structure */
};
RETURN VALUE
yppasswd() returns 0 if successful and −1 if an error occurs.
AUTHOR
yppasswd() was developed by Sun Microsystems, Inc.
SEE ALSO
Hewlett-Packard Company — HP-UX Release 9.10: April 1995