summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config_host.mk.in1
-rw-r--r--extensions/Library_ldapbe2.mk1
-rw-r--r--extensions/source/config/ldap/ldapuserprofilebe.cxx6
3 files changed, 6 insertions, 2 deletions
diff --git a/config_host.mk.in b/config_host.mk.in
index 9bde2ff2a214..28d3ae3d2626 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -147,6 +147,7 @@ export DISABLE_GUI=@DISABLE_GUI@
export ENABLE_HTMLHELP=@ENABLE_HTMLHELP@
export ENABLE_IOS_LIBREOFFICELIGHT_APP=@ENABLE_IOS_LIBREOFFICELIGHT_APP@
export ENABLE_JAVA=@ENABLE_JAVA@
+export ENABLE_LDAP=@ENABLE_LDAP@
export ENABLE_LPSOLVE=@ENABLE_LPSOLVE@
export ENABLE_LTO=@ENABLE_LTO@
export ENABLE_LWP=@ENABLE_LWP@
diff --git a/extensions/Library_ldapbe2.mk b/extensions/Library_ldapbe2.mk
index 5ea5a9597101..e76dcc21a5dd 100644
--- a/extensions/Library_ldapbe2.mk
+++ b/extensions/Library_ldapbe2.mk
@@ -33,6 +33,7 @@ $(eval $(call gb_Library_use_libraries,ldapbe2,\
cppu \
salhelper \
sal \
+ tl \
))
ifeq ($(OS),WNT)
diff --git a/extensions/source/config/ldap/ldapuserprofilebe.cxx b/extensions/source/config/ldap/ldapuserprofilebe.cxx
index cbf04fd6b027..9e5460b7b5fd 100644
--- a/extensions/source/config/ldap/ldapuserprofilebe.cxx
+++ b/extensions/source/config/ldap/ldapuserprofilebe.cxx
@@ -26,6 +26,7 @@
#include <rtl/ustrbuf.hxx>
#include <rtl/byteseq.h>
#include <sal/log.hxx>
+#include <tools/diagnose_ex.h>
#include <rtl/instance.hxx>
#include <com/sun/star/beans/NamedValue.hpp>
@@ -138,9 +139,10 @@ bool LdapUserProfileBe::readLdapConfiguration(
getLdapStringParam(xAccess, kUser, definition->mAnonUser);
getLdapStringParam(xAccess, kPassword, definition->mAnonCredentials);
}
- catch (const uno::Exception & e)
+ catch (const uno::Exception&)
{
- SAL_WARN("extensions.config", "LdapUserProfileBackend: access to configuration data failed: " << e);
+ css::uno::Any ex(DbgGetCaughtException());
+ SAL_WARN("extensions.config", "LdapUserProfileBackend: access to configuration data failed: " << exceptionToString(ex));
return false;
}