summaryrefslogtreecommitdiff
path: root/source4/cldap_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-22 17:53:25 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-22 19:36:17 +1000
commit404f7ac0292c91ef3101e9bc32b8aea3b2aec4be (patch)
treef7c070a97e5f68f0ca691b46b628ce8e8d75bfe4 /source4/cldap_server
parente7262b51d1a8905ba3b874f5d48eab4292ebca4d (diff)
downloadsamba-404f7ac0292c91ef3101e9bc32b8aea3b2aec4be.tar.gz
samba-404f7ac0292c91ef3101e9bc32b8aea3b2aec4be.tar.bz2
samba-404f7ac0292c91ef3101e9bc32b8aea3b2aec4be.zip
s4-cldap: we should set the w2k8 flags even if not the PDC emulator
these two tests are independent Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/cldap_server')
-rw-r--r--source4/cldap_server/netlogon.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c
index 139c1cafdc..8f445d01a6 100644
--- a/source4/cldap_server/netlogon.c
+++ b/source4/cldap_server/netlogon.c
@@ -226,9 +226,10 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
if (samdb_is_pdc(sam_ctx)) {
server_type |= DS_SERVER_PDC;
- if (dsdb_functional_level(sam_ctx) >= DS_DOMAIN_FUNCTION_2008) {
- server_type |= DS_SERVER_FULL_SECRET_DOMAIN_6;
- }
+ }
+
+ if (dsdb_functional_level(sam_ctx) >= DS_DOMAIN_FUNCTION_2008) {
+ server_type |= DS_SERVER_FULL_SECRET_DOMAIN_6;
}
if (samdb_is_gc(sam_ctx)) {