summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ldap.c b/source3/lib/ldap.c
index d0e72c4844..917e03a871 100644
--- a/source3/lib/ldap.c
+++ b/source3/lib/ldap.c
@@ -503,7 +503,7 @@ int smb_ldap_search(struct smb_ldap_privates *ldap_state,
continue;
rc = ldap_search_s(ldap_state->ldap_struct, base, scope,
- filter, attrs, attrsonly, res);
+ filter, (char **)attrs, attrsonly, res);
}
if (rc == LDAP_SERVER_DOWN) {