Searched defs:user (Results 1 - 25 of 331) sorted by relevance

1234567891011>>

/freebsd-head/crypto/heimdal/lib/roken/
H A Dget_default_username.c46 const char *user; local
48 user = getenv ("USER");
49 if (user == NULL)
50 user = getenv ("LOGNAME");
51 if (user == NULL)
52 user = getenv ("USERNAME");
55 if (user == NULL) {
56 user = (const char *)getlogin ();
57 if (user != NULL)
58 return user;
[all...]
H A Dk_getpwnam.c42 k_getpwnam (const char *user) argument
46 p = getpwnam (user);
52 spwd = getspnam (user);
H A Dverify.c46 unix_verify_user(char *user, char *password) argument
50 pw = k_getpwnam(user);
H A Dinnetgr.c40 const char *user, const char *domain)
39 innetgr(const char *netgroup, const char *machine, const char *user, const char *domain) argument
/freebsd-head/libexec/ftpd/
H A Dlogwtmp.c55 ftpd_logwtmp(char *id, char *user, struct sockaddr *addr) argument
61 if (user != NULL) {
64 (void)strncpy(ut.ut_user, user, sizeof(ut.ut_user));
/freebsd-head/usr.sbin/nologin/
H A Dnologin.c39 const char *user, *tt; local
43 if ((user = getlogin()) == NULL)
44 user = "UNKNOWN";
46 syslog(LOG_CRIT, "Attempted login by %s on %s", user, tt);
/freebsd-head/contrib/ncurses/panel/
H A Dpanel.h51 NCURSES_CONST void *user; member in struct:panel
/freebsd-head/contrib/kyua/utils/
H A Dpasswd.hpp44 /// Represents a system user.
45 class user { class in namespace:utils::passwd
47 /// The name of the user.
50 /// The system-wide identifier of the user.
53 /// The login group identifier for the user.
56 user(const std::string&, const unsigned int, const unsigned int);
62 user current_user(void);
63 user find_user_by_name(const std::string&);
64 user find_user_by_uid(const unsigned int);
65 void set_current_user_for_testing(const user
[all...]
/freebsd-head/crypto/heimdal/lib/gssapi/krb5/
H A Dauthorize_localname.c43 char *user; local
51 user = malloc(user_name->length + 1);
52 if (user == NULL) {
57 memcpy(user, user_name->value, user_name->length);
58 user[user_name->length] = '\0';
61 user_ok = krb5_kuserok(context, princ, user);
63 free(user);
/freebsd-head/contrib/openpam/lib/libpam/
H A Dpam_get_user.c57 * Retrieve user name
62 const char **user,
72 r = pam_get_item(pamh, PAM_USER, (const void **)user);
73 if (r == PAM_SUCCESS && *user != NULL)
99 r = pam_get_item(pamh, PAM_USER, (const void **)user);
113 * The =pam_get_user function returns the name of the target user, as
115 * If no user was specified, nor set using =pam_set_item, =pam_get_user
116 * will prompt for a user name.
117 * Either way, a pointer to the user name is stored in the location
118 * pointed to by the =user argumen
61 pam_get_user(pam_handle_t *pamh, const char **user, const char *prompt) argument
[all...]
H A Dpam_start.c66 const char *user,
83 if ((r = pam_set_item(ph, PAM_USER, user)) != PAM_SUCCESS)
112 * The =user argument specifies the name of the target user - the user the
65 pam_start(const char *service, const char *user, const struct pam_conv *pam_conv, pam_handle_t **pamh) argument
/freebsd-head/usr.bin/mail/
H A Dv7.local.c53 * Locate the user's mailbox file (ie, the place where new, unread
57 findmail(char *user, char *buf, int buflen) argument
62 (void)snprintf(buf, buflen, "%s/%s", _PATH_MAILDIR, user);
82 * Discover user login name.
/freebsd-head/lib/libpam/modules/pam_securetty/
H A Dpam_securetty.c62 const char *user; local
66 pam_err = pam_get_user(pamh, &user, NULL);
69 if (user == NULL || (pwd = getpwnam(user)) == NULL)
72 PAM_LOG("Got user: %s", user);
74 /* If the user is not root, secure ttys do not apply */
/freebsd-head/lib/libulog/
H A Dulog_login.c66 ulog_login(const char *line, const char *user, const char *host) argument
72 strncpy(utx.ut_user, user, sizeof utx.ut_user);
/freebsd-head/libexec/ulog-helper/
H A Dulog-helper.c40 * This setuid helper utility writes user login records to disk.
47 * It uses the real user ID of the calling process to determine the
76 const char *line, *user, *host; local
84 user = get_username();
85 if (user == NULL)
91 ulog_login(line, user, host);
/freebsd-head/crypto/heimdal/appl/login/
H A Dutmpx_login.c26 int utmpx_login(char *line, const char *user, const char *host) { return 0; } argument
30 utmpx_update(struct utmpx *ut, char *line, const char *user, const char *host) argument
39 strncpy(ut->ut_user, user, sizeof(ut->ut_user));
58 prepare_utmp (&utmp, line, user, host);
68 utmpx_login(char *line, const char *user, const char *host) argument
79 * process ID for a login or user process.
89 utmpx_update(&save_ut, line, user, host);
99 utmpx_update(&newut, line, user, host);
/freebsd-head/crypto/heimdal/lib/gssapi/ntlm/
H A Diter_cred.c64 char *user = NULL, *domain = NULL; local
72 ret = krb5_ret_stringz(response, &user);
76 free(user);
82 free(user);
86 dn->username = user;
/freebsd-head/crypto/heimdal/lib/krb5/
H A Dget_default_principal.c43 const char *user = getenv("USER"); local
44 if(user == NULL)
45 user = getenv("LOGNAME");
46 if(user == NULL)
47 user = getenv("USERNAME");
48 return user;
64 const char *user; local
71 user = getlogin();
72 if(user == NULL)
73 user
[all...]
/freebsd-head/lib/libpam/modules/pam_lastlog/
H A Dpam_lastlog.c74 const char *user; local
79 pam_err = pam_get_user(pamh, &user, NULL);
82 if (user == NULL)
84 PAM_LOG("Got user: %s", user);
109 utx = getutxuser(user);
139 strncpy(utl.ut_user, user, sizeof utl.ut_user);
/freebsd-head/usr.bin/tip/tip/
H A Dlog.c56 char *user, *timestamp; local
66 if ((user = getlogin()) == NOSTR) {
68 user = "???";
70 user = pwd->pw_name;
76 user, timestamp, group,
/freebsd-head/lib/libpam/modules/pam_chroot/
H A Dpam_chroot.c57 const char *dir, *end, *cwd, *user; local
61 if (pam_get_user(pamh, &user, NULL) != PAM_SUCCESS ||
62 user == NULL || (pwd = getpwnam(user)) == NULL)
72 "%s's home directory is too long", user);
83 "%s has no chroot directory", user);
89 openpam_log(PAM_LOG_DEBUG, "chrooting %s to %s", dir, user);
/freebsd-head/lib/libpam/modules/pam_deny/
H A Dpam_deny.c46 const char *user; local
49 if ((r = pam_get_user(pamh, &user, NULL)) != PAM_SUCCESS)
/freebsd-head/lib/libpam/modules/pam_ftpusers/
H A Dpam_ftpusers.c61 const char *user; local
67 pam_err = pam_get_user(pamh, &user, NULL);
70 if (user == NULL || (pwd = getpwnam(user)) == NULL)
74 ulen = strlen(user);
88 if (len == ulen && strncmp(user, line, len) == 0)
103 if (strcmp(user, *mem) == 0)
/freebsd-head/lib/libpam/modules/pam_group/
H A Dpam_group.c62 const char *group, *user; local
69 if (pam_get_user(pamh, &user, NULL) != PAM_SUCCESS ||
70 user == NULL || (pwd = getpwnam(user)) == NULL)
100 /* check if user's own primary group */
/freebsd-head/lib/libpam/modules/pam_guest/
H A Dpam_guest.c74 const char *authtok, *guests, *user; local
78 if (pam_get_user(pamh, &user, NULL) != PAM_SUCCESS || user == NULL)
86 is_guest = lookup(user, guests);
94 strcmp(user, authtok) != 0)
102 pam_setenv(pamh, "GUEST", user, 1);

Completed in 112 milliseconds

1234567891011>>