summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2002-02-13 15:00:39 +0000
committerJim McDonough <jmcd@samba.org>2002-02-13 15:00:39 +0000
commitbe48a05ed95f0f4ed02ffb996cb1ecc10811d9a0 (patch)
tree2fd4359e84bbe5898aac6c235ab9dbf7e1ffbad0 /source
parente18a7c26476e05f95850ac2bbeb42c2588115741 (diff)
downloadsamba-be48a05ed95f0f4ed02ffb996cb1ecc10811d9a0.tar.gz
samba-be48a05ed95f0f4ed02ffb996cb1ecc10811d9a0.tar.xz
samba-be48a05ed95f0f4ed02ffb996cb1ecc10811d9a0.zip
Fix LDAP modification operation. Cut and paste error: was LDAP_MOD_ADD, should be LDAP_MOD_REPLACE. Caught by Alexey Kotovich.
Diffstat (limited to 'source')
-rw-r--r--source/libads/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c
index 682524eb4f9..763f1bc354e 100644
--- a/source/libads/ldap.c
+++ b/source/libads/ldap.c
@@ -343,7 +343,7 @@ ADS_STATUS ads_mod_repl_len(TALLOC_CTX *ctx, ADS_MODLIST *mods,
return ADS_ERROR(LDAP_NO_MEMORY);
bval->bv_val = val;
bval->bv_len = size;
- return ads_mod_add_ber(ctx, mods, LDAP_MOD_ADD, name,
+ return ads_mod_add_ber(ctx, mods, LDAP_MOD_REPLACE, name,
bval, NULL);
}
}