]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpc registry: add ProductType for AD DC
authorMichael Saxl <mike@mwsys.mine.bz>
Wed, 28 May 2025 14:49:13 +0000 (16:49 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 1 Jul 2025 09:17:08 +0000 (09:17 +0000)
HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions contains a key
ProductType

The value of that key should be LanmanNT on a domain controller (of any
type).
The switch had no case for ROLE_ACTIVE_DIRECTORY_DC

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15863
Signed-off-by: Michael Saxl <mike@mwsys.mine.bz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Jul  1 09:17:08 UTC 2025 on atb-devel-224

source3/registry/reg_backend_prod_options.c

index 7bd3f324c37308dabfb4bf66f1b3f74f9453fa99..7ce45c7e170ea03c14fa9b733535aafb7fa89915 100644 (file)
@@ -40,6 +40,7 @@ static int prod_options_fetch_values(const char *key, struct regval_ctr *regvals
        switch (lp_server_role()) {
                case ROLE_DOMAIN_PDC:
                case ROLE_DOMAIN_BDC:
+               case ROLE_ACTIVE_DIRECTORY_DC:
                case ROLE_IPA_DC:
                        value_ascii = "LanmanNT";
                        break;