Lines Matching refs:user

144 /* Hook for a plugin to check the PAP user and password */
145 int (*pap_auth_hook) __P((char *user, char *passwd, char **msgp,
149 /* Hook for a plugin to know about the PAP user logout */
153 int (*pap_passwd_hook) __P((char *user, char *passwd)) = NULL;
254 { "user", o_string, user,
270 "Get PAP user and password from file" },
294 /* open user info file */
299 option_error("unable to open user login data file %s", *argv);
305 if (fgets(user, MAXNAMELEN - 1, ufile) == NULL
307 option_error("unable to read user login data file %s", *argv);
313 l = strlen(user);
314 if (l > 0 && user[l-1] == '\n')
315 user[l-1] = 0;
495 ChapAuthWithPeer(unit, ppp_settings.user, ho->chap_mdtype);
506 if (!get_pap_passwd(unit, ppp_settings.user, ppp_settings.passwd)) {
510 upap_authwithpeer(unit, ppp_settings.user, ppp_settings.passwd);
791 /* Default our_name to hostname, and user to our_name */
796 if (ppp_settings.user[0] == 0) {
797 strcpy(ppp_settings.user, ppp_settings.our_name);
837 ao->neg_chap = !ppp_settings.refuse_chap && ppp_settings.passwd[0] != 0 /*have_chap_secret(ppp_settings.user, ppp_settings.remote_name, (u32_t)0)*/;
852 * check_passwd - Check the user name and passwd against the PAP secrets
854 * and login the user if OK.
876 char passwd[256], user[256];
885 BCOPY(auser, user, userlen);
886 user[userlen] = '\0';
889 /* XXX Validate user name and password. */
903 AUTHDEBUG(LOG_WARNING, ("%d LOGIN FAILURES BY %s\n", attempts, user));
948 * plogin - Check the user name and password against the system
949 * password database, and login the user if OK.
957 plogin(char *user, char *passwd, char **msg, int *msglen)
960 LWIP_UNUSED_ARG(user);
992 * plogout - Logout the user.
1020 get_pap_passwd(int unit, char *user, char *passwd)
1026 always provide a default user/passwd of "none"/"none"
1028 @todo: This should be configured by the user, instead of being hardcoded here!
1030 if(user) {
1031 strcpy(user, "none");
1086 if(!client || !client[0] || strcmp(client, ppp_settings.user)) {
1304 * interface-name peer-name real-user tty speed