# Ldapauthentication

**URL:** https://forums.percona.com/t/ldapauthentication/30597
**Category:** Percona Server for MySQL 8.0
**Created:** [May 27, 2024, 10:38am UTC](https://forums.percona.com/t/ldapauthentication/30597 "2024-05-27T10:38:45Z")
**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 27, 2024, 10:38am UTC](https://forums.percona.com/t/ldapauthentication/30597/1 "2024-05-27T10:38:45Z")

</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: ![przemek](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/przemek/32/3_2.png) [@przemek](https://forums.percona.com/u/przemek)
#### Post date: [July 17, 2024, 3:00pm UTC](https://forums.percona.com/t/ldapauthentication/30597/2 "2024-07-17T15:00:32Z")

</div>

> [@Manilal\_Ramanujan](#):
>
> “Authentication plugin ‘mysql\_clear\_password’ cannot be loaded: plugin not enabled”

This is the client side plugin: [https://docs.percona.com/percona-server/8.0/ldap-authentication.html#how-does-the-authentication-work](https://docs.percona.com/percona-server/8.0/ldap-authentication.html#how-does-the-authentication-work)  
What client version is used?  
`mysql --version`
