X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fldapauthenticator.cpp;h=0eedc3c99691b7379000be3ae514dae9a131663f;hb=a0c7fa7aa8a01c92b655984e3b6012f7d57e8e52;hp=31221fd76873fb0ac020803bee1ae3ac0fcc148a;hpb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;p=quassel.git diff --git a/src/core/ldapauthenticator.cpp b/src/core/ldapauthenticator.cpp index 31221fd7..0eedc3c9 100644 --- a/src/core/ldapauthenticator.cpp +++ b/src/core/ldapauthenticator.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -28,7 +28,6 @@ #include "ldapauthenticator.h" -#include "logmessage.h" #include "network.h" #include "quassel.h" @@ -129,7 +128,7 @@ UserId LdapAuthenticator::validateUser(const QString& username, const QString& p // Users created via LDAP have empty passwords, but authenticator column = LDAP. // On the other hand, if auth succeeds and the user already exists, do a final // cross-check to confirm we're using the right auth provider. - UserId quasselId = Core::validateUser(lUsername, QString()); + UserId quasselId = Core::getUserId(lUsername); if (!quasselId.isValid()) { return Core::addUser(lUsername, QString(), backendId()); } @@ -152,11 +151,11 @@ Authenticator::State LdapAuthenticator::init(const QVariantMap& settings, const bool status = ldapConnect(); if (!status) { - quInfo() << qPrintable(backendId()) << "authenticator cannot connect."; + qInfo() << qPrintable(backendId()) << "authenticator cannot connect."; return NotAvailable; } - quInfo() << qPrintable(backendId()) << "authenticator is ready."; + qInfo() << qPrintable(backendId()) << "authenticator is ready."; return IsReady; } @@ -177,7 +176,7 @@ bool LdapAuthenticator::ldapConnect() serverURIArray = serverURI.toLocal8Bit(); res = ldap_initialize(&_connection, serverURIArray); - quInfo() << "LDAP: Connecting to" << serverURI; + qInfo() << "LDAP: Connecting to" << serverURI; if (res != LDAP_SUCCESS) { qWarning() << "Could not connect to LDAP server:" << ldap_err2string(res);