/sssd/src/krb5_plugin/ |
H A D | sssd_krb5_localauth_plugin.c | 23 #include <pwd.h> 42 struct passwd pwd = { 0 }; local 68 nss_status = _nss_sss_getpwnam_r(princ_str, &pwd, buffer, buflen, 79 princ_uid = pwd.pw_uid; 81 nss_status = _nss_sss_getpwnam_r(lname, &pwd, buffer, buflen, &nss_errno); 91 if (princ_uid != pwd.pw_uid) { 116 struct passwd pwd = { 0 }; local 136 nss_status = _nss_sss_getpwnam_r(princ_str, &pwd, buffer, buflen, 147 if (pwd.pw_name == NULL) { 152 str = strdup(pwd [all...] |
/sssd/src/responder/common/ |
H A D | negcache_files.c | 23 #include <pwd.h> 32 struct passwd pwd = { 0 }; local 44 ret = getpwnam_r(shortname, &pwd, buffer, BUFFER_SIZE, &pwd_result); 56 struct passwd pwd = { 0 }; local 62 ret = getpwuid_r(uid, &pwd, buffer, BUFFER_SIZE, &pwd_result);
|
/sssd/src/providers/proxy/ |
H A D | proxy_id.c | 34 struct passwd *pwd, const char *real_name, 38 handle_getpw_result(enum nss_status status, struct passwd *pwd, 50 struct passwd *pwd; local 73 pwd = talloc_zero(tmpctx, struct passwd); 74 if (!pwd) { 88 status = ctx->ops.getpwnam_r(shortname_or_alias, pwd, buffer, buflen, &ret); 89 ret = handle_getpw_result(status, pwd, dom, &del_user); 101 uid = pwd->pw_uid; 125 status = ctx->ops.getpwuid_r(uid, pwd, buffer, buflen, &ret); 126 ret = handle_getpw_result(status, pwd, do 159 handle_getpw_result(enum nss_status status, struct passwd *pwd, struct sss_domain_info *dom, bool *del_user) argument 287 save_user(struct sss_domain_info *domain, struct passwd *pwd, const char *real_name, const char *alias) argument 345 struct passwd *pwd; local 413 struct passwd *pwd; local 1205 struct passwd *pwd; local 1346 get_initgr_groups_process(TALLOC_CTX *memctx, struct proxy_id_ctx *ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *dom, struct passwd *pwd) argument [all...] |
H A D | proxy.h | 30 #include <pwd.h>
|
/sssd/src/tests/intg/ |
H A D | ldap_local_override_test.py | 23 import pwd namespace 184 pwd.getpwnam('ov_user1') 186 pwd.getpwnam('ov_user1@LDAP') 188 pwd.getpwnam('ov_user2') 190 pwd.getpwnam('ov_user2@LDAP') 467 pwd.getpwnam('ov_user1') 469 pwd.getpwnam('ov_user1@LDAP') 668 pwd.getpwnam('ov_group') 670 pwd.getpwnam('ov_group@LDAP') 672 pwd [all...] |
H A D | sssd_id.py | 20 import pwd namespace 95 pwd_user = pwd.getpwnam(user) 99 user = pwd.getpwuid(uid).pw_name
|
H A D | test_local_domain.py | 21 import pwd namespace 113 pwd.getpwnam(name) 150 pwd.getpwnam("foo")
|
H A D | ent.py | 21 import pwd namespace 187 Convert a passwd entry returned by pwd module to an entry dictionary. 202 return _convert_passwd(pwd.getpwnam(name)) 207 return _convert_passwd(pwd.getpwuid(uid)) 232 passwd_list = pwd.getpwall()
|
H A D | test_enumeration.py | 21 import pwd namespace 290 pwd.getpwnam("non_existent_user") 292 pwd.getpwuid(1) 338 pwd.getpwnam("non_existent_user") 340 pwd.getpwuid(1)
|
H A D | test_memory_cache.py | 23 import pwd namespace 600 pwd.getpwnam("user1") 602 pwd.getpwuid(1001) 773 pwd.getpwnam('user1') 775 pwd.getpwuid(1001)
|
H A D | test_ldap.py | 21 import pwd namespace 333 pwd.getpwnam("non_existent_user") 335 pwd.getpwuid(1) 381 pwd.getpwnam("non_existent_user") 383 pwd.getpwuid(1)
|
/sssd/src/tests/cmocka/ |
H A D | test_authtok.c | 97 const char *pwd; local 114 ret = sss_authtok_get_password(ts->authtoken, &pwd, &ret_len); 117 assert_string_equal(data, pwd); 123 ret = sss_authtok_get_password(ts->authtoken, &pwd, &ret_len); 125 assert_string_equal(data, pwd); 139 const char *pwd; local 156 ret = sss_authtok_get_ccfile(ts->authtoken, &pwd, &ret_len); 159 assert_string_equal(data, pwd); 166 ret = sss_authtok_get_ccfile(ts->authtoken, &pwd, &ret_len); 169 assert_string_equal(data, pwd); 195 const char *pwd; local 244 const char *pwd; local [all...] |
H A D | test_nss_srv.c | 268 static int parse_user_packet(uint8_t *body, size_t blen, struct passwd *pwd) argument 272 SAFEALIGN_COPY_UINT32(&pwd->pw_uid, body+rp, &rp); 273 SAFEALIGN_COPY_UINT32(&pwd->pw_gid, body+rp, &rp); 276 pwd->pw_name = (char *) body+rp; 277 rp += strlen(pwd->pw_name) + 1; 280 pwd->pw_passwd = (char *) body+rp; 281 rp += strlen(pwd->pw_passwd) + 1; 284 pwd->pw_gecos = (char *) body+rp; 285 rp += strlen(pwd->pw_gecos) + 1; 288 pwd 522 struct passwd pwd; local 616 struct passwd pwd; local 686 struct passwd pwd; local 754 struct passwd pwd; local 808 struct passwd pwd; local 848 struct passwd pwd; local 926 struct passwd pwd; local 984 struct passwd pwd; local 1084 struct passwd pwd; local 1153 struct passwd pwd; local 2485 struct passwd pwd; local [all...] |
/sssd/src/sss_client/libwbclient/ |
H A D | wbc_pwd_sssd.c | 221 wbcErr wbcGetpwnam(const char *name, struct passwd **pwd) argument 234 if (name == NULL || pwd == NULL) { 247 wbc_status = copy_pwd(&lpwd, pwd); 256 wbcErr wbcGetpwuid(uid_t uid, struct passwd **pwd) argument 269 if (pwd == NULL) { 282 wbc_status = copy_pwd(&lpwd, pwd); 291 wbcErr wbcGetpwsid(struct wbcDomainSid *sid, struct passwd **pwd) argument 301 wbc_status = wbcGetpwuid(uid, pwd); 492 wbcErr wbcGetpwent(struct passwd **pwd) argument 505 if (pwd 616 struct passwd *pwd; local [all...] |
H A D | wbc_ctx_sssd.c | 188 const char *name, struct passwd **pwd) 194 uid_t uid, struct passwd **pwd) 200 struct wbcDomainSid * sid, struct passwd **pwd) 227 wbcErr wbcCtxGetpwent(struct wbcContext *ctx, struct passwd **pwd) argument 187 wbcCtxGetpwnam(struct wbcContext *ctx, const char *name, struct passwd **pwd) argument 193 wbcCtxGetpwuid(struct wbcContext *ctx, uid_t uid, struct passwd **pwd) argument 199 wbcCtxGetpwsid(struct wbcContext *ctx, struct wbcDomainSid * sid, struct passwd **pwd) argument
|
H A D | wbclient_sssd.h | 27 #include <pwd.h> 1186 * @param **pwd Pointer to resulting struct passwd* from the query. 1191 const char *name, struct passwd **pwd); 1198 * @param **pwd Pointer to resulting struct passwd* from the query. 1202 wbcErr wbcGetpwnam(const char *name, struct passwd **pwd); 1210 * @param **pwd Pointer to resulting struct passwd* from the query. 1215 uid_t uid, struct passwd **pwd); 1222 * @param **pwd Pointer to resulting struct passwd* from the query. 1226 wbcErr wbcGetpwuid(uid_t uid, struct passwd **pwd); 1234 * @param **pwd Pointe [all...] |
/sssd/src/providers/ldap/ |
H A D | sdap_async_users.c | 127 const char *pwd; local 228 if (el->num_values == 0) pwd = NULL; 229 else pwd = (const char *)el->values[0].data; 509 ret = sysdb_store_user(dom, user_name, pwd, uid, gid, 982 struct passwd *pwd; local 986 pwd = getpwnam(name); 988 pwd = getpwuid(uid); 991 if (!pwd) { 1009 ret = sysdb_attrs_add_string(user, SYSDB_NAME, pwd->pw_name); 1014 if (pwd [all...] |
/sssd/src/sss_client/ |
H A D | nss_mc.h | 27 #include <pwd.h>
|
/sssd/src/tests/ |
H A D | stress-tests.c | 28 #include <pwd.h> 54 struct passwd *pwd = NULL; local 59 pwd = getpwnam(name); 61 if (pwd == NULL) {
|
H A D | krb5_child-test.c | 194 struct passwd *pwd; local 201 pwd = getpwnam(user); 202 if (!pwd) { 208 kr->uid = pwd->pw_uid; 209 kr->gid = pwd->pw_gid;
|
/sssd/src/util/ |
H A D | authtok.h | 63 * @param pwd A pointer to a const char *, that will point to a null 72 const char **pwd, size_t *len);
|
H A D | usertools.c | 22 #include <pwd.h> 26 #include <pwd.h> 625 struct passwd *pwd; local 639 pwd = getpwnam(input); 641 pwd = getpwuid(uid); 644 if (pwd == NULL) { 652 *_uid = pwd->pw_uid; 656 *_gid = pwd->pw_gid;
|
H A D | authtok.c | 61 const char **pwd, size_t *len) 70 *pwd = (const char *)tok->data; 60 sss_authtok_get_password(struct sss_auth_token *tok, const char **pwd, size_t *len) argument
|
/sssd/src/sss_client/nfs/ |
H A D | sss_nfs_client.c | 69 struct passwd pwd; local 88 rc = sss_nss_mc_getpwnam(name, len, &pwd, buf, buflen); 93 *uid = pwd.pw_uid; 143 struct passwd pwd; local 160 rc = sss_nss_mc_getpwuid(uid, &pwd, buf, buflen); 164 pw_name_len = strlen(pwd.pw_name) + 1; 171 memcpy(name, pwd.pw_name, pw_name_len);
|
/sssd/src/sss_client/sudo_testcli/ |
H A D | sudo_testcli.c | 27 #include <pwd.h>
|