version 1.5, 1996/08/31 13:50:19 |
version 1.6, 1997/02/13 17:28:40 |
|
|
if (client==NULL) { |
if (client==NULL) { |
fprintf(stderr, "can't contact yppasswdd on %s: Reason: %s\n", |
fprintf(stderr, "can't contact yppasswdd on %s: Reason: %s\n", |
master, yperr_string(YPERR_YPBIND)); |
master, yperr_string(YPERR_YPBIND)); |
return(0); |
return(1); |
} |
} |
client->cl_auth = authunix_create_default(); |
client->cl_auth = authunix_create_default(); |
tv.tv_sec = 5; |
tv.tv_sec = 5; |
|
|
if (r) { |
if (r) { |
fprintf(stderr, "%s: rpc to yppasswdd failed. %d\n", progname, r); |
fprintf(stderr, "%s: rpc to yppasswdd failed. %d\n", progname, r); |
clnt_destroy(client); |
clnt_destroy(client); |
return(0); |
return(1); |
} else if (status) { |
} else if (status) { |
printf("Couldn't change YP password information.\n"); |
printf("Couldn't change YP password information.\n"); |
clnt_destroy(client); |
clnt_destroy(client); |
return(0); |
return(1); |
} |
} |
printf("The YP password information has been changed on %s, the master YP passwd server.\n", master); |
printf("The YP password information has been changed on %s, the master YP passwd server.\n", master); |
|
|
clnt_destroy(client); |
clnt_destroy(client); |
return(1); |
return(0); |
} |
} |
|
|
static char * |
static char * |