diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-01-07 00:47:01 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-01-06 18:51:02 -0600 |
commit | 654282b885bac0666e2c9add43df2dd9a6ca0c6f (patch) | |
tree | 068534a7d301280127cef3efa6730e2bbc332bf7 | |
parent | 56cf85f73f9a0f8b08094ab9f7f85ec777a2c5d6 (diff) | |
download | samba-654282b885bac0666e2c9add43df2dd9a6ca0c6f.tar.gz samba-654282b885bac0666e2c9add43df2dd9a6ca0c6f.tar.bz2 samba-654282b885bac0666e2c9add43df2dd9a6ca0c6f.zip |
r26680: Don't always advertise GC functionality.
Andrew Bartlett
(This used to be commit 2f228bcbf63af98ff2d0f498f48d49d0f2926343)
-rw-r--r-- | source4/cldap_server/netlogon.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c index f77909e8fa..3493e342d6 100644 --- a/source4/cldap_server/netlogon.c +++ b/source4/cldap_server/netlogon.c @@ -162,7 +162,6 @@ static NTSTATUS cldapd_netlogon_fill(struct cldapd_server *cldapd, } server_type = - NBT_SERVER_GC | NBT_SERVER_DS | NBT_SERVER_TIMESERV | NBT_SERVER_CLOSEST | NBT_SERVER_WRITABLE | NBT_SERVER_GOOD_TIMESERV; @@ -171,6 +170,10 @@ static NTSTATUS cldapd_netlogon_fill(struct cldapd_server *cldapd, server_type |= NBT_SERVER_PDC; } + if (samdb_is_gc(cldapd->samctx)) { + server_type |= NBT_SERVER_GC; + } + if (str_list_check(services, "ldap")) { server_type |= NBT_SERVER_LDAP; } |