summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-04-16 11:50:51 +0100
committerSadie Powell <sadie@witchery.services>2021-04-16 11:50:51 +0100
commitba8a15adcde58a7db5e00790a55803be9d6d2fda (patch)
treeec73aa6bc938f15e61dbd09fcf9249773b29c718 /src/modules
parent0960d5e9e37075e44223c627c93a2e1b41ce8f35 (diff)
Fix using a different field name in ldapauth than is documented.
Closes #1864.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_ldapauth.cpp2
1 files changed, 1 insertions, 1 deletions
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"));