X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fldapauthenticator.h;h=8415496fb1de7f6373c4570000d390c55cf0bdca;hb=423e088804d243368074ab218b2bda2fff3303c9;hp=a0c8720dfd880f4632404ca051dada544f26dfe6;hpb=fdf6853d42bbd3279d5bc85df9006145382b0ea6;p=quassel.git diff --git a/src/core/ldapauthenticator.h b/src/core/ldapauthenticator.h index a0c8720d..8415496f 100644 --- a/src/core/ldapauthenticator.h +++ b/src/core/ldapauthenticator.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -26,15 +26,21 @@ * */ -#ifndef LDAPAUTHENTICATOR_H -#define LDAPAUTHENTICATOR_H +#pragma once #include "authenticator.h" #include "core.h" // Link against LDAP. +/* We should use openldap on windows if at all possible, rather than trying to + * write some kind of compatiblity routine. +#ifdef Q_CC_MSVC +#include +#include +#else*/ #include +//#endif // Default LDAP server port. #define DEFAULT_LDAP_PORT 389 @@ -50,6 +56,7 @@ public: public slots: /* General */ bool isAvailable() const; + QString backendId() const; QString displayName() const; QString description() const; virtual QStringList setupKeys() const; @@ -62,7 +69,7 @@ public slots: UserId validateUser(const QString &user, const QString &password); protected: - virtual void setConnectionProperties(const QVariantMap &properties); + virtual void setAuthProperties(const QVariantMap &properties); bool ldapConnect(); void ldapDisconnect(); bool ldapAuth(const QString &username, const QString &password); @@ -86,6 +93,3 @@ private: LDAP *_connection; }; - - -#endif