/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | getlogin.c | 28 #include <pwd.h> 37 struct passwd *pwd; local 38 if ((pwd = (struct passwd *)_getpwuid(_getuid())) != NULL) 39 return (pwd->pw_name);
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | temp.c | 44 #include <pwd.h> 63 struct passwd *pwd; local 73 pwd = getpwuid(uid = myruid); 74 if (!pwd) { 79 copy(pwd->pw_name, myname);
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | getpwinfo.c | 30 #include <pwd.h> 50 register struct passwd *pwd; local 55 pwd = getpwnam(login_name); 56 if (pwd != NULL && pwd->pw_uid == uid) 61 if ((pwd = getpwuid(uid)) == NULL) { 62 if ((pwd = getpwuid(UUCPUID)) == NULL) 68 (void) strcpy(name, pwd->pw_name); 86 register struct passwd *pwd; local 88 if ((pwd [all...] |
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | mygetwd.c | 47 char *pwd; /* PWD environment variable value */ local 57 if ((pwd = getenv("PWD")) != NULL && *pwd != '\0' && 58 stat(pwd, &tmp_sb) == 0 && 60 (void) strcpy(dir, pwd); 61 return (pwd);
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | cuserid.c | 36 #include <pwd.h> 48 struct passwd pwd; local 64 } else if ((pw = getpwuid_r(getuid(), &pwd, buffer, BUFSIZ)) != NULL) {
|
/illumos-gate/usr/src/lib/libcmdutils/common/ |
H A D | uid.c | 38 #include <pwd.h> 52 struct passwd *pwd; local 56 for (pwd = getpwent(); pwd != NULL; pwd = getpwent()) { 57 if (isreserveduid(pwd->pw_uid)) /* Skip reserved IDs */ 59 if (pwd->pw_uid >= uid) { 60 if (pwd->pw_uid == stop) { /* Overflow check */ 64 uid = pwd->pw_uid + 1; 67 if (pwd [all...] |
/illumos-gate/usr/src/lib/pam_modules/rhosts_auth/ |
H A D | rhosts_auth.c | 32 #include <pwd.h> 55 struct passwd pwd; local 89 if (getpwnam_r(lusername, &pwd, pwd_buffer, sizeof (pwd_buffer)) 93 if (pwd.pw_uid == 0)
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | accton.c | 41 #include <pwd.h> 46 struct passwd *pwd; variable in typeref:struct:passwd 56 if ((pwd = getpwnam("adm")) == NULL) { 59 admuid = pwd->pw_uid;
|
/illumos-gate/usr/src/cmd/cmd-inet/common/ |
H A D | store_forw_creds.c | 29 #include <pwd.h> 52 struct passwd *pwd; local 57 if (!(pwd = getpwnam(lusername))) 61 if (seteuid(pwd->pw_uid)) 65 pwd->pw_uid);
|
/illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
H A D | standalone.c | 124 char *pwd; local 144 if ((pwd = strdup(passwdBuf)) == NULL) { 150 return (pwd);
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | log.c | 25 struct passwd *pwd; local 37 if ((pwd = getpwuid(uid)) == NOPWD) 40 user = pwd->pw_name;
|
/illumos-gate/usr/src/cmd/tsol/updatehome/ |
H A D | updatehome.c | 76 #include <pwd.h> 101 struct passwd *pwd; /* current user's password file entry */ local 153 if ((pwd = getpwuid(uid)) == (struct passwd *)0) { 163 if (((userp = getusernam(pwd->pw_name)) == NULL) || 178 " user %s.\n"), pwd->pw_name); 183 if (__setupfiles(pwd, min_sl, flags) != 0) {
|
/illumos-gate/usr/src/lib/pam_modules/ldap/ |
H A D | ldap_utils.c | 87 authenticate(ns_cred_t **credpp, char *usrname, char *pwd, argument 105 if ((usrname == NULL) || (pwd == NULL) || (usrname[0] == '\0') || 106 (pwd[0] == '\0')) 114 credp->cred.unix_cred.passwd = strdup(pwd);
|
/illumos-gate/usr/src/lib/libsecdb/common/ |
H A D | getuserattr.c | 36 #include <pwd.h> 95 struct passwd pwd; local 98 if (getpwuid_r(u, &pwd, buf, NSS_BUFLEN_PASSWD) == NULL) 100 return (getusernam(pwd.pw_name));
|
/illumos-gate/usr/src/cmd/userattr/ |
H A D | userattr.c | 28 #include <pwd.h> 76 struct passwd *pwd; local 103 if ((pwd = getpwuid(uid)) == NULL) { 108 user = pwd->pw_name; 110 if ((pwd = getpwnam(user)) == NULL) {
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | ldap_service_stash.c | 238 int dec_password(struct data pwd, struct data *ret) { argument 245 if (pwd.len == 0) { 252 if (pwd.len >= strlen("{HEX}") && 253 strncmp((char *)pwd.value, "{HEX}", strlen("{HEX}")) == 0) { 255 if ((pwd.len - strlen("{HEX}")) % 2 != 0) { 261 ret->value = (unsigned char *)malloc((pwd.len - strlen("{HEX}")) / 2 + 1); 267 ret->len = (pwd.len - strlen("{HEX}")) / 2; 269 for (i = strlen("{HEX}"), j = 0; i < pwd.len; i += 2, j++) { 272 if (isxdigit(pwd.value[i]) == 0 || isxdigit(pwd [all...] |
/illumos-gate/usr/src/cmd/login/ |
H A D | login_audit.c | 28 #include <pwd.h> 59 audit_success(uint_t event_id, struct passwd *pwd, char *optional_text) argument 65 assert(pwd != NULL); 71 if (adt_set_user(ah, pwd->pw_uid, pwd->pw_gid, 72 pwd->pw_uid, pwd->pw_gid, NULL, ADT_USER)) { 203 * If the user id is invalid, pwd is NULL. 206 audit_failure(uint_t event_id, int failure_code, struct passwd *pwd, argument 220 if (pwd ! [all...] |
/illumos-gate/usr/src/lib/pam_modules/unix_session/ |
H A D | unix_session.c | 40 #include <pwd.h> 94 struct passwd pwd; local 130 if (getpwnam_r(user, &pwd, buffer, sizeof (buffer)) == NULL) { 139 offset = (offset_t)pwd.pw_uid * 145 "too large", pwd.pw_uid); 186 "lastlog: uid %d: %m", pwd.pw_uid); 189 "lastlog: uid %d: %m", pwd.pw_uid);
|
/illumos-gate/usr/src/lib/pyzfs/common/ |
H A D | userspace.py | 30 import pwd namespace 74 (0, 0): ("POSIX User", lambda id: pwd.getpwuid(int(id)).pw_name)
|
/illumos-gate/usr/src/lib/pam_modules/authtok_get/ |
H A D | authtok_get.c | 59 char *pwd; local 98 res = pam_get_item(pamh, PAM_AUTHTOK, (void **)&pwd); 101 if (pwd != NULL) { 113 dgettext(TEXT_DOMAIN, "New Password: "), &pwd); 118 if (pwd == NULL) { 127 (void) memset(pwd, 0, strlen(pwd)); 128 free(pwd); 151 char *pwd; local 167 "Re-enter new Password: "), &pwd); [all...] |
/illumos-gate/usr/src/lib/pam_modules/dial_auth/ |
H A D | dial_auth.c | 29 #include <pwd.h> 62 struct passwd pwd; local 98 if (getpwnam_r(user, &pwd, pwd_buffer, sizeof (pwd_buffer)) == NULL) 138 if (pwd.pw_shell != NULL && strcmp(pwd.pw_shell, line) == 0)
|
/illumos-gate/usr/src/lib/pam_modules/roles/ |
H A D | roles.c | 27 #include <pwd.h> 33 #include <pwd.h> 59 struct passwd *pw_entry, pwd; local 101 if ((pw_entry = getpwnam_r(username, &pwd, buf, sizeof (buf))) == NULL) 103 if ((pw_entry = getpwuid_r(pw_entry->pw_uid, &pwd, buf, 147 if ((pw_entry = getpwuid_r(uid, &pwd, buf,
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | nss_attr.c | 29 #include <pwd.h> 66 struct passwd *pwd; member in struct:pwbuf 113 if (pwbuf->pwd == NULL) 114 pwbuf->pwd = (struct passwd *) 116 if (pwbuf->pwd == NULL) { 140 if (pwbuf->pwd) 141 free(pwbuf->pwd); 158 if (pwbuf->pwd) { 163 if (getpwnam_r(name, pwbuf->pwd, pwbuf->pwd_scratch, 184 struct passwd pwd; local [all...] |
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | homedir.c | 53 #include <pwd.h> 90 struct passwd pwd; /* The password entry of a user */ member in struct:HomeDir 255 struct passwd *ret; /* The returned pointer to pwd */ 261 status = getpwuid_r(geteuid(), &home->pwd, home->buffer, home->buflen, 264 status = getpwnam_r(user, &home->pwd, home->buffer, home->buflen, &ret); 273 home_dir = home->pwd.pw_dir; 280 struct passwd *pwd = login_user ? getpwuid(geteuid()) : getpwnam(user); local 281 if(!pwd) { 289 home_dir = pwd->pw_dir; 363 struct passwd *pwd; /* local 390 struct passwd *pwd; /* The pointer to the latest password entry */ local 420 const char *pwd = hd_getpwd(home); local 459 const char *pwd = getenv("PWD"); local [all...] |
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_rexecd.c | 37 #include <pwd.h> 142 struct passwd *pwd; local 166 pwd = getpwnam(user); 167 if (pwd == NULL) { 171 uid = pwd->pw_uid; 172 gid = pwd->pw_gid; 253 struct passwd *pwd; local 277 pwd = getpwnam(user); 278 if (pwd == NULL) { 282 uid = pwd [all...] |