]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libads: Use ldap_add_ext_s() in ads_gen_add()
authorAndreas Schneider <asn@samba.org>
Tue, 13 Aug 2019 15:06:58 +0000 (17:06 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 9 Oct 2019 07:06:35 +0000 (07:06 +0000)
ldap_add_s() is marked as deprecated.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/libads/ldap.c

index 6942106a3c327eb2f376ce24c163e6461a8b72e6..42c37d9e9d2fbd96efabe066c6bc08d495be185b 100644 (file)
@@ -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);