Add ROLE_IPA_DC into two more places master
authorAlexander Bokovoy <ab@samba.org>
Mon, 24 Apr 2023 16:26:19 +0000 (19:26 +0300)
committerAlexander Bokovoy <ab@samba.org>
Tue, 25 Apr 2023 06:47:25 +0000 (09:47 +0300)
Missed two more places originally when introduced ROLE_IPA_DC.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
auth/credentials/credentials_secrets.c
lib/param/util.c

index ab2c9ddeef9a9aba62ccb295e38b2f8c00a4c79f..8469d6e116f0c30154c4d37f48612773d270195e 100644 (file)
@@ -387,6 +387,7 @@ _PUBLIC_ NTSTATUS cli_credentials_set_machine_account_db_ctx(struct cli_credenti
 
                                FALL_THROUGH;
                        case ROLE_ACTIVE_DIRECTORY_DC:
+                       case ROLE_IPA_DC:
                                use_kerberos = CRED_USE_KERBEROS_DESIRED;
                                break;
                        }
index 9a0fc102de892c81df4e3e79c08eb70947471201..b9055e86e9d26057c2ac6274ba6a95ad55181fe1 100644 (file)
@@ -266,6 +266,7 @@ const char *lpcfg_sam_dnsname(struct loadparm_context *lp_ctx)
 {
        switch (lpcfg_server_role(lp_ctx)) {
        case ROLE_ACTIVE_DIRECTORY_DC:
+       case ROLE_IPA_DC:
                return lpcfg_dnsdomain(lp_ctx);
        default:
                return NULL;