summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-08-13 17:06:58 +0200
committerKarolin Seeger <kseeger@samba.org>2019-10-16 19:25:11 +0000
commit90566a8ef442fefbd9b8b10789eaebd6349ef266 (patch)
tree6f9afcc4973a42e77d3cd31add6da195c4552e7f /source3
parentadfcddc681564ff278cbbf243f1a245ec62f0dbe (diff)
downloadsamba-90566a8ef442fefbd9b8b10789eaebd6349ef266.tar.gz
s3:libads: Use ldap_add_ext_s() in ads_gen_add()
ldap_add_s() is marked as deprecated. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> (cherry picked from commit 456322a61319a10aaedda5244488ea4e5aa5cb64)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 2110390b65f..66aea348e23 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -1596,7 +1596,7 @@ ADS_STATUS ads_gen_add(ADS_STRUCT *ads, const char *new_dn, ADS_MODLIST mods)
/* make sure the end of the list is NULL */
mods[i] = NULL;
- ret = ldap_add_s(ads->ldap.ld, utf8_dn, (LDAPMod**)mods);
+ ret = ldap_add_ext_s(ads->ldap.ld, utf8_dn, (LDAPMod**)mods, NULL, NULL);
ads_print_error(ret, ads->ldap.ld);
TALLOC_FREE(utf8_dn);
return ADS_ERROR(ret);