OpenVPN PAM authentication error

Discussion in 'Application Software' started by paul3200, Mar 13, 2016.

Tags:
  1. paul3200

    paul3200 Guest

    #1 paul3200, Mar 13, 2016
    Last edited by a moderator: Apr 20, 2017
    I am trying to setup PAM authentication on my openVPN instance running on Ubuntu Server 15.04 but i keep getting an authentication failed error,
    am i missing anything?

    Server conf
    Code:
    port 1194
    proto udp
    dev tun
    sndbuf 0
    rcvbuf 0
    ca ca.crt
    cert server.crt
    key server.key
    dh dh.pem
    topology subnet
    server 10.8.0.0 255.255.255.0
    ifconfig-pool-persist ipp.txt
    push "redirect-gateway def1 bypass-dhcp"
    keepalive 10 120
    comp-lzo
    persist-key
    persist-tun
    status openvpn-status.log
    verb 0
    crl-verify crl.pem
    plugin /etc/openvpn/openvpn-plugin-auth-pam.so login
    log-append /var/log/openvpn.log
    Client conf
    Code:
    client
    dev tun
    proto udp
    sndbuf 0
    rcvbuf 0
    remote my.server 1194
    resolv-retry infinite
    nobind
    persist-key
    persist-tun
    remote-cert-tls server
    comp-lzo
    verb 3
    auth-user-pass
    
    <ca>
    
    
    
    </ca>
    <cert>
    
    
    </cert>
    <key>
    
    
    
    </key>
    
    (server ip and certs removed)