Openvpn dual authetication

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
sunilmh
OpenVPN User
Posts: 31
Joined: Tue May 24, 2011 6:32 am

Openvpn dual authetication

Post by sunilmh » Wed Oct 19, 2011 12:19 pm

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

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Openvpn dual authetication

Post by Mimiko » Wed Oct 19, 2011 5:54 pm

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.

sunilmh
OpenVPN User
Posts: 31
Joined: Tue May 24, 2011 6:32 am

Re: Openvpn dual authetication

Post by sunilmh » Fri Oct 21, 2011 4:26 am

Thanks Mimiko.

Post Reply