]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix using a different field name in ldapauth than is documented.
authorSadie Powell <sadie@witchery.services>
Fri, 16 Apr 2021 10:50:51 +0000 (11:50 +0100)
committerSadie Powell <sadie@witchery.services>
Fri, 16 Apr 2021 10:50:51 +0000 (11:50 +0100)
Closes #1864.

src/modules/m_ldapauth.cpp

index 8fc0ca0b01f9639b2c5b2e0e525cc18fc46b1c37..4885bc0e5d484b06b369e7c0d55f124287db568e 100644 (file)
@@ -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"));