X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fldapauthenticator.h;h=37550cd07f05b9416107e415c9cfdd9dac2deaf0;hp=c46b76cc978efcf088438b10c7d03242c0158f77;hb=8961f348947fc55cc4bc769563684af3f2ea7ccc;hpb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f diff --git a/src/core/ldapauthenticator.h b/src/core/ldapauthenticator.h index c46b76cc..37550cd0 100644 --- a/src/core/ldapauthenticator.h +++ b/src/core/ldapauthenticator.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -29,7 +29,6 @@ #pragma once #include "authenticator.h" - #include "core.h" // Link against LDAP. @@ -50,7 +49,7 @@ class LdapAuthenticator : public Authenticator Q_OBJECT public: - LdapAuthenticator(QObject *parent = nullptr); + LdapAuthenticator(QObject* parent = nullptr); ~LdapAuthenticator() override; public slots: @@ -63,18 +62,15 @@ public slots: bool canChangePassword() const override { return false; } - bool setup(const QVariantMap &settings, const QProcessEnvironment &environment, - bool loadFromEnvironment) override; - State init(const QVariantMap &settings, const QProcessEnvironment &environment, - bool loadFromEnvironment) override; - UserId validateUser(const QString &user, const QString &password) override; + bool setup(const QVariantMap& settings, const QProcessEnvironment& environment, bool loadFromEnvironment) override; + State init(const QVariantMap& settings, const QProcessEnvironment& environment, bool loadFromEnvironment) override; + UserId validateUser(const QString& user, const QString& password) override; protected: - void setAuthProperties(const QVariantMap &properties, const QProcessEnvironment &environment, - bool loadFromEnvironment); + void setAuthProperties(const QVariantMap& properties, const QProcessEnvironment& environment, bool loadFromEnvironment); bool ldapConnect(); void ldapDisconnect(); - bool ldapAuth(const QString &username, const QString &password); + bool ldapAuth(const QString& username, const QString& password); // Protected methods for retrieving info about the LDAP connection. QString hostName() const { return _hostName; } @@ -92,5 +88,5 @@ private: QString _uidAttribute; // The actual connection object. - LDAP *_connection {nullptr}; + LDAP* _connection{nullptr}; };