1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

s4-dsdb: added isGlobalCatalogReady

needed for dcdiag.exe
This commit is contained in:
Andrew Tridgell 2010-01-15 19:13:26 +11:00
parent f85b6ee90b
commit 51bf383c26

View File

@ -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 */