summaryrefslogtreecommitdiff
path: root/source4/cldap_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-16 13:32:14 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-16 23:13:07 +0200
commit8dbfa9305dc428e3987e4623034d16a598d54a26 (patch)
tree554d920e684a5c29c2fa368d421a4241b7d029e4 /source4/cldap_server
parent4c5019d507fbe0c9ae328463a3392323fc9e6d51 (diff)
downloadsamba-8dbfa9305dc428e3987e4623034d16a598d54a26.tar.gz
samba-8dbfa9305dc428e3987e4623034d16a598d54a26.tar.bz2
samba-8dbfa9305dc428e3987e4623034d16a598d54a26.zip
s4:cldap_server: only return DS_SERVER_*TIMESERV if "ntp_signd" is used
metze
Diffstat (limited to 'source4/cldap_server')
-rw-r--r--source4/cldap_server/netlogon.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c
index f5703d3f32..ce257e9e1a 100644
--- a/source4/cldap_server/netlogon.c
+++ b/source4/cldap_server/netlogon.c
@@ -221,10 +221,8 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
} else {
user_known = true;
}
-
- server_type =
- DS_SERVER_DS | DS_SERVER_TIMESERV |
- DS_SERVER_GOOD_TIMESERV;
+
+ server_type = DS_SERVER_DS;
if (samdb_is_pdc(sam_ctx)) {
server_type |= DS_SERVER_PDC;
@@ -242,6 +240,10 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
server_type |= DS_SERVER_KDC;
}
+ if (str_list_check(services, "ntp_signd")) {
+ server_type | DS_SERVER_TIMESERV | DS_SERVER_GOOD_TIMESERV;
+ }
+
if (samdb_rodc(sam_ctx, &am_rodc) == LDB_SUCCESS && !am_rodc) {
server_type |= DS_SERVER_WRITABLE;
}