# LDAP Authentication to Active Directory

**URL:** https://forums.percona.com/t/ldap-authentication-to-active-directory/32406
**Category:** MySQL & MariaDB
**Tags:** mysql
**Created:** [August 18, 2024, 8:01pm UTC](https://forums.percona.com/t/ldap-authentication-to-active-directory/32406 "2024-08-18T20:01:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![moonark](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@moonark](https://forums.percona.com/u/moonark)
#### Post date: [August 18, 2024, 8:01pm UTC](https://forums.percona.com/t/ldap-authentication-to-active-directory/32406/1 "2024-08-18T20:01:08Z")

</div>

I recently started using Percona in lieu of vanilla MySQL. Upon enabling the LDAP plugin I keep getting this in the error.log file. Curious if anyone got Active Directory working with Percona/LDAP. I’m using Simple Bind with and without SSL and the same thing persists.

2024-08-18T19:49:05.608397Z 14 [ERROR] [MY-000000] [Server] Plugin authentication\_ldap\_simple reported: ‘: ldap\_initialize Bad parameter to an ldap routine’  
2024-08-18T19:49:05.608451Z 14 [Warning] [MY-000000] [Server] Plugin authentication\_ldap\_simple reported: ‘: LDAP user authentication failed for [testuser] as [cn=test user,ou=Users,ou=HQ,dc=organization,dc=com]’

Curious what would be causing this error and if anyone has seen it or know how to get around to get AD working

---

<div class="post-metadata">

### Author: ![moonark](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@moonark](https://forums.percona.com/u/moonark)
#### Post date: [August 20, 2024, 3:06am UTC](https://forums.percona.com/t/ldap-authentication-to-active-directory/32406/2 "2024-08-20T03:06:16Z")

</div>

OK this is no longer an issue. I wasn’t specifying the database so auth was failing.
