Searched refs:dict (Results 1 - 13 of 13) sorted by relevance

/sssd/src/util/
H A Dsss_python.c25 sss_exception_with_doc(char *name, char *doc, PyObject *base, PyObject *dict) argument
28 return PyErr_NewExceptionWithDoc(name, doc, base, dict);
32 PyObject *mydict = NULL; /* points to the dict only if we create it */
35 if (dict == NULL) {
36 dict = mydict = PyDict_New();
37 if (dict == NULL) {
46 result = PyDict_SetItemString(dict, "__doc__", docobj);
52 ret = PyErr_NewException(name, base, dict);
H A Dsss_python.h30 sss_exception_with_doc(char *name, char *doc, PyObject *base, PyObject *dict);
/sssd/src/tests/intg/
H A Dent_test.py55 USER1 = dict(name="user1", passwd="x", uid=1001, gid=2001,
57 USER2 = dict(name="user2", passwd="x", uid=1002, gid=2002,
60 USER_NAME_DICT = dict((u["name"], u) for u in USER_LIST)
61 USER_UID_DICT = dict((u["uid"], u) for u in USER_LIST)
64 EMPTY_GROUP = dict(name="empty_group", passwd="x", gid=2000,
66 GROUP1 = dict(name="group1", passwd="x", gid=2001,
68 GROUP2 = dict(name="group2", passwd="x", gid=2002,
70 ONE_USER_GROUP1 = dict(name="one_user_group1", passwd="x", gid=2011,
72 ONE_USER_GROUP2 = dict(name="one_user_group2", passwd="x", gid=2012,
74 TWO_USER_GROUP = dict(nam
[all...]
H A Dtest_memory_cache.py213 dict(name='user1', passwd='*', uid=1001, gid=2001,
217 dict(name='user1', passwd='*', uid=1001, gid=2001,
222 dict(name='user2', passwd='*', uid=1002, gid=2002,
226 dict(name='user2', passwd='*', uid=1002, gid=2002,
231 dict(name='user3', passwd='*', uid=1003, gid=2003,
235 dict(name='user3', passwd='*', uid=1003, gid=2003,
240 dict(name='user11', passwd='*', uid=1011, gid=2001,
244 dict(name='user11', passwd='*', uid=1011, gid=2001,
249 dict(name='user12', passwd='*', uid=1012, gid=2002,
253 dict(nam
[all...]
H A Dtest_enumeration.py269 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001',
271 dict(name='user2', passwd='*', uid=1002, gid=2002, gecos='1002',
273 dict(name='user3', passwd='*', uid=1003, gid=2003, gecos='1003',
279 dict(name='group1', passwd='*', gid=2001, mem=ent.contains_only()),
280 dict(name='group2', passwd='*', gid=2002, mem=ent.contains_only()),
281 dict(name='group3', passwd='*', gid=2003, mem=ent.contains_only()),
282 dict(name='empty_group', passwd='*', gid=2010,
284 dict(name='two_user_group', passwd='*', gid=2012,
301 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001',
303 dict(nam
[all...]
H A Dtest_ldap.py300 return dict((u["name"], u) for u in entries)
306 dict(name='usr\\001', passwd='*', uid=181818, gid=181818,
312 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001',
314 dict(name='user2', passwd='*', uid=1002, gid=2002, gecos='1002',
316 dict(name='user3', passwd='*', uid=1003, gid=2003, gecos='1003',
322 dict(name='group1', passwd='*', gid=2001, mem=ent.contains_only()),
323 dict(name='group2', passwd='*', gid=2002, mem=ent.contains_only()),
324 dict(name='group3', passwd='*', gid=2003, mem=ent.contains_only()),
325 dict(name='empty_group', passwd='*', gid=2010,
327 dict(nam
[all...]
H A Dent.py37 assert isinstance(desc_map, dict)
103 assert isinstance(desc_map, dict)
105 if isinstance(pattern, dict):
106 if not isinstance(ent, dict):
107 return "not a dict, " + str(type(ent))
189 return dict(
252 ent = dict((k, get_passwd_by_name(k)) for k in pattern_dict.keys())
264 ent = dict((k, get_passwd_by_uid(k)) for k in pattern_dict.keys())
275 return _diff_each_passwd_by_name(dict((p["name"], p) for p in pattern_seq))
283 return _diff_each_passwd_by_uid(dict((
[all...]
H A Dldap_local_override_test.py192 user1 = dict(name='user1', passwd='*', uid=10001, gid=20001,
196 user2 = dict(name='user2', passwd='*', uid=10002, gid=20001,
217 user1 = dict(name=name1, passwd='*', uid=10010, gid=20010,
222 user2 = dict(name=name2, passwd='*', uid=10020, gid=20020,
347 dict(name='root', uid=0, gid=0))
349 ent.assert_passwd_by_uid(0, dict(name="root"))
379 dict(name='ov_user1', passwd='*', uid=10001, gid=20001,
388 dict(name='root', passwd='*', uid=10020, gid=20020,
393 ent.assert_passwd_by_uid(0, dict(name="root"))
418 dict(nam
[all...]
H A Dtest_local_domain.py172 ent.assert_group_by_name("foo", dict(name="foo", gid=10001))
192 dict(name="group10009", passwd="*", gid=10009,
213 dict(name="group_parent", passwd="*", gid=10008,
227 ent.assert_group_by_name("foo@LOCAL", dict(name="foo@LOCAL", gid=10001))
250 dict(name="group10009@LOCAL", passwd="*", gid=10009,
275 dict(name="group_parent@LOCAL", passwd="*", gid=10008,
H A Dtest_ts_cache.py212 sysdb_attrs = dict()
213 ts_attrs = dict()
248 dict(mem=ent.contains_only(*members)))
294 dict(mem=ent.contains_only("user1", "user11", "user21")))
328 dict(mem=ent.contains_only("user1", "user11", "user21")))
359 dict(mem=ent.contains_only("user11", "user21")))
412 dict(mem=ent.contains_only("user1", "user11", "user21")))
446 dict(mem=ent.contains_only("user1", "user11", "user21")))
476 dict(mem=ent.contains_only("user11", "user21")))
525 ent.assert_passwd_by_name("user1", dict(nam
[all...]
H A Dsecrets.py64 self.headers = dict({'Content-Type': content_type})
80 headers = dict()
/sssd/src/sbus/
H A Dsssd_dbus_invokers.c365 /* append key as dict entry key */
485 DBusMessageIter dict; local
516 &dict);
523 dbret = dbus_message_iter_append_basic(&dict, DBUS_TYPE_STRING,
531 dbret = dbus_message_iter_open_container(&dict, DBUS_TYPE_VARIANT,
552 dbret = dbus_message_iter_close_container(&dict, &variant);
558 dbret = dbus_message_iter_close_container(&array, &dict);
/sssd/src/config/
H A DSSSDConfigTest.py316 self.assertTrue(type(options) == dict,
368 self.assertTrue(type(options) == dict,
433 self.assertTrue(type(options) == dict,
565 self.assertTrue(type(options) == dict,
607 self.assertTrue(type(options) == dict,
651 self.assertTrue(type(options) == dict,
673 self.assertTrue(type(options) == dict,
695 self.assertTrue(type(options) == dict,
719 self.assertTrue(type(options) == dict,
739 self.assertTrue(type(options) == dict,
[all...]

Completed in 41 milliseconds