mirror of https://github.com/apache/nifi.git
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 {
|
||||
referralStrategy = ReferralStrategy.valueOf(rawReferralStrategy);
|
||||
} catch (final IllegalArgumentException iae) {
|
||||
throw new ProviderCreationException(String.format("Unrecgonized authentication strategy '%s'. Possible values are [%s]",
|
||||
rawAuthenticationStrategy, StringUtils.join(ReferralStrategy.values(), ", ")));
|
||||
throw new ProviderCreationException(String.format("Unrecognized referral strategy '%s'. Possible values are [%s]",
|
||||
rawReferralStrategy, StringUtils.join(ReferralStrategy.values(), ", ")));
|
||||
}
|
||||
|
||||
context.setReferral(referralStrategy.toString());
|
||||
|
|
Loading…
Reference in New Issue