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

Pierre Villard commented on NIFI-5865:
--------------------------------------

{noformat}Caused by: org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'authorizer': FactoryBean threw exception on 
object creation; nested exception is 
org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - No Such 
Object]; nested exception is javax.naming.NameNotFoundException: [LDAP: error 
code 32 - No Such Object]; remaining name 'DC=abc,DC=local'
        at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3179){noformat}

What you're setting in your authorizers.xml file does not match what you have 
in your LDAP/AD.

> Secure Nifi LDAP
> ----------------
>
>                 Key: NIFI-5865
>                 URL: https://issues.apache.org/jira/browse/NIFI-5865
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Firdaous hebbal
>            Priority: Major
>         Attachments: authorizations.xml, authorizers.xml, 
> login-identity-providers.xml, nifi.properties, users.xml
>
>
> I have this Error :
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration':
>  Unsatisfied dependency expressed through method 
> 'setFilterChainProxySecurityConfigurer' parameter 1; nested exception is 
> org.springframework.beans.factory.BeanExpressionException: Expression parsing 
> failed; nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanExpressionException: 
> Expression parsing failed; nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
> Error creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'authorizer': FactoryBean threw exception on object 
> creation; nested exception is 
> org.springframework.ldap.CommunicationException: nifi01.admin.local:389; 
> nested exception is javax.naming.CommunicationException: 
> nifi01.admin.local:389 [Root exception is java.net.UnknownHostException: 
> nifi01.admin.local]
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration':
>  Unsatisfied dependency expressed through method 
> 'setFilterChainProxySecurityConfigurer' parameter 1; nested exception is 
> org.springframework.beans.factory.BeanExpressionException: Expression parsing 
> failed; nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanExpressionException: 
> Expression parsing failed; nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
> Error creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'authorizer': FactoryBean threw exception on object 
> creation; nested exception is 
> org.springframework.ldap.CommunicationException: nifi01.admin.local:389; 
> nested exception is javax.naming.CommunicationException: 
> nifi01.admin.local:389 [Root exception is java.net.UnknownHostException: 
> nifi01.admin.local]
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration':
>  Unsatisfied dependency expressed through method 
> 'setFilterChainProxySecurityConfigurer' parameter 1; nested exception is 
> org.springframework.beans.factory.BeanExpressionException: Expression parsing 
> failed; nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanExpressionException: 
> Expression parsing failed; nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
> Error creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'authorizer': FactoryBean threw exception on object 
> creation; nested exception is 
> org.springframework.ldap.CommunicationException: nifi01.admin.local:389; 
> nested exception is javax.naming.CommunicationException: 
> nifi01.admin.local:389 [Root exception is java.net.UnknownHostException: 
> nifi01.admin.local]
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration':
>  Unsatisfied dependency expressed through method 
> 'setFilterChainProxySecurityConfigurer' parameter 1; nested exception is 
> org.springframework.beans.factory.BeanExpressionException: Expression parsing 
> failed; nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanExpressionException: 
> Expression parsing failed; nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
> Error creating bean with name 
> 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency 
> expressed through method 'setJwtAuthenticationProvider' parameter 0; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'jwtAuthenticationProvider' defined in class path 
> resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 
> 'authorizer' while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authorizer': FactoryBean threw exception on object creation; 
> nested exception is org.springframework.ldap.CommunicationException: 
> nifi01.admin.local:389; nested exception is 
> javax.naming.CommunicationException: nifi01.admin.local:389 [Root exception 
> is java.net.UnknownHostException: nifi01.admin.local]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'authorizer': FactoryBean threw exception on object 
> creation; nested exception is 
> org.springframework.ldap.CommunicationException: nifi01.admin.local:389; 
> nested exception is javax.naming.CommunicationException: 
> nifi01.admin.local:389
> Can someone help me



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to