[OK] user-pass-verify and chroot?
Posted: Wed May 23, 2012 4:59 pm
Hello,
since I put the "chroot attribute", i get in my server (when a client trie to connect) :
server.conf :
before i put "chroot jail" it was ok.. if i comment the last line it's ok... but i want to check that cn=username with my test.sh 
any ideas?
thanks!! (sorry for bad english)
PS : openvpn 2.0 - linux squeeze
since I put the "chroot attribute", i get in my server (when a client trie to connect) :
Code: Select all
Wed May 23 16:41:44 2012 us=69473 xx.xx.xx.xx:36345 TLS Auth Error: user-pass-verify script failed to execute: test.sh
Wed May 23 16:41:44 2012 us=69584 xx.xx.xx.xx:36345 TLS Auth Error: Auth Username/Password verification failed for peer
server.conf :
Code: Select all
..
chroot jail
user nobody
group nogroup
username-as-common-name
plugin /usr/lib/openvpn/openvpn-auth-pam.so openvpn
script-security 2
auth-user-pass-verify /etc/openvpn/test.sh via-env

any ideas?
thanks!! (sorry for bad english)
PS : openvpn 2.0 - linux squeeze