s4-cldap: we should set the w2k8 flags even if not the PDC emulator
authorAndrew Tridgell <tridge@samba.org>
Thu, 22 Apr 2010 07:53:25 +0000 (17:53 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 22 Apr 2010 09:36:17 +0000 (19:36 +1000)
these two tests are independent

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/cldap_server/netlogon.c

index 139c1cafdcac45aefd70612b5f40b8b47db327bc..8f445d01a654f5a4f9264ad9d597ff588fe8d330 100644 (file)
@@ -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)) {