diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-01-03 06:00:38 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-01-03 12:33:35 -0600 |
commit | 4d0514b38abf9c0a9c439cc2b024892d9f7f1f97 (patch) | |
tree | 3995dd7893a59694e46add9141d89f0dc271e068 /source4 | |
parent | 636c9a7c719ef24205c40b8e2018d83040520490 (diff) | |
download | samba-4d0514b38abf9c0a9c439cc2b024892d9f7f1f97.tar.gz samba-4d0514b38abf9c0a9c439cc2b024892d9f7f1f97.tar.bz2 samba-4d0514b38abf9c0a9c439cc2b024892d9f7f1f97.zip |
r26649: Only claim to be a PDC if we are a PDC.
Andrew Bartlett
(This used to be commit fc5746ae95e5a0b751ec19cae1f204c505f4ca27)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/cldap_server/netlogon.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |