pam time restriction for openvpn login

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
jadawin
OpenVpn Newbie
Posts: 1
Joined: Thu Nov 03, 2011 6:41 am

pam time restriction for openvpn login

Post by jadawin » Thu Nov 03, 2011 6:54 am

Hi,

I try to restrict login to openvpn by time.

I uncommented this line in /etc/pam.d/openvpnas :
account requisite pam_time.so
I added this line in /etc/security/time.conf :
*;*;zou;!Al0000-2400
In theory, user "zou" must not be able to login to openVPN (this is a test setting) but this is not working...

What am I missing in this configuration ?

Thanks for your help.

Post Reply