X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=035cc4161d2f88eec49db46b5d65dbba9bdf9b7d;hp=c145f5b3957d94022962aa1c61f9fd3110f6156c;hb=931e5280abc6738f94ac052af2a7e31e82487cf1;hpb=61aac1868f15babb7086d8bc6bbcff530346f438 diff --git a/src/core/core.cpp b/src/core/core.cpp index c145f5b3..035cc416 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -33,6 +33,11 @@ #include "sqlitestorage.h" #include "util.h" +// Currently building with LDAP bindings is optional. +#ifdef HAVE_LDAP +#include "ldapauthenticator.h" +#endif + // migration related #include #ifdef Q_OS_WIN @@ -378,8 +383,10 @@ void Core::unregisterStorageBackend(Storage *backend) void Core::registerAuthenticatorBackends() { // Register new authentication backends here! - //registerAuthenticatorBackend(new LdapAuthenticator(this)); - registerAuthenticatorBackend(new SqlAuthenticator(this)); + registerAuthenticatorBackend(new SqlAuthenticator(this)); +#ifdef HAVE_LDAP + registerAuthenticatorBackend(new LdapAuthenticator(this)); +#endif } @@ -392,7 +399,7 @@ bool Core::registerAuthenticatorBackend(Authenticator *authenticator) } else { authenticator->deleteLater(); return false; - } + } } void Core::unregisterAuthenticatorBackends()