From 4d0514b38abf9c0a9c439cc2b024892d9f7f1f97 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 3 Jan 2008 06:00:38 -0600 Subject: r26649: Only claim to be a PDC if we are a PDC. Andrew Bartlett (This used to be commit fc5746ae95e5a0b751ec19cae1f204c505f4ca27) --- source4/cldap_server/netlogon.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/cldap_server') diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c index b79d678e88..f77909e8fa 100644 --- a/source4/cldap_server/netlogon.c +++ b/source4/cldap_server/netlogon.c @@ -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; } -- cgit