使用LDAP身份验证配置MySQL失败

时间:2020-05-21 10:57:43

标签: mysql ldap

我跟随该页面使用LDAP身份验证配置MySQL:https://dev.mysql.com/doc/refman/5.7/en/ldap-pluggable-authentication.html#ldap-pluggable-authentication-usage

set global authentication_ldap_simple_server_host ='x.x.x.x'; 设置全局authentication_ldap_simple_bind_base_dn =``dc = example,dc = org'';

通过“ cn = admin,dc = example,dc = org”通过身份验证_ldap_simple创建用户“ admin” @“ localhost”; 在上将GRANT SELECT授予“ admin” @“ localhost”;

但是,当我使用ldap用户“ admin”登录mysql时,登录失败并显示以下错误:

mysql -uadmin -p --enable-cleartext-plugin

拒绝用户'admin'@'localhost'的访问(使用密码:否)

“ admin”用户存在于我的LDAP服务器(OpenLDAP)中。如何解决此身份验证错误?

0 个答案:

没有答案