Page 1 of 1

pam time restriction for openvpn login

Posted: Thu Nov 03, 2011 6:54 am
by jadawin
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.