mirror of
https://github.com/apache/nifi.git
synced 2025-02-11 20:45:11 +00:00
NIFI-7832 Resetting boolean that indicates password is being used when service is disabled (#4543)
Signed-off-by: Andy LoPresto <alopresto@apache.org>
This commit is contained in:
parent
73df6f1edf
commit
caf79601ac
@ -222,6 +222,7 @@ public class HortonworksSchemaRegistry extends AbstractControllerService impleme
|
||||
final String keytab = kerberosCredentialsService.getKeytab();
|
||||
final String jaasConfigString = getKeytabJaasConfig(principal, keytab);
|
||||
schemaRegistryConfig.put(SchemaRegistryClient.Configuration.SASL_JAAS_CONFIG.name(), jaasConfigString);
|
||||
usingKerberosWithPassword = false;
|
||||
} else if (!StringUtils.isBlank(kerberosPrincipal) && !StringUtils.isBlank(kerberosPassword)) {
|
||||
schemaRegistryConfig.put(SchemaRegistryClientWithKerberosPassword.SCHEMA_REGISTRY_CLIENT_KERBEROS_PRINCIPAL, kerberosPrincipal);
|
||||
schemaRegistryConfig.put(SchemaRegistryClientWithKerberosPassword.SCHEMA_REGISTRY_CLIENT_KERBEROS_PASSWORD, kerberosPassword);
|
||||
@ -268,6 +269,7 @@ public class HortonworksSchemaRegistry extends AbstractControllerService impleme
|
||||
}
|
||||
|
||||
initialized = false;
|
||||
usingKerberosWithPassword = false;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user