Univention Bugzilla – Bug 57187
AD Takeover fails, possible Typo in 96univention-samba4.inst?
Last modified: 2024-04-12 22:24:29 CEST
The AD Takeover fails with "The domain is in AD Member Mode, cannot join as DC" In /usr/lib/univention-install/96univention-samba4.inst the function get_samba_role() queries the variable $server_role. This variable contains the role of the server in OpenLDAP (UCR: server/role). The role of the server in AD is contained in the variable $samba_role (UCR: samba/role). If the AD Connector was previously installed on the server, the error "The domain is in AD Member Mode, cannot join as $samba4_role" is always generated in the configure_samba_role function, because $samba4_role = "DC" and is_domain_in_admember_mode = true. Shouldn't $samba_role be queried in get_samba_role?