-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle password change request #132
Comments
Same here. |
Are your machines using openfortigui domain-joined? It sounds like they've initiated a password expiry through something like Active Directory.. so unless your Linux machine is joined to the domain using something like Centrify or similar software, it might have the faculties to know a password expiry has taken place. Your password prompt on Windows, is coming from the OS, not Forticlient, correct? If so, this is not so much VPN-related, but domain machine related. If that is the case, you will have to hop on a domain-joined machine to update your password. |
Hi, I'm checking with sysadmins if we're domain-joined. I do know that the password expire was made through AD. In any case, what I inteded to do was the same I did with FortiClientVPN for Windows; even though I wasn't on the same domain, I got the password renew prompt upon connection. Maybe I'm missing something for not knowing the details behind Fortinet VPNs' connections, but the idea behind the issue is to be able to replace the Windows client with this project on a Linux box, and this seems to be a difference in behaviours. |
Hi, thanks for your request. As @angela-d mentioned i dont now if this works really. We also have domain-joind linux boxes (UCS) but we already get password change request on OS login. We also never tried password change via FortiClient. If this should work via VPN Client the Fortigate must ask for the new password and then forward to AD/LDAP. This project is based on openfortivpn, so maybe you try first if openfortivpn can handle it. If yes i can try to intercept the request (as like for OTP) and prompt for the new password via GUI. Maybe you can also provide some logs with debug enabled so we can see if fortigate asks for a password. |
I can confirm that openfortivpn handles the request that prompts for new password upon credentials expiracy, and it also changed my password in AD/LDAP. Using OpenFortiGUI i get the following logs when i press on connect: The connection never changes his state. |
Okay, maybe you can post a screenshot with the prompt from openfortivpn, so i can get a glue. Also make sure you enable Debug Log (in VPN Settings), then it should log more verbose. |
Ok, i will, but first i have to wait until my credentials gets expired. Then i will attempting to login and openfortivpn should promp me for enter a new password. |
As promise, here is the log you requested. Please, note the prompt "Please select a new one:" referred to enter the new password for the domain account:
|
Thanks for your log, it seems like the text is send from your AD-Server so i cant trigger some action on static text. As far as i can see this input is handled by the OTP userinput method in openfortivpn. But i can also see that the keyword "Please" is already in the trigger list here so it should also show the "OTP" prompt dialog. |
Same problem here. I need to use openfortivpn command line to change password. |
Seems that changing exspired password is possible using openfortivpn cli. When I was trying to use openfortivpn with just expired password, I have seen it like this: sudo openfortivpn -c /my/secreet/config/withPwd
INFO: Connected to gateway.
Please select a new one: <CTRL+C pressed>
ERROR: No OTP specified
ERROR: Could not authenticate to gateway. Please check the password, client certificate, etc.
INFO: Closed connection to gateway.
INFO: Logged out. After I gout gourage, I have tried and enterred new password to the prompt: sudo openfortivpn -c /my/secreet/config/withPwd
INFO: Connected to gateway.
Please select a new one: <entered new pwd and pressed enter>
INFO: Authenticated.
INFO: Remote gateway has allocated a VPN.
Using interface ppp0
Connect: ppp0 <--> /dev/pts/7
INFO: Got addresses ...... |
Hi, I really don't know what kind of information to provide since I can't really control the companies' user administration. The point is that all passwords were reseted so I needed to provide a new password upon next connection to the VPN; using OpenFortiGUI I tried connecting and nothing happened. When I tried on a computer with Win, it just popped up a request for changing the password.
So, steps to reproduce:
Expected behaviour:
Actual behaviour:
I'd be glad to provide logs if I knew where to get them.
Please let me know if there's anything else I can provide to help.
Cheers.
The text was updated successfully, but these errors were encountered: