From 8b27effa93d4269ede86e9a0bbcd8c5df4171dae Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 12 Feb 2009 15:53:55 -0500 Subject: Add syntaxes for member and memberof --- server/ldb_modules/memberof.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server') 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); } -- cgit