summaryrefslogtreecommitdiff
path: root/server/ldb_modules
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-02-12 15:53:55 -0500
committerSimo Sorce <idra@samba.org>2009-02-12 18:50:56 -0500
commit8b27effa93d4269ede86e9a0bbcd8c5df4171dae (patch)
tree0bed166f0ee2351ee99fdff86b80ed82e7ad3862 /server/ldb_modules
parent2959e0fcd4903fd3c8d7ba5cb260375ee1233f7b (diff)
downloadsssd-8b27effa93d4269ede86e9a0bbcd8c5df4171dae.tar.gz
sssd-8b27effa93d4269ede86e9a0bbcd8c5df4171dae.tar.bz2
sssd-8b27effa93d4269ede86e9a0bbcd8c5df4171dae.zip
Add syntaxes for member and memberof
Diffstat (limited to 'server/ldb_modules')
-rw-r--r--server/ldb_modules/memberof.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/ldb_modules/memberof.c b/server/ldb_modules/memberof.c
index 05418adb..956245bd 100644
--- a/server/ldb_modules/memberof.c
+++ b/server/ldb_modules/memberof.c
@@ -2091,6 +2091,14 @@ static int mbof_fill_dn_array(TALLOC_CTX *memctx,
static int memberof_init(struct ldb_module *module)
{
+ struct ldb_context *ldb = ldb_module_get_ctx(module);
+ int ret;
+
+ /* set syntaxes for member and memberof so that comparisons in filters and
+ * such are done right */
+ ret = ldb_schema_attribute_add(ldb, "member", 0, LDB_SYNTAX_DN);
+ ret = ldb_schema_attribute_add(ldb, "memberof", 0, LDB_SYNTAX_DN);
+
return ldb_next_init(module);
}