• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/ppp/pppd/

Lines Matching refs:passwd

112 /* Set if we got the contents of passwd[] from the pap-secrets file. */
125 int (*pap_auth_hook) __P((char *user, char *passwd, char **msgp,
133 int (*pap_passwd_hook) __P((char *user, char *passwd)) = NULL;
153 bool uselogin = 0; /* Use /etc/passwd for checking PAP */
242 { "password", o_string, passwd,
315 if (override_value("passwd", option_priority, fname))
316 strlcpy(passwd, p, sizeof(passwd));
485 if (passwd[0] == 0) {
487 if (!get_pap_passwd(passwd))
490 upap_authwithpeer(unit, user, passwd);
638 BZERO(passwd, MAXSECRETLEN);
664 BZERO(passwd, MAXSECRETLEN);
873 ao->neg_upap = !refuse_pap && (passwd[0] != 0 || get_pap_passwd(NULL));
875 && (passwd[0] != 0
890 * check_passwd - Check the user name and passwd against the PAP secrets
912 char passwd[256], user[256];
921 slprintf(passwd, sizeof(passwd), "%.*v", passwdlen, apasswd);
929 ret = (*pap_auth_hook)(user, passwd, msg, &addrs, &opts);
933 BZERO(passwd, sizeof(passwd));
964 ret = plogin(user, passwd, msg);
972 if ((cryptpap || strcmp(passwd, secret) != 0)
973 && strcmp(crypt(passwd, secret), secret) != 0) {
1003 BZERO(passwd, sizeof(passwd));
1085 plogin(user, passwd, msg)
1087 char *passwd;
1106 PAM_password = passwd;
1140 struct passwd *pw = getpwnam(user);
1165 * If no passwd, don't let them login.
1168 || strcmp(crypt(passwd, pw->pw_passwd), pw->pw_passwd) != 0)
1183 if (pw != (struct passwd *)NULL) {
1277 * Assumes passwd points to MAXSECRETLEN bytes of space (if non-null).
1280 get_pap_passwd(passwd)
1281 char *passwd;
1292 ret = (*pap_passwd_hook)(user, passwd);
1308 if (passwd != NULL)
1309 strlcpy(passwd, secret, MAXSECRETLEN);
1417 if (!am_server && passwd[0] != 0) {
1418 strlcpy(secbuf, passwd, sizeof(secbuf));
1924 struct passwd *pw;