From 456322a61319a10aaedda5244488ea4e5aa5cb64 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 13 Aug 2019 17:06:58 +0200 Subject: [PATCH] s3:libads: Use ldap_add_ext_s() in ads_gen_add() ldap_add_s() is marked as deprecated. Signed-off-by: Andreas Schneider Reviewed-by: Alexander Bokovoy --- source3/libads/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 6942106a3c3..42c37d9e9d2 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); -- 2.47.3