VPN + application authentication SSO

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
harerama
OpenVpn Newbie
Posts: 2
Joined: Thu Oct 27, 2011 12:34 pm

VPN + application authentication SSO

Post by harerama » Thu Oct 27, 2011 12:39 pm

Hello,

I am pretty new to OpenVPN installation - so I may not use appropriate terms in the following description:

I would like to setup an OpenVPN for remote access to a private server (pretty standard so far).
Is there any way of also authenticating users of an application based on the VPN user connected ?

If the user "user1" connects to the server through the VPN tunnel, is there any way of knowning, on the application side, that the current user is "user1" ?

The application is consists of 2 parts: one web-based J2EE application and one industry-specific exchange protocol, but I can change the application to link with an authentication module if needed.

Thanks for your help.

HR

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: VPN + application authentication SSO

Post by maikcat » Thu Oct 27, 2011 1:57 pm

hi there,

if the application server is on a seperate server,
i can only think of assosiating clients ip address with apps usernames (you can make your clients use static ips).

if the application is on the same server with openvpn
you can use some enviromental variables that openvpn also uses...

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

harerama
OpenVpn Newbie
Posts: 2
Joined: Thu Oct 27, 2011 12:34 pm

Re: VPN + application authentication SSO

Post by harerama » Thu Oct 27, 2011 2:12 pm

I thought of using static IP addresses, but I don't find it to be an elegant solution...
I will go this way if nothing else can work.

My point was that, as the user is authenticated when connecting to the VPN, why not propagate this authentication further to the application layer.

My ideal setup would be:
- link VPN and LDAP (easy)
- link application and LDAP to get authorization rights
- use VPN authentication in application layer

So the only authentication arises at VPN connection. Everything is accessible with appropriate rights.

I don't see it as not feasible (theoretically) but was hoping to find some out-of-the box solution or ideas to pick building blocks.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: VPN + application authentication SSO

Post by janjust » Thu Oct 27, 2011 2:18 pm

openvpn can authenticate users against an LDAP database; if you can modify your LDAP database to record the login time then you can use the LDAP database to verify whether a user is logged on or not... this depends largely on your LDAP setup, however.

Post Reply