Lines Matching refs:username
131 static char *username; /* user name */ variable
186 badlogin(username); in main()
229 username = strdup(*argv); in main()
230 if (username == NULL) in main()
277 olduser = username; in main()
278 username = getloginname(); in main()
287 if (failures && strcmp(olduser, username) != 0) { in main()
295 pam_err = pam_start("login", username, &pamc, &pamh); in main()
320 (void)getpwnam_r(username, &pwres, pwbuf, sizeof(pwbuf), &pwd); in main()
367 badlogin(username); in main()
507 username, tty, hostname); in main()
510 username, tty); in main()
588 if (setlogin(username) != 0) { in main()
589 syslog(LOG_ERR, "setlogin(%s): %m - exiting", username); in main()
605 (void)setenv("LOGNAME", username, 1); in main()
606 (void)setenv("USER", username, 1); in main()
655 username); in main()
707 if (strcmp(username, tmpl_user) != 0) { in auth_pam()
835 badlogin(username); in getloginname()