From ba8a15adcde58a7db5e00790a55803be9d6d2fda Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 16 Apr 2021 11:50:51 +0100 Subject: [PATCH] Fix using a different field name in ldapauth than is documented. Closes #1864. --- src/modules/m_ldapauth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_ldapauth.cpp b/src/modules/m_ldapauth.cpp index 8fc0ca0b0..4885bc0e5 100644 --- a/src/modules/m_ldapauth.cpp +++ b/src/modules/m_ldapauth.cpp @@ -331,7 +331,7 @@ public: vhost = tag->getString("host"); // Set to true if failed connects should be reported to operators verbose = tag->getBool("verbose"); - useusername = tag->getBool("userfield"); + useusername = tag->getBool("useusername", tag->getBool("userfield")); LDAP.SetProvider("LDAP/" + tag->getString("dbid")); -- 2.39.2