Searched refs:gecos (Results 1 - 25 of 30) sorted by relevance

12

/sssd-io/src/tests/intg/
H A Dldap_ent.py23 gecos=None,
52 if gecos is not None:
53 user[1].append(('gecos', [gecos.encode('utf-8')]))
117 gecos=None,
126 gecos=gecos,
H A Dtest_memory_cache.py245 gecos='1001', shell='/bin/bash'))
249 gecos='1001', shell='/bin/bash'))
254 gecos='1002', shell='/bin/bash'))
258 gecos='1002', shell='/bin/bash'))
263 gecos='1003', shell='/bin/bash'))
267 gecos='1003', shell='/bin/bash'))
272 gecos='1011', shell='/bin/bash'))
276 gecos='1011', shell='/bin/bash'))
281 gecos='1012', shell='/bin/bash'))
285 gecos
[all...]
H A Dfiles_ops.py113 def _pwd2line(self, name, uid, gid, passwd, gecos, homedir, shell):
114 pwd_fmt = "{name}:{passwd}:{uid}:{gid}:{gecos}:{homedir}:{shell}\n"
119 gecos=gecos,
123 def useradd(self, name, uid, gid, passwd='', gecos='', dir='', shell=''):
124 pwd_line = self._pwd2line(name, uid, gid, passwd, gecos, dir, shell)
127 def usermod(self, name, uid, gid, passwd='', gecos='', dir='', shell=''):
128 pwd_line = self._pwd2line(name, uid, gid, passwd, gecos, dir, shell)
H A Dldap_local_override_test.py193 gecos='User Number 1',
197 gecos='User Number 2',
218 gecos='Overriden User 1',
223 gecos='Overriden User 2',
255 gecos='User Number 1',
260 gecos='User Number 2',
380 gecos='Overriden User 1',
389 gecos='Overriden User 2',
409 gecos='User Number 1',
419 gecos
[all...]
H A Dtest_sssctl.py211 gecos='1001', shell='/bin/bash'))
215 gecos='1002', shell='/bin/bash'))
239 gecos='1001', shell='/bin/bash'))
243 gecos='1002', shell='/bin/bash'))
268 gecos='1001', shell='/bin/bash'))
272 gecos='1002', shell='/bin/bash'))
H A Dtest_files_ops.py26 gecos='User for tests', variable
H A Dtest_enumeration.py281 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001',
283 dict(name='user2', passwd='*', uid=1002, gid=2002, gecos='1002',
285 dict(name='user3', passwd='*', uid=1003, gid=2003, gecos='1003',
313 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001',
315 dict(name='user2', passwd='*', uid=1002, gid=2002, gecos='1002',
317 dict(name='user3', passwd='*', uid=1003, gid=2003, gecos='1003',
730 dict(name='user1', passwd='*', uid=1001, gid=1001, gecos='1001',
732 dict(name='user2', passwd='*', uid=1002, gid=1002, gecos='1002',
734 dict(name='user3', passwd='*', uid=1003, gid=1003, gecos='1003',
H A Dtest_ldap.py311 gecos='181818', shell='/bin/bash'))
316 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001',
318 dict(name='user2', passwd='*', uid=1002, gid=2002, gecos='1002',
320 dict(name='user3', passwd='*', uid=1003, gid=2003, gecos='1003',
348 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001',
350 dict(name='user2', passwd='*', uid=1002, gid=2002, gecos='1002',
352 dict(name='user3', passwd='*', uid=1003, gid=2003, gecos='1003',
429 gecos='1001', shell='/bin/bash'))
472 gecos='1001', shell='/bin/bash'))
477 gecos
[all...]
H A Dtest_files_provider.py44 gecos='Used to check if passwd is resolvable', variable
49 gecos='User for tests', variable
54 gecos='User2 for tests', variable
59 gecos='Overriden User 1', variable
64 gecos='User for tests from alt files', variable
398 gecos='User for tests',
497 "-c", OV_USER1["gecos"],
644 Test that resolving a user without a gecos defined works and returns
647 check_user(incomplete_user_setup(setup_pw_with_canary, 'gecos', ''))
1085 gecos
[all...]
H A Dent_test.py42 gecos="User 1", dir="/home/user1", shell="/bin/bash")
44 gecos="User 2", dir="/home/user2", shell="/bin/bash")
75 "{name}:{passwd}:{uid}:{gid}:{gecos}:{dir}:{shell}\n".format(**u)
H A Dtest_infopipe.py433 attributes = ['name', 'uidNumber', 'gidNumber', 'gecos', 'homeDirectory',
436 gecos='181818', homeDirectory='/home/usr\\\\001',
477 attributes = ['name', 'uidNumber', 'gidNumber', 'gecos', 'homeDirectory',
480 gecos='1001', homeDirectory='/home/user1',
/sssd-io/src/tools/
H A Dsss_sync_ops.h43 char *gecos; member in struct:ops_ctx
68 const char *gecos,
H A Dsss_sync_ops.c197 const char *gecos,
228 if (ret == EOK && gecos) {
232 gecos);
299 data->gecos,
467 const char *gecos,
482 /* gecos */
483 data->gecos = talloc_strdup(mem_ctx, gecos ? gecos : data->name);
484 if (!data->gecos) {
196 usermod_build_attrs(TALLOC_CTX *mem_ctx, const char *gecos, const char *home, const char *shell, uid_t uid, gid_t gid, int lock, struct sysdb_attrs **_attrs) argument
464 useradd_defaults(TALLOC_CTX *mem_ctx, struct confdb_ctx *confdb, struct ops_ctx *data, const char *gecos, const char *homedir, const char *shell, int create_home, const char *skeldir) argument
[all...]
H A Dsss_seed.c41 char *gecos; member in struct:user_ctx
375 if (uctx->gecos == NULL) {
376 ret = seed_str_input(input_uctx, _("user comment (gecos)"),
377 &input_uctx->gecos);
383 input_uctx->gecos = talloc_strdup(input_uctx, uctx->gecos);
384 if (input_uctx->gecos == NULL) {
460 { "gecos", 'c', POPT_ARG_STRING, &pc_gecos, 0,
561 sctx->uctx->gecos = talloc_strdup(sctx->uctx, pc_gecos);
562 if (sctx->uctx->gecos
[all...]
H A Dsss_override.c43 const char *gecos; member in struct:override_user
104 {"gecos", 'c', POPT_ARG_STRING, &user->gecos, 0, _("Override gecos"), NULL },
306 const char *gecos,
359 if (gecos != NULL) {
360 ret = sysdb_attrs_add_string(attrs, SYSDB_GECOS, gecos);
388 user->home, user->shell, user->gecos, user->cert);
1175 objs[i].gecos = ldb_msg_find_attr_as_string(msgs[i], SYSDB_GECOS, NULL);
1194 talloc_steal(objs, objs[i].gecos);
299 build_attrs(TALLOC_CTX *mem_ctx, struct sss_domain_info *dom, const char *name, uid_t uid, gid_t gid, const char *home, const char *shell, const char *gecos, const char *cert) argument
[all...]
H A Dsss_usermod.c50 { "gecos", 'c', POPT_ARG_STRING, &pc_gecos, 0, _("The comment string"), NULL },
250 tctx->octx->gecos = pc_gecos;
/sssd-io/src/responder/nss/
H A Dnss_protocol_pwent.c176 const char *gecos; local
196 gecos = sss_view_ldb_msg_find_attr_as_string(domain, msg, SYSDB_GECOS,
216 to_sized_string(_gecos, gecos == NULL ? "" : gecos);
236 struct sized_string gecos; local
270 &name, &gecos, &homedir, &shell);
278 + name->len + gecos.len + homedir.len
292 SAFEALIGN_SET_STRING(&body[rp], gecos.str, gecos.len, &rp);
303 uid, gid, &gecos,
[all...]
H A Dnsssrv_mmap_cache.h44 struct sized_string *gecos,
H A Dnsssrv_mmap_cache.c704 struct sized_string *gecos,
729 data_len = name->len + pw->len + gecos->len + homedir->len + shell->len;
760 memcpy(&data->strs[pos], gecos->str, gecos->len);
761 pos += gecos->len;
700 sss_mmap_cache_pw_store(struct sss_mc_ctx **_mcc, struct sized_string *name, struct sized_string *pw, uid_t uid, gid_t gid, struct sized_string *gecos, struct sized_string *homedir, struct sized_string *shell) argument
/sssd-io/src/python/
H A Dpysss.c148 " * ``gecos``: The comment string\n"
163 const char *gecos = NULL; local
169 const char * const kwlist[] = { "username", "uid", "gid", "gecos",
184 &gecos,
223 tctx->octx, gecos,
414 " * ``gecos``: The comment string\n"
430 char *gecos = NULL; local
436 "gecos", "homedir", "shell",
448 &gecos,
491 tctx->octx->gecos
[all...]
/sssd-io/src/tests/
H A Dpython-test.py174 gecos="foo bar",
178 gecos="foo bar",
311 gecos="foo bar",
315 gecos="foo bar",
/sssd-io/src/providers/ldap/
H A Dsdap_async_users.c185 const char *gecos; local
292 if (el->num_values == 0) gecos = NULL;
293 else gecos = (const char *)el->values[0].data;
295 if (!gecos) {
301 if (el->num_values > 0) gecos = (const char *)el->values[0].data;
622 gecos, homedir, shell, orig_dn,
/sssd-io/src/providers/files/
H A Dfiles_ops.c290 const char *gecos; local
325 gecos = pw->pw_gecos;
327 gecos = NULL;
336 gecos,
/sssd-io/src/db/
H A Dsysdb_ops.c1689 const char *gecos,
1726 /* We set gecos to be the same as fullname on user creation,
1730 if (gecos && *gecos) {
1731 ret = sysdb_add_string(msg, SYSDB_FULLNAME, gecos);
1733 ret = sysdb_add_string(msg, SYSDB_GECOS, gecos);
1956 const char *gecos,
2049 ret = sysdb_add_basic_user(domain, name, uid, gid, gecos, homedir, shell);
2646 const char *gecos,
2659 const char *gecos,
1686 sysdb_add_basic_user(struct sss_domain_info *domain, const char *name, uid_t uid, gid_t gid, const char *gecos, const char *homedir, const char *shell) argument
1953 sysdb_add_user(struct sss_domain_info *domain, const char *name, uid_t uid, gid_t gid, const char *gecos, const char *homedir, const char *shell, const char *orig_dn, struct sysdb_attrs *attrs, int cache_timeout, time_t now) argument
2671 sysdb_store_user(struct sss_domain_info *domain, const char *name, const char *pwd, uid_t uid, gid_t gid, const char *gecos, const char *homedir, const char *shell, const char *orig_dn, struct sysdb_attrs *attrs, char **remove_attrs, uint64_t cache_timeout, time_t now) argument
2767 sysdb_store_new_user(struct sss_domain_info *domain, const char *name, uid_t uid, gid_t gid, const char *gecos, const char *homedir, const char *shell, const char *orig_dn, struct sysdb_attrs *attrs, uint64_t cache_timeout, time_t now) argument
2813 sysdb_store_user_attrs(struct sss_domain_info *domain, const char *name, uid_t uid, gid_t gid, const char *gecos, const char *homedir, const char *shell, const char *orig_dn, struct sysdb_attrs *attrs, char **remove_attrs, uint64_t cache_timeout, time_t now) argument
[all...]
/sssd-io/src/providers/proxy/
H A Dproxy_id.c294 const char *gecos; local
305 gecos = pwd->pw_gecos;
307 gecos = NULL;
321 gecos,

Completed in 65 milliseconds

12