[jira] [Commented] (NIFI-2757) Site-to-Site Auth Breaks when using DN Identity Mapping Patterns

2016-09-19 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15503998#comment-15503998
 ] 

ASF GitHub Bot commented on NIFI-2757:
--

Github user asfgit closed the pull request at:

https://github.com/apache/nifi/pull/1010


> Site-to-Site Auth Breaks when using DN Identity Mapping Patterns
> 
>
> Key: NIFI-2757
> URL: https://issues.apache.org/jira/browse/NIFI-2757
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Core Framework
>Affects Versions: 1.0.0
>Reporter: Peter Wicks
>Assignee: Koji Kawamura
> Fix For: 1.1.0
>
>
> If you setup a nifi.security.identity.mapping for DN's Site-to-Site won't be 
> able to authenticate against the server with identity mappings unless you 
> create two user accounts, one for the identity mapped one and another with 
> the full DN from the certificate.
> Maybe look at StandardRootGroupPort.java, 
> final CommunicationsSession commsSession = peer.getCommunicationsSession();
> final String sourceDn = commsSession.getUserDn();
> ..
> final PortAuthorizationResult authorizationResult = 
> checkUserAuthorization(sourceDn);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (NIFI-2757) Site-to-Site Auth Breaks when using DN Identity Mapping Patterns

2016-09-19 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15503995#comment-15503995
 ] 

ASF subversion and git services commented on NIFI-2757:
---

Commit feaa4c9db82f6d29777d82df45beb43879be87cf in nifi's branch 
refs/heads/master from [~ijokarumawak]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=feaa4c9 ]

NIFI-2757: Site-to-Site with DN mapping

Added DN identity mapping pattern support to Site-to-Site client
authorization.

This closes #1010.

Signed-off-by: Bryan Bende 


> Site-to-Site Auth Breaks when using DN Identity Mapping Patterns
> 
>
> Key: NIFI-2757
> URL: https://issues.apache.org/jira/browse/NIFI-2757
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Core Framework
>Affects Versions: 1.0.0
>Reporter: Peter Wicks
>Assignee: Koji Kawamura
> Fix For: 1.1.0
>
>
> If you setup a nifi.security.identity.mapping for DN's Site-to-Site won't be 
> able to authenticate against the server with identity mappings unless you 
> create two user accounts, one for the identity mapped one and another with 
> the full DN from the certificate.
> Maybe look at StandardRootGroupPort.java, 
> final CommunicationsSession commsSession = peer.getCommunicationsSession();
> final String sourceDn = commsSession.getUserDn();
> ..
> final PortAuthorizationResult authorizationResult = 
> checkUserAuthorization(sourceDn);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (NIFI-2757) Site-to-Site Auth Breaks when using DN Identity Mapping Patterns

2016-09-19 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15503992#comment-15503992
 ] 

ASF GitHub Bot commented on NIFI-2757:
--

Github user bbende commented on the issue:

https://github.com/apache/nifi/pull/1010
  
+1 looks good, verified this fixes the problem when using identity mapping 
with RAW site-to-site, thanks!


> Site-to-Site Auth Breaks when using DN Identity Mapping Patterns
> 
>
> Key: NIFI-2757
> URL: https://issues.apache.org/jira/browse/NIFI-2757
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Core Framework
>Affects Versions: 1.0.0
>Reporter: Peter Wicks
>Assignee: Koji Kawamura
> Fix For: 1.1.0
>
>
> If you setup a nifi.security.identity.mapping for DN's Site-to-Site won't be 
> able to authenticate against the server with identity mappings unless you 
> create two user accounts, one for the identity mapped one and another with 
> the full DN from the certificate.
> Maybe look at StandardRootGroupPort.java, 
> final CommunicationsSession commsSession = peer.getCommunicationsSession();
> final String sourceDn = commsSession.getUserDn();
> ..
> final PortAuthorizationResult authorizationResult = 
> checkUserAuthorization(sourceDn);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (NIFI-2757) Site-to-Site Auth Breaks when using DN Identity Mapping Patterns

2016-09-19 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15503915#comment-15503915
 ] 

ASF GitHub Bot commented on NIFI-2757:
--

Github user bbende commented on the issue:

https://github.com/apache/nifi/pull/1010
  
Reviewing...


> Site-to-Site Auth Breaks when using DN Identity Mapping Patterns
> 
>
> Key: NIFI-2757
> URL: https://issues.apache.org/jira/browse/NIFI-2757
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Core Framework
>Affects Versions: 1.0.0
>Reporter: Peter Wicks
>Assignee: Koji Kawamura
> Fix For: 1.1.0
>
>
> If you setup a nifi.security.identity.mapping for DN's Site-to-Site won't be 
> able to authenticate against the server with identity mappings unless you 
> create two user accounts, one for the identity mapped one and another with 
> the full DN from the certificate.
> Maybe look at StandardRootGroupPort.java, 
> final CommunicationsSession commsSession = peer.getCommunicationsSession();
> final String sourceDn = commsSession.getUserDn();
> ..
> final PortAuthorizationResult authorizationResult = 
> checkUserAuthorization(sourceDn);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (NIFI-2757) Site-to-Site Auth Breaks when using DN Identity Mapping Patterns

2016-09-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15486232#comment-15486232
 ] 

ASF GitHub Bot commented on NIFI-2757:
--

GitHub user ijokarumawak opened a pull request:

https://github.com/apache/nifi/pull/1010

NIFI-2757: Site-to-Site with DN mapping

Added DN identity mapping pattern support to Site-to-Site client
authorization.

HTTP Site-to-Site has been working without this fix since it uses the same 
mechanism with other REST endpoints for authenticating user identity. This PR 
fixes RAW transport protocol, by adding mapping code at 
`StandardRootGroupPort.checkUserAuthorization(final String dn)`.

Confirmed it worked using two running NiFi instances. Contrib check passed 
locally.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/ijokarumawak/nifi nifi-2757

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/nifi/pull/1010.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1010


commit fff756728b93c3c962b2ce40327cf02700eca3ff
Author: Koji Kawamura 
Date:   2016-09-13T04:24:59Z

NIFI-2757: Site-to-Site with DN mapping

Added DN identity mapping pattern support to Site-to-Site client
authorization.




> Site-to-Site Auth Breaks when using DN Identity Mapping Patterns
> 
>
> Key: NIFI-2757
> URL: https://issues.apache.org/jira/browse/NIFI-2757
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Core Framework
>Affects Versions: 1.0.0
>Reporter: Peter Wicks
>Assignee: Koji Kawamura
>
> If you setup a nifi.security.identity.mapping for DN's Site-to-Site won't be 
> able to authenticate against the server with identity mappings unless you 
> create two user accounts, one for the identity mapped one and another with 
> the full DN from the certificate.
> Maybe look at StandardRootGroupPort.java, 
> final CommunicationsSession commsSession = peer.getCommunicationsSession();
> final String sourceDn = commsSession.getUserDn();
> ..
> final PortAuthorizationResult authorizationResult = 
> checkUserAuthorization(sourceDn);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)