Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 08-28-2017 09:08 PM
Hi,I am trying to configure LDAP authentication to our NiFi instance, I am using SIMPLE authentication strategy , with the below settings.
<provider> <identifier>ldap-provider</identifier>
<class>org.apache.nifi.ldap.LdapProvider</class>
<property name="Authentication Strategy">SIMPLE</property>
<property name="Manager DN">CN=admintarapare,OU=Admins,OU=Users and Groups,OU=GC AMS,OU=AMS,OU=Organizations,DC=mycompany,DC=com></property>
<property name="Manager Password">mypwd></property>
<property name="TLS - Keystore"></property>
<property name="TLS - Keystore Password"></property>
<property name="TLS - Keystore Type"></property>
<property name="TLS - Truststore"></property>
<property name="TLS - Truststore Password"></property>
<property name="TLS - Truststore Type"></property>
<property name="TLS - Client Auth"></property>
<property name="TLS - Protocol"></property>
<property name="TLS - Shutdown Gracefully">
</property> <property name="Referral Strategy">FOLLOW</property>
<property name="Connect Timeout">10 secs</property>
<property name="Read Timeout">10 secs</property>
<property name="Url">ldap://ourserver:389</property>
<property name="User Search Base">OU=Admins,OU=Users and Groups,OU=GC AMS,OU=AMS,OU=Organizations,DC=mycompany,DC=com></property>
<property name="User Search Filter">sAMAccountName={0}</property>
<property name="Identity Strategy">USE_DN</property> <property name="Authentication Expiration">12 hours</property> </provider>
i am not getting any exception in the nifi-app.log, but getting this in nifi-user.log
o.a.n.w.a.c.IllegalArgumentExceptionMapper java.lang.IllegalArgumentException: The supplied username and password are not valid.. Returning Bad Request response.
I am using this user admintarapare(which i used in my Manager CN) to login and i know the pwd is correct and i used LDP on my server to verify its connecting to the LDAP server.
Any idea on what i am doing wrong here.?
Regards,
Sai
Created 08-29-2017 06:27 PM
There is an extra character at the end of both of those properties.
">" this is the extra character, on the end of your value.
Created 08-29-2017 05:38 PM
Try changing the User Search Filter from sAMAccountName={0} to (sAMAccountName={0})
Created 08-29-2017 05:52 PM
@wynner ,
I am getting the same error after changing sAMAccountName={0} to (sAMAccountName={0})
Created 08-29-2017 05:56 PM
Just to be sure. Did you restart NiFi after making the change?
Created 08-29-2017 06:01 PM
@Wynner ,
Yes , i did.
Created 08-29-2017 06:09 PM
Another just to be sure, you have an extra character at the end of a couple of the properties.
This property appears to have an extra character
Manager DN
CN=admintarapare,OU=Admins,OU=Users and Groups,OU=GC AMS,OU=AMS,OU=Organizations,DC=mycompany,DC=com>
and this property also
User Search Base
OU=Admins,OU=Users and Groups,OU=GC AMS,OU=AMS,OU=Organizations,DC=mycompany,DC=com>
Created 08-29-2017 06:20 PM
@Wynner,
i do not have any extra chars , i just double checked..
<property name="Manager DN">CN=admintarapa,OU=Admins,OU=Users and Groups,OU=GC AMS,OU=AMS,OU=Organizations,DC=mycomp,DC=com></property>
<property name="User Search Base">OU=Admins,OU=Users and Groups,OU=GC AMS,OU=AMS,OU=Organizations,DC=mycomp,DC=com></property>
One interesting thing is , i tried with wrong password for my manager DN in the login-identity-providers.xml file , even then i get the same error.
o.a.n.w.a.c.IllegalArgumentExceptionMapper java.lang.IllegalArgumentException: The supplied username and password are not valid.. Returning Bad Request response.
Regards,
Sai
Created 08-29-2017 06:27 PM
There is an extra character at the end of both of those properties.
">" this is the extra character, on the end of your value.
Created 08-29-2017 06:28 PM
If your password has any unique characters such as "&" it will break the XML
The fix for this example would be changing the & to: "& amp;" without the space (this website will not show the correct value).
Created 08-29-2017 06:37 PM
@Wynner ,
Sorry , i missed it..Thanks a lot..
now i am getting
insufficient permissions error ..let me check in my user..