yppasswd(NS)
yppasswd --
update user password in Network Information Service (NIS)
Syntax
cc ... -lrpcsvc -lsocket
#include <rpcsvc/yppasswd.h>
yppasswd(oldpass, newpw)
char *oldpass;
struct passwd *newpw;
Description
If oldpass is indeed the old user password,
this routine replaces the password entry with
newpw.
NOTE:
All routines in librpc and libyp
have been incorporated into libsocket.
libyp and libsocket have been retained
so that existing Makefiles will continue to work.
New code should be linked with libsocket.
rpc info
program number:
YPPASSWDPROG
xdr routines:
xdr_ppasswd(xdrs, yp)
XDR *xdrs;
struct yppasswd *yp;
xdr_yppasswd(xdrs, pw)
XDR *xdrs;
struct passwd *pw;
procs:
YPPASSWDPROC_UPDATE-
Takes struct yppasswd as argument and 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 */
};
Return values
If the call succeeds, a value of 0 is returned.
If the call fails, then a value of -1 is returned.
Limitations
No reason for failure is returned in errno.
See also
yppasswd(NC),
yppasswdd(NADM)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003