]> git.netwichtig.de Git - user/henk/code/inspircd.git/commit
m_ldapauth: fix providing username in PASS
authorAdam <Adam@anope.org>
Mon, 20 Mar 2017 13:35:13 +0000 (09:35 -0400)
committerAdam <Adam@anope.org>
Mon, 20 Mar 2017 13:40:28 +0000 (09:40 -0400)
commit3f1eb79c7fa82737fda9c9a712724ba2f27651e9
treea870a304fea0cee9dab6029d56449198ce4b8ea9
parent466ba4100ae8f18470fdf8f1b3def5aa5f9a5cbb
m_ldapauth: fix providing username in PASS

This has never worked because it never prepended attribute= to the
search string. It also would prefer matching nick/ident over the user
string provided which is inconsistent, since your ability to
authenticate using PASS would depend on a ldap entry not existing with
your current nick/ident.

Instead, use username provided in PASS and then fallback to nick/ident.
src/modules/extra/m_ldapauth.cpp