| /sssd-io/src/db/ |
| H A D | sysdb_domain_resolution_order.c | 23 #include "db/sysdb.h" 28 struct sysdb_ctx *sysdb, 43 ret = ldb_search(sysdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE, attrs, 78 struct sysdb_ctx *sysdb, 93 tmp_ctx, sysdb, dn, attrs, &domain_resolution_order); 117 sysdb_update_domain_resolution_order(struct sysdb_ctx *sysdb, argument 154 ret = ldb_modify(sysdb->ldb, msg); 158 ldb_strerror(ret), ret, ldb_errstring(sysdb->ldb)); 27 sysdb_get_domain_resolution_order_string_attr(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct ldb_dn *dn, const char *const *attrs, const char **_attr) argument 77 sysdb_get_domain_resolution_order(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct ldb_dn *dn, const char **_domain_resolution_order) argument
|
| H A D | sysdb_certmap.c | 26 static errno_t sysdb_create_certmap_container(struct sysdb_ctx *sysdb, argument 32 msg = ldb_msg_new(sysdb); 37 msg->dn = ldb_dn_new(msg, sysdb->ldb, SYSDB_TMPL_CERTMAP_BASE); 56 ret = ldb_add(sysdb->ldb, msg); 60 ret, ldb_errstring(sysdb->ldb)); 73 static errno_t sysdb_certmap_add(struct sysdb_ctx *sysdb, argument 95 msg->dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, 182 ret = ldb_add(sysdb->ldb, msg); 199 errno_t sysdb_update_certmap(struct sysdb_ctx *sysdb, argument 213 container_dn = ldb_dn_new(sysdb, sysd 265 sysdb_get_certmap(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct certmap_info ***certmaps, bool *user_name_hint) argument [all...] |
| H A D | sysdb_ranges.c | 42 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 D | sysdb_selinux.c | 33 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 D | sysdb_services.c | 25 #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-io/src/tools/ |
| H A D | tools_util.h | 48 struct sysdb_ctx *sysdb; member in struct:tools_ctx
|
| /sssd-io/src/providers/ipa/ |
| H A D | ipa_dn.c | 23 #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 D | ipa_selinux_maps.c | 30 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 D | ipa_hbac_users.c | 37 struct sysdb_ctx *sysdb, 59 dn = ldb_dn_new(mem_ctx, sysdb_ctx_get_ldb(sysdb), group_dn); 325 ret = get_ipa_groupname(new_users->groups, domain->sysdb, 36 get_ipa_groupname(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, const char *group_dn, const char **groupname) argument
|
| H A D | ipa_hbac_services.c | 581 struct sysdb_ctx *sysdb, 601 dn = ldb_dn_new(mem_ctx, sysdb_ctx_get_ldb(sysdb), service_dn); 580 get_ipa_servicegroupname(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, const char *service_dn, char **servicegroupname) argument
|
| H A D | ipa_rules_common.c | 53 ret = sysdb_delete_recursive(domain->sysdb, base_dn, true); 117 ret = sysdb_transaction_start(domain->sysdb); 144 ret = sysdb_transaction_commit(domain->sysdb); 153 sret = sysdb_transaction_cancel(domain->sysdb); 155 DEBUG(SSSDBG_FATAL_FAILURE, "Could not cancel sysdb transaction\n"); 245 ret = sysdb_delete_recursive(domain->sysdb, base_dn, true); 268 ret = sysdb_transaction_start(domain->sysdb); 326 ret = sysdb_transaction_commit(domain->sysdb); 339 sret = sysdb_transaction_cancel(domain->sysdb); 350 struct sysdb_ctx *sysdb, 349 ipa_common_get_hostgroupname(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, const char *host_dn, char **_hostgroupname) argument [all...] |
| /sssd-io/src/tests/ |
| H A D | common.h | 68 struct sysdb_ctx *sysdb; member in struct:sss_test_ctx
|
| H A D | auth-tests.c | 39 #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 D | sysdb_ssh-tests.c | 32 #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-io/src/tests/intg/ |
| H A D | sssd_ldb.py | 26 sysdb = 1 variable in class:CacheType 38 self._sysdb = self._create_dbconn(CacheType.sysdb, 44 if cache_type == CacheType.sysdb: 59 if cache_type == CacheType.sysdb: 72 return "cn=%s,cn=%s,cn=sysdb" % (rdn, self._domain_name)
|
| /sssd-io/src/providers/ldap/ |
| H A D | sdap_reinit.c | 29 #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 D | ldap_id_netgroup.c | 28 #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 D | ldap_id_services.c | 28 #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 D | ldap_id_cleanup.c | 31 #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); 366 struct sysdb_ctx *sysdb, 456 base_dn = sysdb_base_dn(sysdb, tmpctx); 465 ret = sysdb_search_entry(tmpctx, sysdb, base_dn, 488 "Failed to search sysdb usin 365 cleanup_groups(TALLOC_CTX *memctx, struct sysdb_ctx *sysdb, struct sss_domain_info *domain) argument [all...] |
| H A D | sdap_async_netgroups.c | 26 #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 D | sdap_async_services.c | 24 #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...] |
| /sssd-io/src/tests/cmocka/ |
| H A D | test_ipa_dn.c | 35 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-io/src/providers/proxy/ |
| H A D | proxy_services.c | 206 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-io/src/responder/ssh/ |
| H A D | ssh_known_hosts.c | 28 #include "db/sysdb.h" 174 struct sysdb_ctx *sysdb; local 196 sysdb = dom->sysdb; 197 if (sysdb == NULL) {
|
| /sssd-io/src/providers/krb5/ |
| H A D | krb5_utils.c | 79 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);
|