Created 07-19-2018 10:32 AM
I installed NiFi 1.7.1 and NiFi ToolKit.
And, I try to add LDAP auth in NiFi.
But, I try to login NiFI login page, but it occurs error " The supplied username and password are not valid."
login-identity-providers.xml :
<provider> <identifier>ldap-provider</identifier> <class>org.apache.nifi.ldap.LdapProvider</class> <property name="Authentication Strategy">SIMPLE</property> <property name="Manager DN">CN=admin,OU=NIFI,DC=evidnet,DC=com</property> <property name="Manager Password">passwd</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://myhost:389</property> <property name="User Search Base">OU=NIFI,DC=evidnet,DC=com</property> <property name="User Search Filter">(sAMAccountName={0})</property> <property name="Identity Strategy">USE_USERNAME</property> <property name="Authentication Expiration">12 hours</property> </provider>
and, My LDAP Server table is with picture.
Why does not it work?
I entered the correct password, but it does not work.
(id: admin, password: passwd)
Created 07-19-2018 05:02 PM
-
What is the output from an ldapsearch?
ldapsearch -D "CN=admin,OU=NIFI,DC=evidnet,DC=com" -w passwd -p 389 -h myhost -b "OU=NIFI,DC=evidnet,DC=com" -s sub "sAMAccountName=admin"
-
Verify that the above returns a single entry:
# search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1
-
If nothing is returned or more then 1 entry is returned, it is not going to work.
-
Thank you,
Matt
-
If you found this Answer addressed your original question, please take a moment to login and click "Accept" below the answer.
Created 07-20-2018 12:12 AM
# extended LDIF # # LDAPv3 # base <OU=NIFI,DC=evidnet,DC=com> with scope subtree # filter: sAMAccountName=admin # requesting: ALL # # search result search: 2 result: 0 Success # numResponses: 1
So, It is not working ?
How do I do it?
Created 07-20-2018 01:53 PM
See if you can get any responses using that search base:
ldapsearch -D "CN=admin,OU=NIFI,DC=evidnet,DC=com"-w passwd -p 389-h myhost -b "OU=NIFI,DC=evidnet,DC=com"
If that does not work, try changing your search base:
ldapsearch -D "CN=admin,OU=NIFI,DC=evidnet,DC=com"-w passwd -p 389-h myhost -b "DC=evidnet,DC=com"
Basically, NiFi is not going to be successful finding the user if you can't be successful from command line via ldapsearch.
Thanks,
Matt