X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fldapauthenticator.cpp;h=227df19dd3dc2837b83c44bb9bce45653d2a603e;hp=d79ebf18ec7933eda7d908f00b430d7dc59ee55a;hb=423e088804d243368074ab218b2bda2fff3303c9;hpb=f77a0b720ed58a2b68876b9320742b81b6df871f diff --git a/src/core/ldapauthenticator.cpp b/src/core/ldapauthenticator.cpp index d79ebf18..227df19d 100644 --- a/src/core/ldapauthenticator.cpp +++ b/src/core/ldapauthenticator.cpp @@ -65,13 +65,19 @@ bool LdapAuthenticator::isAvailable() const QString LdapAuthenticator::backendId() const { - // We identify the backend to use for the monolithic core by its displayname. + // We identify the backend to use for the monolithic core by this identifier. // so only change this string if you _really_ have to and make sure the core // setup for the mono client still works ;) return QString("LDAP"); } +QString LdapAuthenticator::displayName() const +{ + return tr("LDAP"); +} + + QString LdapAuthenticator::description() const { return tr("Authenticate users using an LDAP server."); @@ -102,7 +108,7 @@ QVariantMap LdapAuthenticator::setupDefaults() const } -void LdapAuthenticator::setConnectionProperties(const QVariantMap &properties) +void LdapAuthenticator::setAuthProperties(const QVariantMap &properties) { _hostName = properties["Hostname"].toString(); _port = properties["Port"].toInt(); @@ -142,7 +148,7 @@ UserId LdapAuthenticator::validateUser(const QString &username, const QString &p bool LdapAuthenticator::setup(const QVariantMap &settings) { - setConnectionProperties(settings); + setAuthProperties(settings); bool status = ldapConnect(); return status; } @@ -150,7 +156,7 @@ bool LdapAuthenticator::setup(const QVariantMap &settings) Authenticator::State LdapAuthenticator::init(const QVariantMap &settings) { - setConnectionProperties(settings); + setAuthProperties(settings); bool status = ldapConnect(); if (!status) {