2017-08-09 43 views
0

我想安裝mysql pam插件來使用它進行用戶身份驗證。mysql pam插件錯誤

我試過以下列出的是PAM Pluggable Authentication。但是,我無法安裝插件。

1-添加下列行來my.cnf文件並重新啓動MySQL服務

[mysqld] 
plugin-load=authentication_pam.so 

2-運行下面的語句,如MySQL命令行根用戶。

INSTALL PLUGIN authentication_pam SONAME 'authentication_pam.so'; 

OUTPUT:

ERROR 1126 (HY000): Can't open shared library '/usr/lib/mysql/plugin/authentication_pam.so' (errno: 2 /usr/lib/mysql/plugin/authentication_pam.so: cannot open shared object file: No such file or directory) 

任何幫助表示讚賞。

回答

0

根據MySQL Documentation

MySQL企業版支持的身份驗證方法, 使MySQL服務器使用PAM(插入式驗證模塊)來驗證 MySQL用戶。 PAM使系統能夠使用標準的 接口來訪問各種身份驗證方法,例如 Unix密碼或LDAP目錄。

在企業版中,您可以通過將其添加到配置文件並重新啓動服務來啓用它。

[mysqld] 
plugin-load-add=authentication_pam.so 

或者在運行時或者通過註冊

INSTALL PLUGIN authentication_pam SONAME 'authentication_pam.so'; 

MySQL社區版不具備PAM功能。