# LDAP auth issue

**URL:** <https://forums.percona.com/t/ldap-auth-issue/6063>\
**Category:** Percona Server for MongoDB\
**Created:** [December 8, 2017, 9:03am UTC](https://forums.percona.com/t/ldap-auth-issue/6063 "2017-12-08T09:03:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tferriez](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@tferriez](https://forums.percona.com/u/tferriez)\
**Post date:** [December 8, 2017, 9:03am UTC](https://forums.percona.com/t/ldap-auth-issue/6063/1 "2017-12-08T09:03:22Z")

</div>

Hello all,

I’ve problem to use an LDAP authentication with my MongoDB install. I’ve installed everything according to the documentation, but when i try to authenticate with an external user, i got the following error :

Error: SASL(-4): no mechanism available: No worthy mechs found

Here is some information regarding my installation :

Packet :

cyrus-sasl-lib-2.1.26-21.el7.x86\_64  
cyrus-sasl-devel-2.1.26-21.el7.x86\_64  
cyrus-sasl-gssapi-2.1.26-21.el7.x86\_64  
cyrus-sasl-2.1.26-21.el7.x86\_64

saslauthd file :

SOCKETDIR=/run/saslauthd  
Start=yes  
MECH=“ldap”

/etc/sasl2/mongodb.conf :

pwcheck\_method: saslauthd  
saslauthd\_path: /var/run/saslauthd/mux  
log\_level: 5  
mech\_list: plain

mongod.conf :

setParameter:  
authenticationMechanisms: PLAIN,SCRAM-SHA-1,MONGODB-X509

When i test the authentification with the command testsaslauthd, i got a success.

Thanks in advance for your help.

Thomas

---

<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:** [February 3, 2026, 4:22am UTC](https://forums.percona.com/t/ldap-auth-issue/6063/2 "2026-02-03T04:22:03Z")

</div>

Hello,

You need to install the package **cyrus-sasl-plain** as well. I hope this helps.
