#include <sys/types.h>#include <time.h>#include <stdio.h>#include <fcntl.h>#include <unistd.h>#include <stdlib.h>#include <pwd.h>#include <string.h>#include "pwauth.h"#include "pwio.h"#include "getdef.h"#include "t_pwd.h"Go to the source code of this file.
Defines | |
| #define | P_(x) () |
| #define | STRFCPY(A, B) (strncpy((A), (B), sizeof(A) - 1), (A)[sizeof(A) - 1] = '\0') |
| #define | SROOTDCONF ".srootdpass.conf" |
| #define | SROOTDPASS ".srootdpass" |
| #define | USAGE "usage: %s [ -c config ] [ -p passwd ] [ name ]\n" |
| #define | NEWPASSMSG "Enter the new password (minimum of %d, maximum of %d characters)\n\Please use a combination of upper and lower case letters and numbers.\n" |
| #define | NEWPASS "New password:" |
| #define | NEWPASS2 "Re-enter new password:" |
| #define | NOMATCH "They don't match; try again.\n" |
| #define | EPSFAIL "Unable to update EPS password.\n" |
| #define | NOEPSCONF "Warning: configuration file missing; please run 'tconf'\n" |
| #define | WHOAREYOU "%s: Cannot determine your user name.\n" |
| #define | UNKUSER "%s: Unknown user %s\n" |
| #define | UNCHANGED "The password for %s is unchanged.\n" |
| #define | PASSWARN "\nWarning: weak password (enter it again to use it anyway).\n" |
Functions | |
| int obscure | P_ ((const char *, const char *, const struct passwd *)) |
| char *Basename | P_ ((char *str)) |
| passwd *get_my_pwent | P_ ((void)) |
| char *xstrdup | P_ ((const char *str)) |
| char * | crypt_make_salt () |
| char * | l64a () |
| static void | usage (int status) |
| static int | new_password (const struct passwd *pw) |
| int | main (int argc, char **argv) |
Variables | |
| static int | do_update_eps = 0 |
| t_pw | eps_passwd |
| static char * | name |
| static char * | myname |
| static char * | Prog |
| static char | r_tconf [256] |
| static char | r_passwd [256] |
| int | optind |
| char * | optarg |
| #define EPSFAIL "Unable to update EPS password.\n" |
| #define NEWPASS "New password:" |
| #define NEWPASS2 "Re-enter new password:" |
| #define NOEPSCONF "Warning: configuration file missing; please run 'tconf'\n" |
| #define SROOTDCONF ".srootdpass.conf" |
| #define WHOAREYOU "%s: Cannot determine your user name.\n" |
| char* crypt_make_salt | ( | ) |
| char* l64a | ( | ) |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 203 of file rpasswd.c.
References creat(), EOF, EPSFAIL, fclose(), flag, fopen, fprintf(), getenv(), new_password(), NULL, passwd::pw_name, sprintf(), SROOTDCONF, SROOTDPASS, STRFCPY, UNCHANGED, usage, and WHOAREYOU.
| static int new_password | ( | const struct passwd * | pw | ) | [static] |
| char* xstrdup P_ | ( | (const char *str) | ) |
| struct passwd* get_my_pwent P_ | ( | (void) | ) |
| char* Basename P_ | ( | (char *str) | ) |
| int obscure P_ | ( | (const char *, const char *, const struct passwd *) | ) |
| static void usage | ( | int | status | ) | [static] |
int do_update_eps = 0 [static] |
| struct t_pw eps_passwd |
char* myname [static] |
| char* optarg |
Referenced by XrdFrmConfig::Configure(), XrdConfig::Configure(), getargs(), and main().
| int optind |
char* Prog [static] |
1.5.1