我正在尝试安装mysql pam插件以将其用于用户身份验证。
我尝试过以下PAM Pluggable Authentication中列出的内容。但是,我无法安装插件。
1 - 在my.cnf中添加以下行并重新启动mysql服务
[mysqld]
plugin-load=authentication_pam.so
2-在mysql命令行中以root用户身份运行以下语句。
INSTALL PLUGIN authentication_pam SONAME 'authentication_pam.so';
输出:
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 :(得分:0)
According to MySQL Documentation
MySQL Enterprise Edition supports an authentication method that enables MySQL Server to use PAM (Pluggable Authentication Modules) to authenticate MySQL users. PAM enables a system to use a standard interface to access various kinds of authentication methods, such as Unix passwords or an LDAP directory.
In Enterprise Edition you can get enable it by adding it to config file and restarting the service.
[mysqld]
plugin-load-add=authentication_pam.so
Or alternatively register at run-time by
INSTALL PLUGIN authentication_pam SONAME 'authentication_pam.so';
MySQL Community Edition does not have PAM feature.