Content-type: text/html Man page of yppasswd

yppasswd

Section: C Library Functions (3)
Index Return to Main Contents
 

NAME

yppasswd - update user password in Network Information Service (NIS) password map.  

SYNOPSIS

#include <rpcsvc/yppasswd.h>

yppasswd(oldpass, newpw)
char *oldpass;
struct passwd *newpw;
 

DESCRIPTION

The yppasswd routine uses Remote Procedure Call (RPC) and External Data Representation (XDR) routines to update a user password in an Network Information Service (NIS) password map. The RPC and XDR elements that are used are listed below under the RPC INFO heading.

If oldpass is indeed the old user password, this routine replaces the password entry with newpw. It returns 0 if successful.  

RPC Information

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, 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 */
 };
 

RELATED INFORMATION

yppasswd(1), yppasswdd(8) delim off


 

Index

NAME
SYNOPSIS
DESCRIPTION
RPC Information
RELATED INFORMATION

This document was created by man2html, using the manual pages.
Time: 02:41:32 GMT, October 02, 2010