# Percona ldap authentication

**URL:** <https://forums.percona.com/t/percona-ldap-authentication/30495>\
**Category:** Uncategorized\
**Created:** [May 22, 2024, 3:14pm UTC](https://forums.percona.com/t/percona-ldap-authentication/30495 "2024-05-22T15:14:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manilal\_Ramanujan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/manilal_ramanujan/32/16545_2.png) [@Manilal\_Ramanujan](https://forums.percona.com/u/Manilal_Ramanujan)\
**Post date:** [May 22, 2024, 3:14pm UTC](https://forums.percona.com/t/percona-ldap-authentication/30495/1 "2024-05-22T15:14:00Z")

</div>

CREATE USER ‘manilal\_cfn’@‘localhost’ IDENTIFIED WITH authentication\_ldap\_simple BY ‘uid=manilal\_cfn,dc=idm,dc=genasys,dc=sandbox’;

The Percona MySQL Docker container has been successfully set up. However, I would like to integrate LDP authentication within Percona. To this end, I have added the following plugins:  
plugin-load-add=authentication\_ldap\_simple.so  
authentication\_ldap\_simple\_server\_host = 10.133.######"  
authentication\_ldap\_simple\_bind\_base\_dn=“dc=idm,dc=genasys,dc=sandbox”

after loading these plugins…

I have created user in Percona Mysql - ‘ldapuser’@‘localhost’, identified with authentication\_ldap\_simple BY ‘uid=ldapuser,dc=idm,dc=genasys,dc=sandbox’,

after created the user , i tried to login the percona  
mysql -h localhost -u ldapuser -p

i got error like below ,

“Authentication plugin ‘mysql\_clear\_password’ cannot be loaded: plugin not enabled”

I added a plugin to my.cnf, “plugin-load-add=mysql\_clear\_password.so,”  
however when the plugin attempted to load a Docker container, I received the error below,

“Authentication plugin’mysql\_clear\_password’ cannot be loaded: plugin not enabled.”

[ERROR] [MY-010901] [Redacted Server] It is not possible to open the shared library ‘/usr/lib64/mysql/plugin/authentication\_plugin’ (errno: 2: “Cannot open shared object file: No such file or directory”).  
| 2024-05-22T13:31:08.106541Z gem-dev-east-percona-1-percona-pxc 0 [ERROR] [MY-010736] [Redacted Server] Plugin’mysql\_clear\_password’ with soname ‘authentication\_plugin’ could not be loaded.

any assistance with this?

---

<div class="post-metadata">

**Author:** ![jaimes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jaimes/32/20419_2.png) [@jaimes](https://forums.percona.com/u/jaimes)\
**Post date:** [May 5, 2026, 4:54am UTC](https://forums.percona.com/t/percona-ldap-authentication/30495/2 "2026-05-05T04:54:29Z")

</div>

> [@Manilal\_Ramanujan](#):
>
> mysql -h localhost -u ldapuser -p

Hello,

To enable the cleartext plugin, you will need to run mysql command in this manner:

`mysql -h localhost -u ldapuser -p --enable-cleartext-plugin`
