Page 1 of 1

Openvpn dual authetication

Posted: Wed Oct 19, 2011 12:19 pm
by sunilmh
Hi,

I have enabled a dual authetication for the openvpn server. It is enabled with pam plugin.
Client gets prompt to enter User name and Password before the connection establishment. After successful login verification I can connect to the server. At the login time openvpn server accepts any valid user name and password.

I need to have a setup like,
Openvpn server should accept user name and password related to respective clients config.
Eg: I have valid users on openvpn servers abc, xyz & mno
When I try to connect through abc vpn client config, I should be able to connect to server only with "abc" user name and password. It should not allow me to login as other users ( "xyz" or "mno")
Can I have such configuration ?
I would highly appreciate any input to my query.

Thanks,
Sunil

Re: Openvpn dual authetication

Posted: Wed Oct 19, 2011 5:54 pm
by Mimiko
In the authentication by username and password script use common name written in certificate gived to that user to associate certificate with username. The config file will be same for all users in order them to connect.

Or you can run multiple OpenVPN servers on different ports - by one specific port per specific user.

Re: Openvpn dual authetication

Posted: Fri Oct 21, 2011 4:26 am
by sunilmh
Thanks Mimiko.