s4:dsdb: let dsdb_check_and_update_fl() also operatingSystem[Version]
authorStefan Metzmacher <metze@samba.org>
Fri, 7 Jul 2023 12:18:14 +0000 (14:18 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 19 Jul 2023 03:31:30 +0000 (03:31 +0000)
commitb058b39f38b2bade4a347aedc199530382f16279
tree564477215d1ab98e445e3fe08ca91d47d20495fb
parent16865d6d4396fe32ef2e8d6d94243aaec579fd3b
s4:dsdb: let dsdb_check_and_update_fl() also operatingSystem[Version]

Some clients (e.g. an exchange server) check operatingSystemVersion
in order to check if a domain controller is new enough.

So we better use a value matching the dc functional level.

While we also fixed operatingSystem[Version] at provision time,
we do it also in dsdb_check_and_update_fl() in order to
handle old provisions and systems joined to an existing domain.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/common/util.c
source4/dsdb/wscript_build