From: Sadie Powell Date: Fri, 16 Apr 2021 10:50:51 +0000 (+0100) Subject: Fix using a different field name in ldapauth than is documented. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=sidebyside;h=ba8a15adcde58a7db5e00790a55803be9d6d2fda;p=user%2Fhenk%2Fcode%2Finspircd.git Fix using a different field name in ldapauth than is documented. Closes #1864. --- 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"));