Searched refs:sysdb (Results 1 - 25 of 122) sorted by relevance

12345

/sssd/src/providers/ipa/
H A Dipa_dn.h25 #include "db/sysdb.h"
28 struct sysdb_ctx *sysdb,
34 #define ipa_get_rdn(mem_ctx, sysdb, dn, _rdn_val, rdn_attr, ...) \
35 _ipa_get_rdn(mem_ctx, sysdb, dn, _rdn_val, rdn_attr, ##__VA_ARGS__, NULL)
37 #define ipa_check_rdn(sysdb, dn, rdn_attr, ...) \
38 _ipa_get_rdn(NULL, sysdb, dn, NULL, rdn_attr, ##__VA_ARGS__, NULL)
40 #define ipa_check_rdn_bool(sysdb, dn, rdn_attr, ...) \
41 ((bool)(ipa_check_rdn(sysdb, dn, rdn_attr, ##__VA_ARGS__) == EOK))
H A Dipa_selinux_maps.h33 struct sysdb_ctx *sysdb,
H A Dipa_hbac_private.h106 struct sysdb_ctx *sysdb,
134 struct sysdb_ctx *sysdb,
148 struct sysdb_ctx *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/db/
H A Dsysdb_private.h79 "dn: cn=sysdb\n" \
80 "cn: sysdb\n" \
84 "dn: cn=ranges,cn=sysdb\n" \
102 "dn: cn=sysdb\n" \
103 "cn: sysdb\n" \
108 #include "db/sysdb.h"
146 int sysdb_upgrade_03(struct sysdb_ctx *sysdb, const char **ver);
147 int sysdb_upgrade_04(struct sysdb_ctx *sysdb, const char **ver);
148 int sysdb_upgrade_05(struct sysdb_ctx *sysdb, const char **ver);
149 int sysdb_upgrade_06(struct sysdb_ctx *sysdb, cons
[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_init.c103 static errno_t sysdb_chown_db_files(struct sysdb_ctx *sysdb, argument
108 ret = chown(sysdb->ldb_file, uid, gid);
112 "Cannot set sysdb ownership of %s to %"SPRIuid":%"SPRIgid"\n",
113 sysdb->ldb_file, uid, gid);
117 if (sysdb->ldb_ts_file != NULL) {
118 ret = chown(sysdb->ldb_ts_file, uid, gid);
122 "Cannot set sysdb ownership of %s to %"SPRIuid":%"SPRIgid"\n",
123 sysdb->ldb_ts_file, uid, gid);
273 errno_t sysdb_domain_create(struct sysdb_ctx *sysdb, const char *domain_name) argument
275 return sysdb_domain_create_int(sysdb
354 sysdb_ts_cache_upgrade(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct ldb_context *ldb, struct sss_domain_info *domain, const char *cur_version, const char **_new_version) argument
365 sysdb_domain_cache_upgrade(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct sysdb_dom_upgrade_ctx *upgrade_ctx, struct ldb_context *ldb, struct sss_domain_info *domain, const char *cur_version, const char **_new_version) argument
514 remove_ts_cache(struct sysdb_ctx *sysdb) argument
530 sysdb_cache_connect_helper(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *domain, const char *ldb_file, int flags, const char *exp_version, const char *base_ldif, bool *_newly_created, struct ldb_context **_ldb, const char **_version) argument
645 sysdb_cache_connect(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *domain, struct ldb_context **ldb, const char **version) argument
674 sysdb_ts_cache_connect(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *domain, struct ldb_context **ldb, const char **version) argument
686 sysdb_domain_cache_connect(struct sysdb_ctx *sysdb, struct sss_domain_info *domain, struct sysdb_dom_upgrade_ctx *upgrade_ctx) argument
761 sysdb_timestamp_cache_connect(struct sysdb_ctx *sysdb, struct sss_domain_info *domain, struct sysdb_dom_upgrade_ctx *upgrade_ctx) argument
869 struct sysdb_ctx *sysdb; local
933 struct sysdb_ctx *sysdb; local
[all...]
H A Dsysdb_upgrade.c269 struct sysdb_ctx *sysdb; local
413 db_path, false, &sysdb);
418 ret = ldb_transaction_start(sysdb->ldb);
431 domain_dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
447 * dom->sysdb->ldb is not initialized,
450 users_dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
458 * dom->sysdb->ldb is not initialized,
461 groups_dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
485 msg->dn = ldb_dn_new(msg, sysdb->ldb,
492 ret = ldb_add(sysdb
610 sysdb_upgrade_03(struct sysdb_ctx *sysdb, const char **ver) argument
660 sysdb_upgrade_04(struct sysdb_ctx *sysdb, const char **ver) argument
733 sysdb_upgrade_05(struct sysdb_ctx *sysdb, const char **ver) argument
801 sysdb_upgrade_06(struct sysdb_ctx *sysdb, const char **ver) argument
857 sysdb_upgrade_07(struct sysdb_ctx *sysdb, const char **ver) argument
913 sysdb_upgrade_08(struct sysdb_ctx *sysdb, const char **ver) argument
975 sysdb_upgrade_09(struct sysdb_ctx *sysdb, const char **ver) argument
1032 sysdb_upgrade_10(struct sysdb_ctx *sysdb, struct sss_domain_info *domain, const char **ver) argument
1185 sysdb_upgrade_11(struct sysdb_ctx *sysdb, struct sss_domain_info *domain, const char **ver) argument
1288 sysdb_upgrade_12(struct sysdb_ctx *sysdb, const char **ver) argument
1345 sysdb_upgrade_13(struct sysdb_ctx *sysdb, const char **ver) argument
1433 sysdb_upgrade_14(struct sysdb_ctx *sysdb, const char **ver) argument
1547 sysdb_upgrade_15(struct sysdb_ctx *sysdb, const char **ver) argument
1603 sysdb_upgrade_16(struct sysdb_ctx *sysdb, const char **ver) argument
2191 sysdb_upgrade_17(struct sysdb_ctx *sysdb, struct sysdb_dom_upgrade_ctx *upgrade_ctx, const char **ver) argument
[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...]
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_gpo.c24 #include "db/sysdb.h"
42 dn = ldb_dn_new_fmt(mem_ctx, domain->sysdb->ldb, SYSDB_TMPL_GPO,
80 ret = sysdb_transaction_start(domain->sysdb);
93 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, update_msg->dn,
164 lret = ldb_add(domain->sysdb->ldb, update_msg);
208 lret = ldb_modify(domain->sysdb->ldb, update_msg);
212 ldb_strerror(lret), lret, ldb_errstring(domain->sysdb->ldb));
221 ret = sysdb_transaction_commit(domain->sysdb);
231 sret = sysdb_transaction_cancel(domain->sysdb);
259 base_dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb
[all...]
H A Dsysdb_views.c30 struct sysdb_ctx *sysdb,
47 view_base_dn = ldb_dn_new(tmp_ctx, sysdb->ldb, SYSDB_TMPL_VIEW_BASE);
52 ret = ldb_search(sysdb->ldb, tmp_ctx, &res, view_base_dn, LDB_SCOPE_BASE,
88 errno_t sysdb_get_view_name(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, argument
93 return sysdb_get_view_name_ex(mem_ctx, sysdb, view_name,
97 errno_t sysdb_update_view_name(struct sysdb_ctx *sysdb, argument
112 ret = sysdb_get_view_name_ex(tmp_ctx, sysdb, &tmp_str,
141 msg->dn = ldb_dn_new(tmp_ctx, sysdb->ldb, SYSDB_TMPL_VIEW_BASE);
164 ret = ldb_modify(sysdb->ldb, msg);
166 ret = ldb_add(sysdb
29 sysdb_get_view_name_ex(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, char **_view_name, bool *view_container_exists) argument
182 sysdb_delete_view_tree(struct sysdb_ctx *sysdb, const char *view_name) argument
216 sysdb_invalidate_overrides(struct sysdb_ctx *sysdb) argument
[all...]
H A Dsysdb_idmap.c24 #include "db/sysdb.h"
42 dn = ldb_dn_new_fmt(mem_ctx, domain->sysdb->ldb, SYSDB_TMPL_IDMAP,
83 ret = sysdb_transaction_start(domain->sysdb);
93 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, dn, LDB_SCOPE_BASE,
169 lret = ldb_add(domain->sysdb->ldb, update_msg);
247 lret = ldb_modify(domain->sysdb->ldb, update_msg);
251 ldb_strerror(lret), lret, ldb_errstring(domain->sysdb->ldb));
257 ret = sysdb_transaction_commit(domain->sysdb);
267 sret = sysdb_transaction_cancel(domain->sysdb);
293 base_dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb
[all...]
H A Dsysdb_ops.c62 * Please note this function returns LDB error codes, not sysdb error
94 /* Please note this function returns LDB error codes, not sysdb error
126 static int sysdb_delete_ts_entry(struct sysdb_ctx *sysdb, argument
129 if (sysdb->ldb_ts == NULL) {
133 return sysdb_delete_cache_entry(sysdb->ldb_ts, dn, true);
136 int sysdb_delete_entry(struct sysdb_ctx *sysdb, argument
142 ret = sysdb_delete_cache_entry(sysdb->ldb, dn, ignore_not_found);
144 ret = sysdb_delete_ts_entry(sysdb, dn);
157 int sysdb_delete_recursive(struct sysdb_ctx *sysdb, argument
173 ret = ldb_transaction_start(sysdb
262 sysdb_search_entry(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct ldb_dn *base_dn, enum ldb_scope scope, const char *filter, const char **attrs, size_t *_msgs_count, struct ldb_message ***_msgs) argument
283 sysdb_search_ts_entry(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct ldb_dn *base_dn, enum ldb_scope scope, const char *filter, const char **attrs, size_t *_msgs_count, struct ldb_message ***_msgs) argument
819 sysdb_create_ts_entry(struct sysdb_ctx *sysdb, struct ldb_dn *entry_dn, struct sysdb_attrs *attrs) argument
1199 sysdb_set_entry_attr(struct sysdb_ctx *sysdb, struct ldb_dn *entry_dn, struct sysdb_attrs *attrs, int mod_op) argument
1242 sysdb_rep_ts_entry_attr(struct sysdb_ctx *sysdb, struct ldb_dn *entry_dn, struct sysdb_attrs *attrs) argument
1254 sysdb_set_ts_entry_attr(struct sysdb_ctx *sysdb, struct ldb_dn *entry_dn, struct sysdb_attrs *attrs, int mod_op) argument
3877 sysdb_delete_by_sid(struct sysdb_ctx *sysdb, struct sss_domain_info *domain, const char *sid_str) argument
[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 Dsdap_async_private.h92 struct sysdb_ctx *sysdb,
99 int sdap_initgr_common_store(struct sysdb_ctx *sysdb,
109 struct sysdb_ctx *sysdb,
115 struct sysdb_ctx *sysdb,
147 errno_t sdap_add_incomplete_groups(struct sysdb_ctx *sysdb,
163 struct sdap_options *opts, struct sysdb_ctx *sysdb,
170 errno_t sdap_nested_groups_store(struct sysdb_ctx *sysdb,
181 struct sysdb_ctx *sysdb,
H A Dsdap_autofs.h37 struct sysdb_ctx *sysdb,
H A Dsdap_async_ad.h45 struct sysdb_ctx *sysdb,
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...]
/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/util/
H A Dsss_selinux.h31 #include <db/sysdb.h>
/sssd/src/providers/krb5/
H A Dkrb5_utils.h40 errno_t check_if_cached_upn_needs_update(struct sysdb_ctx *sysdb,
/sssd/src/tools/
H A Dsss_sync_ops.h84 struct sysdb_ctx *sysdb,
91 struct sysdb_ctx *sysdb,
H A Dsss_groupadd.c30 #include "db/sysdb.h"
111 tctx->error = sysdb_transaction_start(tctx->sysdb);
124 tctx->error = sysdb_transaction_commit(tctx->sysdb);
133 sret = sysdb_transaction_cancel(tctx->sysdb);
152 "sysdb operation failed (%d)[%s]\n", ret, strerror(ret));
/sssd/src/providers/proxy/
H A Dproxy_id.c408 struct sysdb_ctx *sysdb,
443 ret = sysdb_transaction_start(sysdb);
488 ret = sysdb_transaction_commit(sysdb);
548 sret = sysdb_transaction_cancel(sysdb);
577 static errno_t proxy_process_missing_users(struct sysdb_ctx *sysdb,
582 static int save_group(struct sysdb_ctx *sysdb, struct sss_domain_info *dom, argument
601 ret = sysdb_transaction_start(sysdb);
634 ret = proxy_process_missing_users(sysdb, dom, attrs,
659 ret = sysdb_transaction_commit(sysdb);
670 sret = sysdb_transaction_cancel(sysdb);
406 enum_users(TALLOC_CTX *mem_ctx, struct proxy_id_ctx *ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *dom) argument
679 proxy_process_missing_users(struct sysdb_ctx *sysdb, struct sss_domain_info *domain, struct sysdb_attrs *group_attrs, const char *const*fq_gr_mem, time_t now) argument
801 get_gr_name(struct proxy_id_ctx *ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *dom, const char *i_name) argument
953 get_gr_gid(TALLOC_CTX *mem_ctx, struct proxy_id_ctx *ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *dom, gid_t gid, time_t now) argument
1039 enum_groups(TALLOC_CTX *mem_ctx, struct proxy_id_ctx *ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *dom) argument
1197 get_initgr(TALLOC_CTX *mem_ctx, struct proxy_id_ctx *ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *dom, const char *i_name) argument
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
1441 struct sysdb_ctx *sysdb; local
[all...]

Completed in 1198 milliseconds

12345