mirror of https://github.com/apache/nifi.git
NIFI-2772: Unsecure RAW Site-to-Site fails with User DN is not known
This closes #1019. Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
parent
36846e0fe7
commit
bc005e3398
|
@ -346,6 +346,10 @@ public class StandardRootGroupPort extends AbstractPort implements RootGroupPort
|
|||
|
||||
@Override
|
||||
public PortAuthorizationResult checkUserAuthorization(final String dn) {
|
||||
if (!secure) {
|
||||
return new StandardPortAuthorizationResult(true, "Site-to-Site is not Secure");
|
||||
}
|
||||
|
||||
if (dn == null) {
|
||||
final String message = String.format("%s authorization failed for user %s because the DN is unknown", this, dn);
|
||||
logger.warn(message);
|
||||
|
|
Loading…
Reference in New Issue