Searched defs:ldb (Results 1 - 14 of 14) sorted by relevance

/sssd/src/confdb/
H A Dconfdb_private.h27 struct ldb_context *ldb; member in struct:confdb_ctx
/sssd/src/tests/intg/
H A Dsssd_ldb.py2 # SSSD integration test - access the ldb cache
20 import ldb namespace
45 "cache_%s.ldb" % domain_name)
48 "timestamps_%s.ldb" % domain_name)
52 pyldb = ldb.Ldb()
82 res = dbconn.search(base=basedn, scope=ldb.SCOPE_BASE, attrs=[attr])
/sssd/src/tests/cmocka/
H A Dtest_ipa_subdomains_utils.c38 struct ldb_context *ldb; member in struct:test_ipa_subdom_ctx
50 test_ctx->ldb = ldb_init(test_ctx, NULL);
51 assert_non_null(test_ctx->ldb);
97 dn = ipa_subdom_ldb_dn(test_ctx, test_ctx->ldb, attrs);
120 dn = ipa_subdom_ldb_dn(test_ctx, test_ctx->ldb, attrs);
126 dn = ipa_subdom_ldb_dn(test_ctx, test_ctx->ldb, attrs);
132 struct ldb_context *ldb,
141 dn = ipa_subdom_ldb_dn(mem_ctx, ldb, attrs);
156 dn = get_dn(test_ctx, test_ctx->ldb,
162 dn = get_dn(test_ctx, test_ctx->ldb,
131 get_dn(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, const char *strdn) argument
[all...]
H A Dtest_ipa_subdomains_server.c62 #define TEST_CONF_DB "test_ipa_subdom_server.ldb"
568 struct ldb_context *ldb; member in struct:dir_test_ctx
580 test_ctx->ldb = ldb_init(test_ctx, NULL);
581 assert_non_null(test_ctx->ldb);
609 ret = ipa_server_get_trust_direction(test_ctx->tdo, test_ctx->ldb, &dir);
649 ret = ipa_server_get_trust_direction(test_ctx->tdo, test_ctx->ldb, &dir);
667 ret = ipa_server_get_trust_direction(test_ctx->tdo, test_ctx->ldb, &dir);
/sssd/src/db/
H A Dsysdb_private.h111 struct ldb_context *ldb; member in struct:sysdb_ctx
143 int sysdb_upgrade_01(struct ldb_context *ldb, const char **ver);
228 * new attributes are allocated atop the ldb messages.
H A Dsysdb_init.c54 struct ldb_context *ldb; local
61 ldb = ldb_init(mem_ctx, NULL);
62 if (!ldb) {
66 ret = ldb_set_debug(ldb, ldb_debug_messages, NULL);
73 DEBUG(SSSDBG_TRACE_ALL, "Setting ldb module path to [%s].\n", mod_path);
74 ldb_set_modules_dir(ldb, mod_path);
77 ret = ldb_connect(ldb, filename, flags, NULL);
82 *_ldb = ldb;
90 struct ldb_context **ldb)
94 talloc_zfree(*ldb);
87 sysdb_ldb_reconnect(TALLOC_CTX *mem_ctx, const char *ldb_file, int flags, struct ldb_context **ldb) argument
164 sysdb_domain_create_int(struct ldb_context *ldb, const char *domain_name) argument
314 sysdb_cache_add_base_ldif(struct ldb_context *ldb, const char *base_ldif, const char *domain_name) argument
335 sysdb_cache_create_empty(struct ldb_context *ldb, const char *base_ldif, struct sss_domain_info *domain) argument
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
547 struct ldb_context *ldb; local
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
693 struct ldb_context *ldb; local
768 struct ldb_context *ldb; local
[all...]
H A Dsysdb_upgrade.c30 struct ldb_context *ldb; member in struct:upgrade_ctx
34 static errno_t commence_upgrade(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, argument
47 ctx->ldb = ldb;
50 ret = ldb_transaction_start(ldb);
77 msg->dn = ldb_dn_new(msg, ctx->ldb, SYSDB_BASE);
95 ret = ldb_modify(ctx->ldb, msg);
113 lret = ldb_transaction_commit((*ctx)->ldb);
121 lret = ldb_transaction_cancel((*ctx)->ldb);
144 int sysdb_upgrade_01(struct ldb_context *ldb, cons argument
267 struct ldb_context *ldb; local
1666 object_domain(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, struct ldb_message *msg, const char *domain_attr, unsigned domain_index) argument
1774 qualify_rdn(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, struct sss_names_ctx *names, struct ldb_dn *old_dn_val) argument
1850 qualify_dn_attr(struct ldb_context *ldb, struct ldb_message *msg, struct ldb_message *mod_msg, struct sss_names_ctx *names, const char *attrname) argument
1943 qualify_object(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, struct sss_names_ctx *names, struct ldb_message *object, bool qualify_dn, const char *domain_attr, unsigned domain_index, const char *name_attrs[], const char *dn_attrs[], should_qualify_val_fn qfn) argument
2038 qualify_objects(struct upgrade_ctx *ctx, struct ldb_context *ldb, struct sss_names_ctx *names, struct ldb_dn *base_dn, bool qualify_dn, const char *domain_attr, unsigned domain_index, const char *filter, const char *name_attrs[], const char *dn_attrs[], should_qualify_val_fn qfn) argument
2080 qualify_users(struct upgrade_ctx *ctx, struct ldb_context *ldb, struct sss_names_ctx *names, struct ldb_dn *base_dn) argument
2105 qualify_groups(struct upgrade_ctx *ctx, struct ldb_context *ldb, struct sss_names_ctx *names, struct ldb_dn *base_dn) argument
2130 qualify_user_overrides(struct upgrade_ctx *ctx, struct ldb_context *ldb, struct sss_names_ctx *names, struct ldb_dn *base_dn) argument
2154 qualify_group_overrides(struct upgrade_ctx *ctx, struct ldb_context *ldb, struct sss_names_ctx *names, struct ldb_dn *base_dn) argument
2174 qualify_sudo_rules(struct upgrade_ctx *ctx, struct ldb_context *ldb, struct sss_names_ctx *names, struct ldb_dn *base_dn) argument
[all...]
H A Dsysdb_ops.c65 int sss_ldb_modify_permissive(struct ldb_context *ldb, argument
71 ret = ldb_build_mod_req(&req, ldb, ldb,
87 ret = ldb_request(ldb, req);
104 static int sysdb_delete_cache_entry(struct ldb_context *ldb, argument
110 ret = ldb_delete(ldb, dn);
121 ldb_strerror(ret), ret, ldb_errstring(ldb));
142 ret = sysdb_delete_cache_entry(sysdb->ldb, dn, ignore_not_found);
173 ret = ldb_transaction_start(sysdb->ldb);
210 ret = ldb_transaction_commit(sysdb->ldb);
222 sysdb_cache_search_entry(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, struct ldb_dn *base_dn, enum ldb_scope scope, const char *filter, const char **attrs, size_t *_msgs_count, struct ldb_message ***_msgs) argument
1138 sysdb_set_cache_entry_attr(struct ldb_context *ldb, struct ldb_dn *entry_dn, struct sysdb_attrs *attrs, int mod_op) argument
3400 sysdb_cache_search_users(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, struct ldb_context *ldb, const char *sub_filter, const char **attrs, size_t *msgs_count, struct ldb_message ***msgs) argument
3617 sysdb_cache_search_groups(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, struct ldb_context *ldb, const char *sub_filter, const char **attrs, size_t *msgs_count, struct ldb_message ***msgs) argument
[all...]
/sssd/src/providers/ldap/
H A Dldap_options.c635 struct ldb_context *ldb; local
650 ldb = ldb_init(tmp_ctx, NULL);
651 if (!ldb) {
732 ldn = ldb_dn_new(tmp_ctx, ldb, split_bases[c]);
H A Dsdap.c1068 struct ldb_context *ldb; local
1077 ldb = ldb_init(tmp_ctx, NULL);
1078 if (!ldb) {
1096 ldn = ldb_dn_new(tmp_ctx, ldb, unparsed_base);
/sssd/src/responder/secrets/
H A Dlocal.c25 #include <ldb.h>
30 struct ldb_context *ldb; member in struct:local_context
121 struct ldb_context *ldb,
129 dn = ldb_dn_new(mem_ctx, ldb, "cn=secrets");
223 ret = local_db_dn(tmp_ctx, lctx->ldb, req_path, &dn);
234 ret = ldb_search(lctx->ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE,
297 ret = local_db_dn(tmp_ctx, lctx->ldb, req_path, &dn);
308 ret = ldb_search(lctx->ldb, tmp_ctx, &res, dn, LDB_SCOPE_SUBTREE,
382 ret = ldb_search(lctx->ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE,
430 dn = ldb_dn_new(tmp_ctx, lctx->ldb, "c
120 local_db_dn(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, const char *req_path, struct ldb_dn **req_dn) argument
[all...]
/sssd/src/tools/
H A Dsss_groupshow.c64 static int parse_memberofs(struct ldb_context *ldb, argument
77 dn = ldb_dn_from_ldb_val(gi, ldb, &(el->values[i]));
91 struct ldb_context *ldb,
129 dn = ldb_dn_from_ldb_val(tmp_ctx, ldb, &(el->values[i]));
202 struct ldb_context *ldb,
241 ret = parse_members(gi, ldb, domain, el,
256 ret = parse_members(gi, ldb, domain, el,
287 ret = parse_memberofs(ldb, el, gi);
90 parse_members(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, struct sss_domain_info *domain, struct ldb_message_element *el, const char *parent_name, const char ***user_members, const char ***group_members, int *num_group_members) argument
201 process_group(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, struct ldb_message *msg, struct sss_domain_info *domain, const char *parent_name, struct group_info **info, const char ***group_members, int *num_group_members) argument
H A Dsss_override.c884 struct ldb_context *ldb = sysdb_ctx_get_ldb(domain->sysdb); local
902 override_dn = ldb_dn_new_fmt(tmp_ctx, ldb,
943 ret = ldb_modify(ldb, msg);
947 ldb_strerror(ret), ret, ldb_errstring(ldb));
977 struct ldb_context *ldb = sysdb_ctx_get_ldb(domain->sysdb); local
992 dn = ldb_msg_find_attr_as_dn(ldb, tmp_ctx, override,
1053 struct ldb_context *ldb = sysdb_ctx_get_ldb(domain->sysdb); local
1077 dn = ldb_dn_new_fmt(tmp_ctx, ldb, SYSDB_TMPL_VIEW_SEARCH_BASE, LOCALVIEW);
/sssd/src/ldb_modules/
H A Dmemberof.c461 struct ldb_context *ldb = ldb_module_get_ctx(module); local
484 ldb_debug(ldb, LDB_DEBUG_ERROR,
492 ldb_debug(ldb, LDB_DEBUG_ERROR,
535 valdn = ldb_dn_from_ldb_val(add_ctx, ldb, &el->values[i]);
537 ldb_debug(ldb, LDB_DEBUG_ERROR, "Invalid dn value: [%s]",
542 ldb_debug(ldb, LDB_DEBUG_ERROR,
554 ret = ldb_build_add_req(&add_req, ldb, add_ctx,
645 struct ldb_context *ldb; local
653 ldb = ldb_module_get_ctx(ctx->module);
658 ret = ldb_build_search_req(&req, ldb, ct
675 struct ldb_context *ldb; local
773 struct ldb_context *ldb; local
1000 struct ldb_context *ldb; local
1109 struct ldb_context *ldb; local
1320 struct ldb_context *ldb = ldb_module_get_ctx(module); local
1399 struct ldb_context *ldb; local
1503 struct ldb_context *ldb; local
1586 struct ldb_context *ldb; local
1634 struct ldb_context *ldb; local
1703 struct ldb_context *ldb; local
1765 struct ldb_context *ldb; local
1815 struct ldb_context *ldb; local
1952 struct ldb_context *ldb; local
1983 struct ldb_context *ldb; local
2104 struct ldb_context *ldb; local
2264 struct ldb_context *ldb; local
2319 struct ldb_context *ldb; local
2584 struct ldb_context *ldb; local
2682 struct ldb_context *ldb; local
2872 struct ldb_context *ldb = ldb_module_get_ctx(module); local
2948 struct ldb_context *ldb; local
3044 struct ldb_context *ldb; local
3173 struct ldb_context *ldb; local
3194 struct ldb_context *ldb; local
3256 struct ldb_context *ldb; local
3335 struct ldb_context *ldb; local
3383 struct ldb_context *ldb; local
3423 mbof_mod_process_membel(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, struct ldb_message *entry, const struct ldb_message_element *membel, struct mbof_dn_array **_added, struct mbof_dn_array **_removed) argument
3639 struct ldb_context *ldb; local
3756 mbof_fill_dn_array(TALLOC_CTX *memctx, struct ldb_context *ldb, const struct ldb_message_element *el, struct mbof_dn_array **dn_array) argument
3929 struct ldb_context *ldb = ldb_module_get_ctx(module); local
4035 struct ldb_context *ldb = ldb_module_get_ctx(ctx->module); local
4063 struct ldb_context *ldb; local
4401 struct ldb_context *ldb = ldb_module_get_ctx(ctx->module); local
4512 struct ldb_context *ldb; local
4557 struct ldb_context *ldb = ldb_module_get_ctx(module); local
[all...]

Completed in 50 milliseconds