我正在尝试安装 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)
感谢任何帮助。
最佳答案
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.
在企业版中,您可以通过将其添加到配置文件并重新启动服务来启用它。
[mysqld]
plugin-load-add=authentication_pam.so
或者通过
在运行时注册INSTALL PLUGIN authentication_pam SONAME 'authentication_pam.so';
MySQL Community Edition 没有 PAM 功能。
关于mysql pam插件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45591647/