Openvpn pam authetication - two process created

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 pam authetication - two process created

Post by sunilmh » Wed Oct 05, 2011 6:33 am

Hi,

I am running openvpn server by enabling pam authetication for the login functaionlity.
Following statement added in my server.conf file
plugin /usr/local/src/openvpn-2.1.4/plugin/auth-pam/openvpn-auth-pam.so login

When i check my process list it shows two openvpn processes, as shown below,
root 14461 0.0 0.0 5400 432 pts/1 S 11:07 0:00 /usr/local/sbin/openvpn --daemon --writepid /var/run/openvpn/server.pid --config /usr/local/src/openvpn-2.1.4/sample-config-files/server.conf --cd /usr/local/src/openvpn-2.1.4/sample-config-files
root 14467 0.0 0.2 5784 1292 ? Ss 11:07 0:00 /usr/local/sbin/openvpn --daemon --writepid /var/run/openvpn/server.pid --config /usr/local/src/openvpn-2.1.4/sample-config-files/server.conf --cd /usr/local/src/openvpn-2.1.4/sample-config-files
Can anyone help me out in understanding why it creates two processes when I enable pam authetication plugin.

Thanks,
Sunil

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

Re: Openvpn pam authetication - two process created

Post by janjust » Wed Oct 05, 2011 9:05 pm

openvpn plugins are run in a separate process (by design). This is one of the main reasons why plugins are often faster compared to a scripting (non plugin) setup.

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

Re: Openvpn pam authetication - two process created

Post by sunilmh » Fri Oct 07, 2011 4:33 am

Thanks Jan.

Post Reply