#include "sqlitestorage.h"
#include "util.h"
+// Currently building with LDAP bindings is optional.
+#ifdef HAVE_LDAP
+#include "ldapauthenticator.h"
+#endif
+
// migration related
#include <QFile>
#ifdef Q_OS_WIN
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
}
} else {
authenticator->deleteLater();
return false;
- }
+ }
}
void Core::unregisterAuthenticatorBackends()