mirror of
https://github.com/samba-team/samba.git
synced 2025-09-27 17:44:21 +03:00
ldb: Allow to register extended match rules
This allows to extend LDB by registering extended match rules from outside the library itself. This is necessary when the implementation requires knowledge about syntaxes implemented in samba extensions, like the LDAP_MATCHING_RULE_TRANSITIVE_EVAL match. Signed-off-by: Samuel Cabrero <samuelcabrero@kernevil.me> Singed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
committed by
Garming Sam
parent
172aa0ee38
commit
faa4be0535
@@ -130,6 +130,11 @@ struct ldb_context *ldb_init(TALLOC_CTX *mem_ctx, struct tevent_context *ev_ctx)
|
||||
ldb_set_create_perms(ldb, 0666);
|
||||
ldb_set_modules_dir(ldb, LDB_MODULESDIR);
|
||||
ldb_set_event_context(ldb, ev_ctx);
|
||||
ret = ldb_register_extended_match_rules(ldb);
|
||||
if (ret != LDB_SUCCESS) {
|
||||
talloc_free(ldb);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* TODO: get timeout from options if available there */
|
||||
ldb->default_timeout = 300; /* set default to 5 minutes */
|
||||
|
Reference in New Issue
Block a user