summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-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)) {