summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-21 10:41:06 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-23 13:57:59 -0700
commit5c51560d43981ec9a9df2d979130fe5d61b1bcd4 (patch)
tree0b63e82e3e54b8768656c7d6fce378d50ffa884c
parenta50672b44b188b6c3a2f85fa74b754dac614f2a9 (diff)
downloadsamba-5c51560d43981ec9a9df2d979130fe5d61b1bcd4.tar.gz
samba-5c51560d43981ec9a9df2d979130fe5d61b1bcd4.tar.bz2
samba-5c51560d43981ec9a9df2d979130fe5d61b1bcd4.zip
s4-cldap: return domainFunctionality from SAM
-rw-r--r--source4/cldap_server/netlogon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c
index b1a46c3c31..ecc1369dcf 100644
--- a/source4/cldap_server/netlogon.c
+++ b/source4/cldap_server/netlogon.c
@@ -212,7 +212,12 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
DS_DNS_DOMAIN;
if (samdb_is_pdc(sam_ctx)) {
+ int *domainFunctionality;
server_type |= NBT_SERVER_PDC;
+ domainFunctionality = talloc_get_type(ldb_get_opaque(sam_ctx, "domainFunctionality"), int);
+ if (domainFunctionality && *domainFunctionality >= DS_DOMAIN_FUNCTION_2008) {
+ server_type |= NBT_SERVER_FULL_SECRET_DOMAIN_6;
+ }
}
if (samdb_is_gc(sam_ctx)) {