Page 1 of 1

Openvpn pam authetication - two process created

Posted: Wed Oct 05, 2011 6:33 am
by sunilmh
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

Re: Openvpn pam authetication - two process created

Posted: Wed Oct 05, 2011 9:05 pm
by janjust
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.

Re: Openvpn pam authetication - two process created

Posted: Fri Oct 07, 2011 4:33 am
by sunilmh
Thanks Jan.