Created 03-29-2023 03:49 AM
Hello All,
Hello Everyone,
I installed nifi on a linux server under /opt/nifi_server/nifi. I can connect to nifi using the provided passwords, but when I try to access it remotely, the error "The supplied username and password are not valid" appears.
Earlier, it was working fine.
I started facing issues when I removed the NIFI folder, re-extracted it to the same location, and started the services.
Any assistance would be greatly appreciated.
Thanks,
Shakib
Created 04-03-2023 12:57 AM
Good day, everyone.
This problem has been resolved. I made a new subfolder called /opt/nifi_server/ and installed the NIFI in it. When I first began, it gave me the error "Unable to bind the IP with port 844." I terminated the PID and launched the Nifi.Everything is back to normal now.
Created 03-29-2023 05:46 AM
hi @saquibsk,
I assume that you are using the single user provider policy and not the integration with the LDAP/Kerberos and so on.
Most likely, when you deleted and re-extracted your NiFi Folder you have over-written your authorizations.xml, authorizers.xml, login-identity-provider.xml and users.xml files. From my point of view, your problem is related to the login-identity-providers.xml, as this is the file where you have your password for your user. You could try and get a back-up of this file, extract the password from there and paste it into your current file. Otherwise, you can generate a new password for your user. Or (not sure if it will work) you can see what encryption NiFi uses for hashing the password, and generate your old password using that hash and paste it within your login-identity-provider.xml file.
PS: make sure that you stop NiFi before modifying the file 🙂
Created 03-29-2023 12:13 PM
Thank you @cotopaul for reply.
I regenerated a new password. Working fine on local server, but there is a problem when I access it remotely "The supplied username and password are not valid"
Thanks,
Shakib
Created 03-29-2023 02:14 PM
What do you mean with it is working fine on local server but there is a problem when you access it remotely? How do you access it remotely? Are you using the Apache NiFi version or the Clouder version?
Now, as I do not have all the info yet, I would go ahead and ask a dumb question. If you are trying to access it remotely, I assume that you are using a different device (pc, laptop, vm, etc.), so therefore, are you sure that you are using the same keyboard layout and you are typing the correct password?
Created 03-29-2023 06:18 PM
Hi @cotopaul
I have configured the Nifi on the Linux machine, When I am login into :Linux Machine then its working fine.
Example https://localhost:8443/nifi -- Working perfectly
Now I am accessing in my local machine (Laptop browser)
https://Server_IP_Address:8443/nifi -- Now Credentials not working.
Created 03-30-2023 05:00 AM
So the question with you entering the correct password is still valid, even though it is a dumb question. 🙂
Nevertheless, would it be possible for you to add the nifi.properties config file here? You can replace the password properties with something else.
Created 03-30-2023 01:13 PM
Stop your NiFi service.
Try using the following command to reset the single user "username" and "password" to new values:
$ ./bin/nifi.sh set-single-user-credentials <username> <password>
Then start your NiFi service and see it you can successfully login.
If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.
Thank you,
Matt
Created 03-31-2023 11:18 AM
Hi @MattWho, I have tried this one also, unfortunate did not work. In fact I have deleted the entire nifi and extracted it again with new password. issue still persist. 😞
Created 04-01-2023 12:26 AM
In this situation, a Windows 10 user attempting to connect to Windows 10 or Windows Server 2016 computers is denied access with the following message:
Remote Desktop Connection:
The system administrator has restricted the type of logon (network or interactive) that you may use. For assistance, contact your system administrator or technical support.
This issue occurs when Network Level Authentication (NLA) is required for RDP connections, and the user is not a Remote Desktop Users group member. It can also occur if the Remote Desktop Users group has not been assigned to the Access this computer from the network user right.
Created on 04-02-2023 07:07 PM - edited 04-02-2023 07:18 PM
Same credentials I am using on both the places
<provider>
<identifier>single-user-provider</identifier>
<class>org.apache.nifi.authentication.single.user.SingleUserLoginIdentityProvider</class>
<property name="Username">15a7a80c-dd66-47ca-8d32-4f0c9d4ee372</property>
<property name="Password">$2b$12$Zy.DA3JNLlgBsnhLTnb41uoTzbAVHTxoRtSaMuY5wUibm6vN7kd6y</property>
</provider>
<!--
Error Log : When login from remote machine.
Caused by: org.apache.nifi.authentication.exception.InvalidLoginCredentialsException: Password verification failed
at org.apache.nifi.authentication.single.user.SingleUserLoginIdentityProvider.authenticate(SingleUserLoginIdentityProvider.java:92)
at org.apache.nifi.web.security.spring.LoginIdentityProviderFactoryBean$1.authenticate(LoginIdentityProviderFactoryBean.java:343)
at org.apache.nifi.web.api.AccessResource.createAccessToken(AccessResource.java:422)
Log: when from localhost
loggin successfully , log message when logged off.
2023-04-03 06:05:30,599 INFO [NiFi Web Server-852] org.apache.nifi.web.api.AccessResource Logout Request [57fddaf8-4a7b-40ce-b63a-23d331cb872f] Identity [15a7a80c-dd66-47ca-8d32-4f0c9d4ee372] started