You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by albaruthenia <al...@nih.gov> on 2017/07/14 13:48:15 UTC
Debugging LDAP authentication errors
I enabled and configured LDAP user authentication in our NiFi instance, and
restarted it.. I also verified that the box the NiFi resides on is able to
connect to the remote LDAP server using the ldapsearch tool. I created
several user accounts in NiFi, whose identity matches their CN's in the
Active Directory. When I try to login to NiFi, though using my AD
credentials, the error says: "Unable to validate the supplied credentials.
Please contact the system administrator." I wonder if what would be the best
way to check where the authentication process fails?
--
View this message in context: http://apache-nifi-users-list.2361937.n4.nabble.com/Debugging-LDAP-authentication-errors-tp2423.html
Sent from the Apache NiFi Users List mailing list archive at Nabble.com.
Re: Debugging LDAP authentication errors
Posted by albaruthenia <al...@nih.gov>.
I cleaned up the NiFi logs and restarted the instance to get a better insight
into possible causes of the error. Here is the entire stack (I apologize for
dumping it here, but I'm sure those who know NiFi internals could point me
in the right direction):
What seems strange to me is the mention of Kerberos at the very top of the
stack. Also, I'm not sure what "anonymous" means, since I typed in the login
credentials. Basically, I'm trying to figure out if the LDAP server refuses
to talk, or it can't authenticate the user based on the input.
Thanks in advance.
--
View this message in context: http://apache-nifi-users-list.2361937.n4.nabble.com/Debugging-LDAP-authentication-errors-tp2423p2428.html
Sent from the Apache NiFi Users List mailing list archive at Nabble.com.
Re: Debugging LDAP authentication errors
Posted by Kevin Doran <kd...@gmail.com>.
Hi Alexander,
I've not done a lot with NiFi and LDAP, so I won't speculate on what the problem is, but I can share some information about debugging.
If you are comfortable using a graphical debugger, I wrote an article recently about how to connect a debugger to NiFi:
https://community.hortonworks.com/articles/106931/nifi-debugging-tutorial.html
It covers how to connect an IDE's debugger to a running NiFi instance (IntelliJ but the steps should be similar for other debuggers) and also how to enable debug log output for your NiFi server.
Hope this helps. If you are still stuck, feel free to post back with a follow up.
Cheers,
Kevin
From: albaruthenia <al...@nih.gov>
Reply-To: <us...@nifi.apache.org>
Date: Friday, July 14, 2017 at 09:48
To: <us...@nifi.apache.org>
Subject: Debugging LDAP authentication errors
I enabled and configured LDAP user authentication in our NiFi instance, and restarted it.. I also verified that the box the NiFi resides on is able to connect to the remote LDAP server using the ldapsearch tool. I created several user accounts in NiFi, whose identity matches their CN's in the Active Directory. When I try to login to NiFi, though using my AD credentials, the error says: "Unable to validate the supplied credentials. Please contact the system administrator." I wonder if what would be the best way to check where the authentication process fails?
View this message in context: Debugging LDAP authentication errors
Sent from the Apache NiFi Users List mailing list archive at Nabble.com.
Re: Debugging LDAP authentication errors
Posted by albaruthenia <al...@nih.gov>.
Thank you all who looked at this. I have just discovered a configuration
mistake in the login-identity-providers.xml file, so we are out of the woods
now...
Special thanks to Kevin for his recommendation of the debugging tool for
NiFi.
--
View this message in context: http://apache-nifi-users-list.2361937.n4.nabble.com/Debugging-LDAP-authentication-errors-tp2423p2430.html
Sent from the Apache NiFi Users List mailing list archive at Nabble.com.