mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:cldap_server: only return DS_SERVER_*TIMESERV if "ntp_signd" is used
metze
This commit is contained in:
parent
4c5019d507
commit
8dbfa9305d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user