I've noticed, that when using LDAP with saslauthd, saslauthdPath no longer defaults to /var/run/saslauthd/mux starting in MongoDB 4.0.
Authenticating using LDAP fails and I get the following error messages in the log:
2018-06-12T20:18:41.076+0000 E ACCESS [conn1] Failed to bind to LDAP server at default: Can't contact LDAP server. Bind parameters were: {BindDN: automation-agent, authenticationType: simple} 2018-06-12T20:18:41.076+0000 I ACCESS [conn1] SASL PLAIN authentication failed for automation-agent on $external from client 127.0.0.1:43584 ; OperationFailed: LDAP bind failed with error: Can't contact LDAP server
I am able to authenticate successfully if I downgrade to MongoDB 3.6 or specify saslauthdPath.
This is problematic for users upgrading existing LDAP deployments that do not specify saslauthdPath and depend on it defaulting to /var/run/saslauthd/mux. Such deployments will break upon upgrading to MongoDB 4.0