diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-19 14:53:14 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-19 04:44:23 +0000 |
commit | 640fbf833b824d3c4c2ecfecdb75fade2ef70fa9 (patch) | |
tree | 79ca7e2e81eccf07ebf5cbff3d8377e778a3c94f | |
parent | 75d57dbc25738bcf01d404b329fda22641a774ff (diff) | |
download | samba-640fbf833b824d3c4c2ecfecdb75fade2ef70fa9.tar.gz samba-640fbf833b824d3c4c2ecfecdb75fade2ef70fa9.tar.bz2 samba-640fbf833b824d3c4c2ecfecdb75fade2ef70fa9.zip |
s4-dsdb: register the DCPROMO_OID control with the rootdse
this is needed to allow it over ldap
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Oct 19 04:44:23 UTC 2010 on sn-devel-104
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/objectclass.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 02c3e4680f..c389965acc 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -1498,6 +1498,13 @@ static int objectclass_init(struct ldb_module *module) /* Look for the opaque to indicate we might have to cut down the DN of defaultObjectCategory */ ldb_module_set_private(module, ldb_get_opaque(ldb, DSDB_EXTENDED_DN_STORE_FORMAT_OPAQUE_NAME)); + ret = ldb_mod_register_control(module, LDB_CONTROL_RODC_DCPROMO_OID); + if (ret != LDB_SUCCESS) { + ldb_debug(ldb, LDB_DEBUG_ERROR, + "objectclass_init: Unable to register control DCPROMO with rootdse\n"); + return ldb_operr(ldb); + } + return ret; } |