Lines Matching refs:user

170 /* Hook for a plugin to check the PAP user and password */
171 int (*pap_auth_hook) (char *user, char *passwd, char **msgp,
175 /* Hook for a plugin to know about the PAP user logout */
179 int (*pap_passwd_hook) (char *user, char *passwd) = NULL;
185 int (*chap_passwd_hook) (char *user, char *passwd) = NULL;
230 bool explicit_user = 0; /* Set if "user" option supplied */
362 "Get PAP user and password from file",
366 { "user", o_string, user,
427 /* open user info file */
440 option_error("unable to open user login data file %s", fname);
450 option_error("unable to read user login data file %s", fname);
463 if (override_value("user", option_priority, fname)) {
464 strlcpy(ppp_settings.user, u, sizeof(ppp_settings.user));
831 eap_authwithpeer(pcb, pcb->settings.user);
837 chap_auth_with_peer(pcb, pcb->settings.user, CHAP_DIGEST(ho->chap_mdtype));
843 upap_authwithpeer(pcb, pcb->settings.user, pcb->settings.passwd);
999 * auth_check_passwd - Check the user name and passwd against configuration.
1010 if (pcb->settings.user && pcb->settings.passwd) {
1011 secretuserlen = (int)strlen(pcb->settings.user);
1015 && !memcmp(auser, pcb->settings.user, userlen)
1376 /* Default our_name to hostname, and user to our_name */
1380 the user and don't use our_name */
1381 if (ppp_settings.user[0] == 0 && !explicit_user)
1382 strlcpy(ppp_settings.user, our_name, sizeof(ppp_settings.user));
1386 * unless the noauth option was given or the real user is root.
1522 (hadchap = have_chap_secret(user, (explicit_remote? remote_name:
1526 (hadchap == 1 || (hadchap == -1 && have_chap_secret(user,
1528 have_srp_secret(user, (explicit_remote? remote_name: NULL), 0, NULL));
1548 * check_passwd - Check the user name and passwd against the PAP secrets
1550 * and login the user if OK.
1571 char passwd[256], user[256];
1581 slprintf(ppp_settings.user, sizeof(ppp_settings.user), "%.*v", userlen, auser);
1588 ret = (*pap_auth_hook)(ppp_settings.user, ppp_settings.passwd, msg, &addrs, &opts);
1605 * for authenticating this user.
1616 if (scan_authfile(f, ppp_settings.user, our_name, secret, &addrs, &opts, filename, 0) < 0) {
1617 ppp_warn("no PAP secret found for %s", user);
1627 if (session_full(ppp_settings.user, ppp_settings.passwd, devnam, msg) == 0) {
1631 if (session_check(ppp_settings.user, NULL, devnam, NULL) == 0) {
1632 ppp_warn("Peer %q failed PAP Session verification", user);
1656 ppp_warn("%d LOGIN FAILURES ON %s, %s", attempts, devnam, user);
1747 ret = (*pap_passwd_hook)(ppp_settings,user, ppp_settings.passwd);
1757 ret = scan_authfile(f, user,
1909 if (!client || !client[0] || !pcb->settings.user || !pcb->settings.passwd || strcmp(client, pcb->settings.user)) {
2172 * the user hasn't given one, AND there is an authorized address