summaryrefslogtreecommitdiff
path: root/source4/libcli/ldap/ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/ldap/ldap.c')
-rw-r--r--source4/libcli/ldap/ldap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/libcli/ldap/ldap.c b/source4/libcli/ldap/ldap.c
index 63dd7d4c7b..5afd595293 100644
--- a/source4/libcli/ldap/ldap.c
+++ b/source4/libcli/ldap/ldap.c
@@ -596,13 +596,13 @@ static BOOL fill_mods(struct ldap_message *msg, char **chunk)
mod.attrib.name = talloc_strdup(msg->mem_ctx, value.data);
if (strequal(attr_name, "add"))
- mod.type = LDAP_MOD_ADD;
+ mod.type = LDAP_MODIFY_ADD;
if (strequal(attr_name, "delete"))
- mod.type = LDAP_MOD_DELETE;
+ mod.type = LDAP_MODIFY_DELETE;
if (strequal(attr_name, "replace"))
- mod.type = LDAP_MOD_REPLACE;
+ mod.type = LDAP_MODIFY_REPLACE;
if (mod.type == LDAP_MODIFY_NONE) {
DEBUG(2, ("ldif modification type %s unsupported\n",
@@ -1537,6 +1537,7 @@ struct ldap_connection *new_ldap_connection(void)
result->search_entries = NULL;
result->auth_dn = NULL;
result->simple_pw = NULL;
+
return result;
}