summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extensions/source/config/ldap/ldapaccess.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/config/ldap/ldapaccess.cxx b/extensions/source/config/ldap/ldapaccess.cxx
index 6be6ba13c2e2..9675d5f94bda 100644
--- a/extensions/source/config/ldap/ldapaccess.cxx
+++ b/extensions/source/config/ldap/ldapaccess.cxx
@@ -205,7 +205,7 @@ void LdapConnection::initConnection()
LdapErrCode retCode = ldap_search_sW(mConnection,
(PWCHAR) aUserDn.getStr(),
LDAP_SCOPE_BASE,
- L"(objectclass=*)",
+ const_cast<PWCHAR>( L"(objectclass=*)" ),
0,
0, // Attributes + values
&result.msg) ;
@@ -270,7 +270,7 @@ void LdapConnection::initConnection()
LdapMessageHolder result;
#ifdef WNT
- PWCHAR attributes [2] = { L"1.1", NULL };
+ PWCHAR attributes [2] = { const_cast<PWCHAR>( L"1.1" ), NULL };
LdapErrCode retCode = ldap_search_sW(mConnection,
(PWCHAR) mLdapDefinition.mBaseDN.getStr(),
LDAP_SCOPE_SUBTREE,