Searched defs:sysdb (Results 1 - 25 of 64) sorted by relevance

123

/sssd/src/tests/intg/
H A Dsssd_ldb.py25 sysdb = 1 variable in class:CacheType
37 self._sysdb = self._create_dbconn(CacheType.sysdb,
43 if cache_type == CacheType.sysdb:
58 if cache_type == CacheType.sysdb:
71 return "cn=%s,cn=%s,cn=sysdb" % (rdn, self._domain_name)
/sssd/src/tools/
H A Dtools_util.h48 struct sysdb_ctx *sysdb; member in struct:tools_ctx
/sssd/src/providers/ipa/
H A Dipa_dn.c23 #include "db/sysdb.h"
95 struct sysdb_ctx *sysdb,
108 dn = ldb_dn_new(mem_ctx, sysdb_ctx_get_ldb(sysdb), obj_dn);
94 _ipa_get_rdn(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, const char *obj_dn, char **_rdn_val, const char *rdn_attr, ...) argument
H A Dipa_selinux_maps.c30 struct sysdb_ctx *sysdb; member in struct:ipa_selinux_get_maps_state
54 struct sysdb_ctx *sysdb,
70 state->sysdb = sysdb;
52 ipa_selinux_get_maps_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sysdb_ctx *sysdb, struct sdap_handle *sh, struct sdap_options *opts, struct ipa_options *ipa_opts, struct sdap_search_base **search_bases) argument
H A Dipa_hbac_users.c36 struct sysdb_ctx *sysdb,
58 dn = ldb_dn_new(mem_ctx, sysdb_ctx_get_ldb(sysdb), group_dn);
337 ret = get_ipa_groupname(new_users->groups, domain->sysdb,
35 get_ipa_groupname(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, const char *group_dn, const char **groupname) argument
H A Dipa_hosts.c24 #include "db/sysdb.h"
31 struct sysdb_ctx *sysdb; member in struct:ipa_host_state
H A Dipa_hbac_hosts.c24 #include "db/sysdb.h"
338 struct sysdb_ctx *sysdb,
358 dn = ldb_dn_new(mem_ctx, sysdb_ctx_get_ldb(sysdb), host_dn);
337 get_ipa_hostgroupname(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, const char *host_dn, char **hostgroupname) argument
H A Dipa_hbac_services.c580 struct sysdb_ctx *sysdb,
600 dn = ldb_dn_new(mem_ctx, sysdb_ctx_get_ldb(sysdb), service_dn);
579 get_ipa_servicegroupname(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, const char *service_dn, char **servicegroupname) argument
/sssd/src/tests/
H A Dcommon.h68 struct sysdb_ctx *sysdb; member in struct:sss_test_ctx
H A Dauth-tests.c39 #include "db/sysdb.h"
46 struct sysdb_ctx *sysdb; member in struct:sysdb_test_ctx
140 fail("Could not initialize connection to the sysdb (%d)", ret);
144 test_ctx->sysdb = test_ctx->domain->sysdb;
H A Dsysdb_ssh-tests.c32 #include "db/sysdb.h"
41 struct sysdb_ctx *sysdb; member in struct:sysdb_test_ctx
135 fail("Could not initialize connection to the sysdb (%d)", ret);
139 test_ctx->sysdb = test_ctx->domain->sysdb;
/sssd/src/tests/cmocka/
H A Dtest_ipa_dn.c35 struct sysdb_ctx *sysdb; member in struct:ipa_dn_test_ctx
52 test_ctx->sysdb = test_ctx->tctx->sysdb;
70 ret = ipa_check_rdn(test_ctx->sysdb, "cn=rdn,dc=example,dc=com", "cn");
73 ret = ipa_check_rdn(test_ctx->sysdb, "cn=rdn,attr1=value1,dc=example,dc=com", "cn", "attr1", "value1");
76 ret = ipa_check_rdn(test_ctx->sysdb, "cn=rdn,attr1=value1,attr2=value2,dc=example,dc=com", "cn", "attr1", "value1", "attr2", "value2");
79 ret = ipa_check_rdn(test_ctx->sysdb, "cn=rdn,dc=example,dc=com", "nope");
82 ret = ipa_check_rdn(test_ctx->sysdb, "cn=rdn,attr1=value1,dc=example,dc=com", "cn", "nope", "value1");
85 ret = ipa_check_rdn(test_ctx->sysdb, "cn=rdn,attr1=value1,attr2=value2,dc=example,dc=com", "cn", "attr1", "nope");
88 ret = ipa_check_rdn(test_ctx->sysdb, "c
[all...]
/sssd/src/providers/ldap/
H A Dsdap_reinit.c29 #include "db/sysdb.h"
34 struct sysdb_ctx *sysdb; member in struct:sdap_reinit_cleanup_state
37 static errno_t sdap_reinit_clear_usn(struct sysdb_ctx *sysdb,
66 state->sysdb = be_ctx->domain->sysdb;
75 ret = sdap_reinit_clear_usn(state->sysdb, state->domain);
105 static void sdap_delete_msgs_usn(struct sysdb_ctx *sysdb, argument
115 ret = sysdb_set_entry_attr(sysdb, msgs[i]->dn, &usn_el, SYSDB_MOD_DEL);
123 static errno_t sdap_reinit_clear_usn(struct sysdb_ctx *sysdb, argument
140 ret = sysdb_transaction_start(sysdb);
238 sdap_delete_msgs_dn(struct sysdb_ctx *sysdb, struct ldb_message **msgs, size_t msgs_num) argument
263 struct sysdb_ctx *sysdb = domain->sysdb; local
[all...]
H A Dldap_id_services.c28 #include "db/sysdb.h"
38 struct sysdb_ctx *sysdb; member in struct:sdap_services_get_state
89 state->sysdb = sdom->dom->sysdb;
200 state->domain, state->sysdb,
254 /* Ensure that this entry is removed from the sysdb */
H A Dldap_id_netgroup.c28 #include "db/sysdb.h"
39 struct sysdb_ctx *sysdb; member in struct:ldap_netgroup_get_state
91 state->sysdb = sdom->dom->sysdb;
163 state->domain, state->sysdb,
H A Dldap_id_cleanup.c31 #include "db/sysdb.h"
114 struct sysdb_ctx *sysdb,
129 ret = sysdb_transaction_start(sdom->dom->sysdb);
141 ret = cleanup_groups(tmp_ctx, sdom->dom->sysdb, sdom->dom);
146 ret = sysdb_transaction_commit(sdom->dom->sysdb);
157 tret = sysdb_transaction_cancel(sdom->dom->sysdb);
365 struct sysdb_ctx *sysdb,
454 base_dn = sysdb_base_dn(sysdb, tmpctx);
463 ret = sysdb_search_entry(tmpctx, sysdb, base_dn,
486 "Failed to search sysdb usin
364 cleanup_groups(TALLOC_CTX *memctx, struct sysdb_ctx *sysdb, struct sss_domain_info *domain) argument
[all...]
H A Dsdap_async_netgroups.c26 #include "db/sysdb.h"
132 * did not receive are also removed from the sysdb
142 * sysdb. It may contain simple name or DN. That's the reason why we always
144 * (memberNisNetgroup) in sysdb which is internally used for searching
237 struct sysdb_ctx *sysdb,
350 ret = sysdb_search_entry(state, sysdb, netgr_basedn, LDB_SCOPE_BASE,
567 struct sysdb_ctx *sysdb; member in struct:sdap_get_netgroups_state
588 struct sysdb_ctx *sysdb,
607 state->sysdb = sysdb;
232 netgr_translate_members_send(TALLOC_CTX *memctx, struct tevent_context *ev, struct sdap_options *opts, struct sdap_handle *sh, struct sss_domain_info *dom, struct sysdb_ctx *sysdb, const size_t count, struct sysdb_attrs **netgroups) argument
585 sdap_get_netgroups_send(TALLOC_CTX *memctx, struct tevent_context *ev, struct sss_domain_info *dom, struct sysdb_ctx *sysdb, struct sdap_options *opts, struct sdap_search_base **search_bases, struct sdap_handle *sh, const char **attrs, const char *filter, int timeout) argument
[all...]
H A Dsdap_async_services.c24 #include "db/sysdb.h"
34 struct sysdb_ctx *sysdb; member in struct:sdap_get_services_state
55 struct sysdb_ctx *sysdb,
63 struct sysdb_ctx *sysdb,
74 struct sysdb_ctx *sysdb,
94 state->sysdb = sysdb;
230 ret = sdap_save_services(state, state->sysdb,
249 struct sysdb_ctx *sysdb,
274 ret = sysdb_transaction_start(sysdb);
71 sdap_get_services_send(TALLOC_CTX *memctx, struct tevent_context *ev, struct sss_domain_info *dom, struct sysdb_ctx *sysdb, struct sdap_options *opts, struct sdap_search_base **search_bases, struct sdap_handle *sh, const char **attrs, const char *filter, int timeout, bool enumeration) argument
248 sdap_save_services(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *dom, struct sdap_options *opts, struct sysdb_attrs **services, size_t num_services, char **_usn_value) argument
340 sdap_save_service(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct sdap_options *opts, struct sss_domain_info *dom, struct sysdb_attrs *attrs, char **_usn_value, time_t now) argument
518 struct sysdb_ctx *sysdb; member in struct:enum_services_state
[all...]
H A Dsdap_async_sudo.c285 struct sysdb_ctx *sysdb; member in struct:sdap_sudo_refresh_state
326 state->sysdb = id_ctx->be->domain->sysdb;
591 ret = sysdb_transaction_start(state->sysdb);
612 ret = sysdb_transaction_commit(state->sysdb);
635 sret = sysdb_transaction_cancel(state->sysdb);
H A Dsdap_sudo_refresh.c34 struct sysdb_ctx *sysdb; member in struct:sdap_sudo_full_refresh_state
60 state->sysdb = id_ctx->be->domain->sysdb;
118 /* save the time in the sysdb */
154 struct sysdb_ctx *sysdb; member in struct:sdap_sudo_smart_refresh_state
180 state->sysdb = id_ctx->be->domain->sysdb;
199 /* Do not remove any rules that are already in the sysdb
/sssd/src/db/
H A Dsysdb_ranges.c42 errno_t sysdb_get_ranges(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, argument
68 basedn = ldb_dn_new(tmp_ctx, sysdb->ldb, SYSDB_TMPL_RANGE_BASE);
73 ret = ldb_search(sysdb->ldb, tmp_ctx, &res,
167 errno_t sysdb_range_create(struct sysdb_ctx *sysdb, struct range_info *range) argument
194 msg->dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
242 ret = ldb_add(sysdb->ldb, msg);
255 errno_t sysdb_update_ranges(struct sysdb_ctx *sysdb, argument
275 /* Retrieve all ranges that are currently in sysdb */
276 ret = sysdb_get_ranges(tmp_ctx, sysdb, &cur_range_count,
290 ret = sysdb_transaction_start(sysdb);
[all...]
H A Dsysdb_selinux.c33 sysdb_add_selinux_entity(struct sysdb_ctx *sysdb, argument
72 ret = ldb_add(sysdb->ldb, msg);
96 struct sysdb_ctx *sysdb = domain->sysdb; local
116 dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, SYSDB_TMPL_SEUSERMAP,
121 dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, SYSDB_TMPL_SELINUX_BASE,
137 ret = sysdb_transaction_start(sysdb);
149 ret = sysdb_add_selinux_entity(sysdb, dn, objectclass, attrs, now);
154 ret = sysdb_set_entry_attr(sysdb, dn, attrs, SYSDB_MOD_REP);
159 ret = sysdb_transaction_commit(sysdb);
228 struct sysdb_ctx *sysdb = domain->sysdb; local
255 struct sysdb_ctx *sysdb = domain->sysdb; local
[all...]
H A Dsysdb_services.c25 #include "db/sysdb.h"
30 sysdb_svc_update(struct sysdb_ctx *sysdb,
37 sysdb_svc_remove_alias(struct sysdb_ctx *sysdb,
182 struct sysdb_ctx *sysdb; local
187 sysdb = domain->sysdb;
189 ret = sysdb_transaction_start(sysdb);
219 ret = sysdb_delete_entry(sysdb, res->msgs[i]->dn, true);
253 ret = sysdb_delete_entry(sysdb, res->msgs[0]->dn, true);
291 ret = sysdb_delete_entry(sysdb, re
412 sysdb_svc_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx, const char *domain, const char *name) argument
528 sysdb_svc_update(struct sysdb_ctx *sysdb, struct ldb_dn *dn, int port, const char **aliases, const char **protocols) argument
605 sysdb_svc_remove_alias(struct sysdb_ctx *sysdb, struct ldb_dn *dn, const char *alias) argument
652 struct sysdb_ctx *sysdb = domain->sysdb; local
[all...]
/sssd/src/providers/proxy/
H A Dproxy_services.c206 struct sysdb_ctx *sysdb,
248 ret = sysdb_transaction_start(sysdb);
293 ret = sysdb_transaction_commit(sysdb);
364 sret = sysdb_transaction_cancel(sysdb);
205 enum_services(struct proxy_id_ctx *ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *dom) argument
/sssd/src/providers/krb5/
H A Dkrb5_utils.c79 errno_t check_if_cached_upn_needs_update(struct sysdb_ctx *sysdb, argument
94 if (sysdb == NULL || user == NULL || upn == NULL) {
157 ret = sysdb_transaction_start(sysdb);
165 ret = sysdb_set_entry_attr(sysdb, res->msgs[0]->dn, new_attrs,
174 ret = sysdb_transaction_commit(sysdb);
185 sret = sysdb_transaction_cancel(sysdb);

Completed in 103 milliseconds

123