X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fldapauthenticator.h;h=c46b76cc978efcf088438b10c7d03242c0158f77;hb=fcacaaf16551524c7ebb6114254d005274cc3d63;hp=4e586129054a2165f649a3e680faea4bd4ceffde;hpb=cfbd4daee17dbb3c4052d938bf33edd08711d728;p=quassel.git diff --git a/src/core/ldapauthenticator.h b/src/core/ldapauthenticator.h index 4e586129..c46b76cc 100644 --- a/src/core/ldapauthenticator.h +++ b/src/core/ldapauthenticator.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -50,7 +50,7 @@ class LdapAuthenticator : public Authenticator Q_OBJECT public: - LdapAuthenticator(QObject *parent = 0); + LdapAuthenticator(QObject *parent = nullptr); ~LdapAuthenticator() override; public slots: @@ -63,12 +63,15 @@ public slots: bool canChangePassword() const override { return false; } - bool setup(const QVariantMap &settings = {}) override; - State init(const QVariantMap &settings = {}) 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); + void setAuthProperties(const QVariantMap &properties, const QProcessEnvironment &environment, + bool loadFromEnvironment); bool ldapConnect(); void ldapDisconnect(); bool ldapAuth(const QString &username, const QString &password);