diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-01-15 19:13:26 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-01-16 14:10:41 +1100 |
commit | 51bf383c26cb3f867f376305c803dac04ff686a7 (patch) | |
tree | e1ee2afb3443781521e4ca7ac3d5a11f1c215204 /source4/dsdb | |
parent | f85b6ee90b88c7f7b2a92c8a5f3e2ebe59c1087b (diff) | |
download | samba-51bf383c26cb3f867f376305c803dac04ff686a7.tar.gz samba-51bf383c26cb3f867f376305c803dac04ff686a7.tar.bz2 samba-51bf383c26cb3f867f376305c803dac04ff686a7.zip |
s4-dsdb: added isGlobalCatalogReady
needed for dcdiag.exe
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/rootdse.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c index 045b507ffd..4ce379b1bf 100644 --- a/source4/dsdb/samdb/ldb_modules/rootdse.c +++ b/source4/dsdb/samdb/ldb_modules/rootdse.c @@ -364,6 +364,18 @@ static int rootdse_add_dynamic(struct ldb_module *module, struct ldb_message *ms } } + if (do_attribute_explicit(attrs, "isGlobalCatalogReady")) { + /* MS-ADTS 3.1.1.3.2.10 + Note, we should only return true here is we have + completed at least one synchronisation. As both + provision and vampire do a full sync, this means we + can return true is the gc bit is set in the NTDSDSA + options */ + if (ldb_msg_add_fmt(msg, "isGlobalCatalogReady", + "%s", samdb_is_gc(ldb)?"TRUE":"FALSE") != 0) { + goto failed; + } + } /* TODO: lots more dynamic attributes should be added here */ |