Skip to content
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

Authenticate with AD user #1080

Closed
RicardoPQ-com opened this issue Mar 30, 2023 · 12 comments
Closed

Authenticate with AD user #1080

RicardoPQ-com opened this issue Mar 30, 2023 · 12 comments

Comments

@RicardoPQ-com
Copy link

I can't find a way to authenticate a vpn gateway which requires "domain\username" login. ¿Has somebody tried it? I've google a lot and found nothing about it.

@DimitriPapadopoulos
Copy link
Collaborator

What have you tried so far? "DOMAIN/login" and "DOMAIN\login"? How does it work with the official client?

@RicardoPQ-com
Copy link
Author

Yes, I tried with both forms. In the official client it works ok, I just write my "domain\username" in the Username field.

@DimitriPapadopoulos
Copy link
Collaborator

This might be a terminology issue. Perhaps what you call domain, Fortinet call realm.

Try --realm=DOMAIN --user=login.

@RicardoPQ-com
Copy link
Author

Actually I tried that too, but no luck yet

@DimitriPapadopoulos
Copy link
Collaborator

DimitriPapadopoulos commented Mar 31, 2023

Have you enclosed DOMAIN\login in quotes? Like --user='DOMAIN\login'?

@DimitriPapadopoulos
Copy link
Collaborator

Otherwise, it won't be possible to help without logs.

Chances are you need to authenticate on a web page with JavaScript, which is beyond the capability of a command line program. Try authenticating directly in a web browser, retrieving the cookie, and feeding it to openfortivpn.

@VVD
Copy link

VVD commented Apr 5, 2023

For me it work without any "domain" and "realm" - just "username = USER" in config file.
Server's admin send "DOMAIN\USER".

@peterhoeg
Copy link

It's the firewall that's responsible for setting the domain (or realm) so as @VVD says, username = some.user.name is all that's needed. Using this scenario almost every day for multiple customers.

@DimitriPapadopoulos
Copy link
Collaborator

Don't new Fortinet firewalls offer 2FA which may require to open a web page with JavaScript in a browser?

I don't have access to such a Fortinet appliance myself, but I thought newer firewalls may support such configurations that a command line program cannot easily support.

@peterhoeg
Copy link

peterhoeg commented May 4, 2023 via email

@DimitriPapadopoulos
Copy link
Collaborator

Thanks. See also:

@DimitriPapadopoulos
Copy link
Collaborator

@RicardoPQ-com Have you tried plain --user=username, completely dropping domain?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants