diff options
Diffstat (limited to 'server/ldb_modules/memberof.c')
-rw-r--r-- | server/ldb_modules/memberof.c | 8 |
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); } |