Lines Matching refs:username

304 	 * If we don't have a 'real' lastlog, we need the username to
313 if (strlcpy(li->username, pw->pw_name, sizeof(li->username)) >=
314 sizeof(li->username)) {
315 error("%s: username too long (%lu > max %lu)", __func__,
317 (unsigned long)sizeof(li->username) - 1);
338 logininfo *login_alloc_entry(pid_t pid, const char *username,
344 login_init_entry(newli, pid, username, hostname, line);
366 login_init_entry(struct logininfo *li, pid_t pid, const char *username,
379 if (username) {
380 strlcpy(li->username, username, sizeof(li->username));
381 pw = getpwnam(li->username);
384 li->username);
465 !sys_auth_record_login(li->username,li->hostname,li->line,
467 logit("Writing login record failed for %s", li->username);
693 strncpy(ut->ut_name, li->username,
694 MIN_SIZEOF(ut->ut_name, li->username));
766 strncpy(utx->ut_user, li->username,
767 MIN_SIZEOF(utx->ut_user, li->username));
1149 * username on a given tty line. However, some systems (HP-UX is one)
1152 * Since we're only looking for logins here, we know that the username
1158 * it's possible that some systems may both leave the username in
1166 if (strncmp(li->username, ut->ut_name,
1167 MIN_SIZEOF(li->username, ut->ut_name)) == 0) {
1330 if (strncmp(li->username, utx->ut_user,
1331 MIN_SIZEOF(li->username, utx->ut_user)) == 0 ) {
1380 * Logouts are recorded as a blank username on a particular
1381 * line. So, we just need to find the username in struct utmpx
1487 LASTLOG_FILE, li->username);
1573 if ((ll = getlastlogxbyname(li->username, &l)) == NULL) {
1632 utx = getutxuser(li->username);
1652 * The most common login failure is to give password instead of username.
1658 record_failed_login(const char *username, const char *hostname,
1690 strncpy(ut.ut_user, username, sizeof(ut.ut_user));