My first openvpn connect tomy homeasg here the office failed. Looks like a timing problem.
openvpn.log:
2010:03:11-09:06:59 astaro openvpn[5720]: MULTI: multi_create_instance called
2010:03:11-09:06:59 astaro openvpn[5720]: Re-using SSL/TLS context
2010:03:11-09:06:59 astaro openvpn[5720]: LZO compression initialized
2010:03:11-09:06:59 astaro openvpn[5720]: Control Channel MTU parms [ L:1556 D:140 EF:40 EB:0 ET:0 EL:0 ]
2010:03:11-09:06:59 astaro openvpn[5720]: Data Channel MTU parms [ L:1556 D:1450 EF:56 EB:135 ET:0 EL:0 AF:3/1 ]
2010:03:11-09:06:59 astaro openvpn[5720]: Local Options hash (VER=V4): 'a4f12474'
2010:03:11-09:06:59 astaro openvpn[5720]: Expected Remote Options hash (VER=V4): '619088b2'
2010:03:11-09:06:59 astaro openvpn[5720]: TCP connection established with 213.144.15.3:52791
2010:03:11-09:06:59 astaro openvpn[5720]: Socket Buffers: R=[131072->131072] S=[131072->131072]
2010:03:11-09:06:59 astaro openvpn[5720]: TCPv4_SERVER link local: [undef]
2010:03:11-09:06:59 astaro openvpn[5720]: TCPv4_SERVER link remote: 213.144.15.3:52791
2010:03:11-09:07:00 astaro openvpn[5720]: 213.144.15.3:52791 TLS: Initial packet from 213.144.15.3:52791, sid=f953a9d7 baf96246
2010:03:11-09:07:01 astaro openvpn[5720]: 213.144.15.3:52791 VERIFY OK: depth=1, /C=de/L=Stutensee/O=Schiele_Home/CN=Schiele_Home_VPN_CA/emailAddress=nils@schiele-freiburg.de
2010:03:11-09:07:01 astaro openvpn[5720]: 213.144.15.3:52791 VERIFY OK: depth=0, /C=de/L=Stutensee/O=Schiele_Home/CN=nils
2010:03:11-09:07:04 astaro openvpn[5720]: 213.144.15.3:52791 PLUGIN_CALL: POST /usr/lib/openvpn-auth-aua.so/PLUGIN_AUTH_USER_PASS_VERIFY status=1
2010:03:11-09:07:04 astaro openvpn[5720]: 213.144.15.3:52791 PLUGIN_CALL: plugin function PLUGIN_AUTH_USER_PASS_VERIFY failed with status 1: /usr/lib/openvpn-auth-aua.so
2010:03:11-09:07:04 astaro openvpn[5720]: 213.144.15.3:52791 TLS Auth Error: Auth Username/Password verification failed for peer
2010:03:11-09:07:04 astaro openvpn[5720]: 213.144.15.3:52791 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
2010:03:11-09:07:04 astaro openvpn[5720]: 213.144.15.3:52791 [nils] Peer Connection Initiated with 213.144.15.3:52791
2010:03:11-09:07:05 astaro openvpn[5720]: 213.144.15.3:52791 PUSH: Received control message: 'PUSH_REQUEST'
2010:03:11-09:07:05 astaro openvpn[5720]: 213.144.15.3:52791 Delayed exit in 5 seconds
2010:03:11-09:07:05 astaro openvpn[5720]: 213.144.15.3:52791 SENT CONTROL [nils]: 'AUTH_FAILED' (status=1)
2010:03:11-09:07:05 astaro openvpn[5720]: 213.144.15.3:52791 Connection reset, restarting [0]
2010:03:11-09:07:05 astaro openvpn[5720]: 213.144.15.3:52791 SIGUSR1[soft,connection-reset] received, client-instance restarting
2010:03:11-09:07:05 astaro openvpn[5720]: TCP/UDP: Closing socket
aua.log:
2010:03:11-09:07:01 astaro aua[30683]: id="3006" severity="info" sys="System" sub="auth" name="Trying 192.168.4.253 (ldap)"
2010:03:11-09:07:04 astaro aua[30683]: id="3004" severity="info" sys="System" sub="auth" name="Authentication successful" srcip="0.0.0.0" user="nils" caller="openvpn" engine="ldap"
Users are authenticated by using a backend ldap server.
The second try works without any problem.