Home | History | Annotate | Download | only in openssh

Lines Matching refs:username

307 	 * If we don't have a 'real' lastlog, we need the username to
316 if (strlcpy(li->username, pw->pw_name, sizeof(li->username)) >=
317 sizeof(li->username)) {
318 error("%s: username too long (%lu > max %lu)", __func__,
320 (unsigned long)sizeof(li->username) - 1);
341 logininfo *login_alloc_entry(pid_t pid, const char *username,
347 login_init_entry(newli, pid, username, hostname, line);
369 login_init_entry(struct logininfo *li, pid_t pid, const char *username,
382 if (username) {
383 strlcpy(li->username, username, sizeof(li->username));
384 pw = getpwnam(li->username);
387 li->username);
468 !sys_auth_record_login(li->username,li->hostname,li->line,
470 logit("Writing login record failed for %s", li->username);
696 strncpy(ut->ut_name, li->username,
697 MIN_SIZEOF(ut->ut_name, li->username));
769 strncpy(utx->ut_user, li->username,
770 MIN_SIZEOF(utx->ut_user, li->username));
1152 * username on a given tty line. However, some systems (HP-UX is one)
1155 * Since we're only looking for logins here, we know that the username
1161 * it's possible that some systems may both leave the username in
1169 if (strncmp(li->username, ut->ut_name,
1170 MIN_SIZEOF(li->username, ut->ut_name)) == 0) {
1333 if (strncmp(li->username, utx->ut_user,
1334 MIN_SIZEOF(li->username, utx->ut_user)) == 0 ) {
1383 * Logouts are recorded as a blank username on a particular
1384 * line. So, we just need to find the username in struct utmpx
1490 LASTLOG_FILE, li->username);
1576 if ((ll = getlastlogxbyname(li->username, &l)) == NULL) {
1635 utx = getutxuser(li->username);
1655 * The most common login failure is to give password instead of username.
1661 record_failed_login(const char *username, const char *hostname,
1693 strncpy(ut.ut_user, username, sizeof(ut.ut_user));