mirror of
https://github.com/apache/nifi.git
synced 2025-02-16 06:55:28 +00:00
NIFI-1560:
- Fixing a copy and paste error - Looks like when the original coder copied code from AuthenticationStrategy for the ReferralStrategy and did not change this reference for the error case. - Also addressing the typo in the message. - This closes #402
This commit is contained in:
parent
45ca978498
commit
8336014064
@ -191,8 +191,8 @@ public class LdapProvider implements LoginIdentityProvider {
|
|||||||
try {
|
try {
|
||||||
referralStrategy = ReferralStrategy.valueOf(rawReferralStrategy);
|
referralStrategy = ReferralStrategy.valueOf(rawReferralStrategy);
|
||||||
} catch (final IllegalArgumentException iae) {
|
} catch (final IllegalArgumentException iae) {
|
||||||
throw new ProviderCreationException(String.format("Unrecgonized authentication strategy '%s'. Possible values are [%s]",
|
throw new ProviderCreationException(String.format("Unrecognized referral strategy '%s'. Possible values are [%s]",
|
||||||
rawAuthenticationStrategy, StringUtils.join(ReferralStrategy.values(), ", ")));
|
rawReferralStrategy, StringUtils.join(ReferralStrategy.values(), ", ")));
|
||||||
}
|
}
|
||||||
|
|
||||||
context.setReferral(referralStrategy.toString());
|
context.setReferral(referralStrategy.toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user