歡迎您光臨本站 註冊首頁

OpenVPN使用User/Pass驗證登錄----不成功

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

OpenVPN使用User/Pass驗證登錄----不成功

參考《OpenVPN使用User/Pass驗證登錄》http://www.chinaunix.net/jh/50/513004.html 想做個VPN,可是才到「測試pam_mysql是否工作正常」就通不過,總是提示如下:
# testsaslauthd -u elm -p elm -s openvpn
0: NO "authentication failed"
Google了很久找不到合理的辦法,求教之,以下是我的日誌:
Apr 17 10:57:26 vpn saslauthd: PAM (openvpn) illegal module type: ===================CUT
Apr 17 10:57:26 vpn saslauthd: PAM pam_parse: expecting return value; [...Here================]
Apr 17 10:57:26 vpn saslauthd: PAM (openvpn) no module name supplied
Apr 17 10:57:26 vpn saslauthd: PAM unable to dlopen(<*unknown module path*>)
Apr 17 10:57:26 vpn saslauthd: PAM
Apr 17 10:57:26 vpn saslauthd: PAM adding faulty module: <*unknown module path*>
Apr 17 10:57:26 vpn saslauthd: PAM (openvpn) illegal module type: ==================Cut
Apr 17 10:57:26 vpn saslauthd: PAM pam_parse: expecting return value; [...Here=================]
Apr 17 10:57:26 vpn saslauthd: PAM (openvpn) no module name supplied
Apr 17 10:57:26 vpn saslauthd: PAM (openvpn) illegal module type: crypt(0)
Apr 17 10:57:26 vpn saslauthd: PAM pam_parse: expecting return value; [...--]
Apr 17 10:57:26 vpn saslauthd: PAM unable to dlopen(/lib/security/Used)
Apr 17 10:57:26 vpn saslauthd: PAM
Apr 17 10:57:26 vpn saslauthd: PAM adding faulty module: /lib/security/Used
Apr 17 10:57:26 vpn saslauthd: PAM (openvpn) illegal module type: 0
Apr 17 10:57:26 vpn saslauthd: PAM pam_parse: expecting return value; [...=]
Apr 17 10:57:26 vpn saslauthd: PAM unable to dlopen(/lib/security/No)
Apr 17 10:57:26 vpn saslauthd: PAM
Apr 17 10:57:26 vpn saslauthd: PAM adding faulty module: /lib/security/No
Apr 17 10:57:26 vpn saslauthd: PAM (openvpn) illegal module type: 1
Apr 17 10:57:26 vpn saslauthd: PAM pam_parse: expecting return value; [...=]
Apr 17 10:57:26 vpn saslauthd: PAM unable to dlopen(/lib/security/Use)
Apr 17 10:57:26 vpn saslauthd: PAM
Apr 17 10:57:26 vpn saslauthd: PAM adding faulty module: /lib/security/Use
Apr 17 10:57:26 vpn saslauthd: PAM (openvpn) illegal module type: 2
Apr 17 10:57:26 vpn saslauthd: PAM pam_parse: expecting return value; [...=]
Apr 17 10:57:26 vpn saslauthd: pam_sm_authenticate called.
Apr 17 10:57:26 vpn saslauthd: dbuser changed.
Apr 17 10:57:26 vpn saslauthd: dbpasswd changed.
Apr 17 10:57:26 vpn saslauthd: host changed.
Apr 17 10:57:26 vpn saslauthd: database changed.
Apr 17 10:57:26 vpn saslauthd: table changed.
Apr 17 10:57:26 vpn saslauthd: usercolumn changed.
Apr 17 10:57:26 vpn saslauthd: passwdcolumn changed.
Apr 17 10:57:26 vpn saslauthd: where changed.
Apr 17 10:57:26 vpn saslauthd: sqllog changed.
Apr 17 10:57:26 vpn saslauthd: crypt changed.
Apr 17 10:57:26 vpn saslauthd: db_connect  called.
Apr 17 10:57:26 vpn saslauthd: returning 0 .
Apr 17 10:57:26 vpn saslauthd: db_checkpasswd called.
Apr 17 10:57:26 vpn saslauthd: pam_mysql: where clause = active=1
Apr 17 10:57:26 vpn saslauthd: SELECT password FROM vpnuser WHERE name='elm' AND (active=1)
Apr 17 10:57:26 vpn saslauthd: returning 7 .
Apr 17 10:57:26 vpn saslauthd: returning 7 after db_checkpasswd.
Apr 17 10:57:26 vpn saslauthd: do_auth         : auth failure:
《解決方案》

你多複製了東西吧

======開始的這兩行不用複製的

[火星人 ] OpenVPN使用User/Pass驗證登錄----不成功已經有880次圍觀

http://coctec.com/docs/service/show-post-31083.html