Home
last modified time | relevance | path

Searched refs:username (Results 1 – 10 of 10) sorted by relevance

/openssh-portable/
H A Daudit-linux.c42 linux_audit_record_event(int uid, const char *username, const char *hostname, in linux_audit_record_event() argument
55 NULL, "login", username ? username : "(unknown)", in linux_audit_record_event()
56 username == NULL ? uid : -1, hostname, ip, ttyn, success); in linux_audit_record_event()
H A Dloginrec.c319 if (strlcpy(li->username, pw->pw_name, sizeof(li->username)) >= in login_get_lastlog()
320 sizeof(li->username)) { in login_get_lastlog()
385 if (username) { in login_init_entry()
386 strlcpy(li->username, username, sizeof(li->username)); in login_init_entry()
387 pw = getpwnam(li->username); in login_init_entry()
390 li->username); in login_init_entry()
693 strncpy(ut->ut_name, li->username, in construct_utmp()
766 strncpy(utx->ut_user, li->username, in construct_utmpx()
1169 if (strncmp(li->username, ut->ut_name, in wtmp_islogin()
1490 LASTLOG_FILE, li->username); in lastlog_openseek()
[all …]
H A Dlogintest.c77 li->username, li->hostname, li->exit, in dump_logininfo()
91 char username[32]; in testAPI() local
101 strlcpy(username, pw->pw_name, sizeof(username)); in testAPI()
108 li1 = login_alloc_entry((int)getpid(), username, NULL, ttyname(0)); in testAPI()
H A Dloginrec.h71 char username[LINFO_NAMESIZE]; /* login username */ member
91 struct logininfo *login_alloc_entry(pid_t pid, const char *username,
96 int login_init_entry(struct logininfo *li, pid_t pid, const char *username,
H A Dauth2-pubkey.c447 char *tmp, *username = NULL, *command = NULL, **av = NULL; in match_principals_command() local
469 username = percent_expand(options.authorized_principals_command_user, in match_principals_command()
471 runas_pw = getpwnam(username); in match_principals_command()
474 username, strerror(errno)); in match_principals_command()
561 free(username); in match_principals_command()
887 char *username = NULL, *key_fp = NULL, *keytext = NULL; in user_key_command_allowed2() local
907 username = percent_expand(options.authorized_keys_command_user, in user_key_command_allowed2()
909 runas_pw = getpwnam(username); in user_key_command_allowed2()
912 username, strerror(errno)); in user_key_command_allowed2()
1000 free(username); in user_key_command_allowed2()
H A Daudit-bsm.c235 selected(char *username, uid_t uid, au_event_t event, int sf) in selected() argument
248 rc = au_user_mask(username, &mask); in selected()
H A Dmonitor.c719 char *username; in mm_answer_pwnamallow() local
729 if ((r = sshbuf_get_cstring(m, &username, NULL)) != 0) in mm_answer_pwnamallow()
732 pwent = getpwnamallow(ssh, username); in mm_answer_pwnamallow()
734 authctxt->user = xstrdup(username); in mm_answer_pwnamallow()
735 setproctitle("%s [priv]", pwent ? username : "unknown"); in mm_answer_pwnamallow()
736 free(username); in mm_answer_pwnamallow()
H A Dmonitor_wrap.c259 mm_getpwnamallow(struct ssh *ssh, const char *username) in mm_getpwnamallow() argument
274 if ((r = sshbuf_put_cstring(m, username)) != 0) in mm_getpwnamallow()
H A Dchannels.c1252 char username[256]; in channel_decode_socks4() local
1308 strlcpy(username, p, sizeof(username)); in channel_decode_socks4()
H A Dconfigure.ac1009 AC_DEFINE([PASSWD_NEEDS_USERNAME], [1], [must supply username to passwd
1111 AC_DEFINE([PASSWD_NEEDS_USERNAME], [1], [must supply username to passwd])

Completed in 23 milliseconds