Skip to content

Commit

Permalink
NIFI-7832 Resetting boolean that indicates password is being used whe…
Browse files Browse the repository at this point in the history
…n service is disabled (#4543)

Signed-off-by: Andy LoPresto <alopresto@apache.org>
  • Loading branch information
bbende authored and joewitt committed Sep 22, 2020
1 parent 1fb8bc3 commit be3e918
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ public void enable(final ConfigurationContext context) throws InitializationExce
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);
Expand Down Expand Up @@ -268,6 +269,7 @@ public void close() {
}

initialized = false;
usingKerberosWithPassword = false;
}


Expand Down

0 comments on commit be3e918

Please sign in to comment.