Only claim to be a PDC if we are a PDC.
authorabartlet <abartlet@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Thu, 3 Jan 2008 06:00:38 +0000 (06:00 +0000)
committerabartlet <abartlet@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Thu, 3 Jan 2008 06:00:38 +0000 (06:00 +0000)
Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26649 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/cldap_server/netlogon.c

index b79d678e88d58e3c2012dbc098acb8551221ff5d..f77909e8fa1bfdaab72076850fe500b518cf4030 100644 (file)
@@ -162,11 +162,15 @@ static NTSTATUS cldapd_netlogon_fill(struct cldapd_server *cldapd,
        }
 
        server_type      = 
-               NBT_SERVER_PDC | NBT_SERVER_GC | 
+               NBT_SERVER_GC | 
                NBT_SERVER_DS | NBT_SERVER_TIMESERV |
                NBT_SERVER_CLOSEST | NBT_SERVER_WRITABLE | 
                NBT_SERVER_GOOD_TIMESERV;
 
+       if (samdb_is_pdc(cldapd->samctx)) {
+               server_type |= NBT_SERVER_PDC;
+       }
+
        if (str_list_check(services, "ldap")) {
                server_type |= NBT_SERVER_LDAP;
        }