YPPASSWD(3N) — Series 300 Only
NAME
yppasswd − update user password in Yellow Pages
SYNOPSIS
#include <pwd.h>
#include <rpcsvc/yppasswd.h>
yppasswd(oldpass, newpw)
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
Sun Microsystems, Inc.
SEE ALSO
INTERNATIONAL SUPPORT
8-bit data, messages
Hewlett-Packard Company — May 11, 2021