Searched refs:pwd (Results 1 - 25 of 37) sorted by relevance

12

/sssd/src/krb5_plugin/
H A Dsssd_krb5_localauth_plugin.c23 #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 Dnegcache_files.c23 #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 Dproxy_id.c34 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 Dproxy.h30 #include <pwd.h>
/sssd/src/tests/intg/
H A Dldap_local_override_test.py23 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 Dsssd_id.py20 import pwd namespace
95 pwd_user = pwd.getpwnam(user)
99 user = pwd.getpwuid(uid).pw_name
H A Dtest_local_domain.py21 import pwd namespace
113 pwd.getpwnam(name)
150 pwd.getpwnam("foo")
H A Dent.py21 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 Dtest_enumeration.py21 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 Dtest_memory_cache.py23 import pwd namespace
600 pwd.getpwnam("user1")
602 pwd.getpwuid(1001)
773 pwd.getpwnam('user1')
775 pwd.getpwuid(1001)
H A Dtest_ldap.py21 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 Dtest_authtok.c97 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 Dtest_nss_srv.c268 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 Dwbc_pwd_sssd.c221 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 Dwbc_ctx_sssd.c188 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 Dwbclient_sssd.h27 #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 Dsdap_async_users.c127 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 Dnss_mc.h27 #include <pwd.h>
/sssd/src/tests/
H A Dstress-tests.c28 #include <pwd.h>
54 struct passwd *pwd = NULL; local
59 pwd = getpwnam(name);
61 if (pwd == NULL) {
H A Dkrb5_child-test.c194 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 Dauthtok.h63 * @param pwd A pointer to a const char *, that will point to a null
72 const char **pwd, size_t *len);
H A Dusertools.c22 #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 Dauthtok.c61 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 Dsss_nfs_client.c69 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 Dsudo_testcli.c27 #include <pwd.h>

Completed in 89 milliseconds

12