Member since
01-25-2018
3
Posts
0
Kudos Received
0
Solutions
01-29-2018
02:26 PM
@Matt Clarke You nailed it! I was having a permissions problem with the nifi-user-keys-h2.db file. I corrected that and it working perfectly! Thank you so much!
... View more
01-26-2018
02:08 PM
@Matt Clarke Thank you for your response. No this is not a cluster and and there is no load balancer. Is there a way to debug if the token is having problems being generated? Thanks again, Chad
... View more
01-25-2018
09:25 PM
I have completed the ldap set up for Nifi. After restarting I am able to authenticate with the initial admin but rather than being directed to the canvas, I am taking back to the /nifi/login page. The page says "Success" with a logout and home link and a message below that says "You are already logged in". Clicking the Home link takes me back to the same page. After enabling debugging here is the messages I see in the nifi-users.log file: 2018-01-25 15:50:56,006 DEBUG [NiFi Web Server-20] o.a.n.w.s.NiFiAuthenticationFilter Checking secure context token: null
2018-01-25 15:50:56,007 DEBUG [NiFi Web Server-20] o.a.n.w.s.x509.X509CertificateExtractor No client certificate found in request.
2018-01-25 15:50:56,007 DEBUG [NiFi Web Server-20] o.a.n.w.s.NiFiAuthenticationFilter Checking secure context token: null
2018-01-25 15:50:56,007 INFO [NiFi Web Server-20] o.a.n.w.s.NiFiAuthenticationFilter Attempting request for (eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJjbj1lNzgzMTV0LG91PVVzZXJzLG91PUFjY291bnRzLGRjPWludGVybmFsLGRjPXNsbWJhbmssZGM9bmV0IiwiaXNzIjoiTGRhcFByb3ZpZGVyIiwiYXVkIjoiTGRhcFByb3ZpZGVyIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiZTc4MzE1dCIsImtpZCI6NCwiZXhwIjoxNTE2OTU2NjU0LCJpYXQiOjE1MTY5MTM0NTR9.a8f8h-Jv2_2qo-0kr9KTCTGFKW3SMeuN772RcUPLZLM) GET https://s617985dc2vl485.internal.redacted.net:9091/nifi-api/flow/current-user (source ip: 10.0.108.100)
2018-01-25 15:50:56,010 INFO [NiFi Web Server-20] o.a.n.w.s.NiFiAuthenticationFilter Authentication success for cn=e78315t,ou=Users,ou=Accounts,dc=internal,dc=redacted,dc=net
2018-01-25 15:50:56,013 DEBUG [NiFi Web Server-20] o.a.n.w.s.NiFiAuthenticationFilter Checking secure context token: cn=e78315t,ou=Users,ou=Accounts,dc=internal,dc=redacted,dc=net
2018-01-25 15:50:56,013 DEBUG [NiFi Web Server-20] o.a.n.w.s.a.NiFiAnonymousUserFilter SecurityContextHolder not populated with anonymous token, as it already contained: 'cn=e78315t,ou=Users,ou=Accounts,dc=internal,dc=redacted,dc=net'
2018-01-25 15:50:56,138 DEBUG [NiFi Web Server-21] o.a.n.w.s.NiFiAuthenticationFilter Checking secure context token: null
2018-01-25 15:50:56,138 DEBUG [NiFi Web Server-21] o.a.n.w.s.x509.X509CertificateExtractor No client certificate found in request.
2018-01-25 15:50:56,138 DEBUG [NiFi Web Server-21] o.a.n.w.s.NiFiAuthenticationFilter Checking secure context token: null
2018-01-25 15:50:56,138 DEBUG [NiFi Web Server-21] o.a.n.w.s.NiFiAuthenticationFilter Checking secure context token: null
2018-01-25 15:50:56,139 DEBUG [NiFi Web Server-21] o.a.n.w.s.a.NiFiAnonymousUserFilter Populated SecurityContextHolder with anonymous token: 'anonymous'
2018-01-25 15:50:56,141 INFO [NiFi Web Server-21] o.a.n.w.a.c.AccessDeniedExceptionMapper anonymous does not have permission to access the requested resource. Unknown user with identity 'anonymous'. Returning Unauthorized response.
2018-01-25 15:50:56,145 DEBUG [NiFi Web Server-21] o.a.n.w.a.c.AccessDeniedExceptionMapper
org.apache.nifi.authorization.AccessDeniedException: Unknown user with identity 'anonymous'.
at org.apache.nifi.web.api.FlowResource.authorizeFlow(FlowResource.java:229)
at org.apache.nifi.web.api.FlowResource.getCurrentUser(FlowResource.java:315)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
I have validated this specific dn as valid in the users.xml and authorizations.xml file. Does anyone have any idea where I need to look? Thanks
... View more
Labels:
- Labels:
-
Apache NiFi