From e25a705a9941a1c30caa3375062bbbb81e662896 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 30 Jun 2020 06:54:06 -0400 Subject: [PATCH] s3:winbind:idmap_ad - make failure to get attrnames for schema mode fatal Add check for failure to resolve the OID array for the schema mode into names. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14425 Signed-off-by: Andrew Reviewed-by: Stefan Metzmacher (cherry picked from commit b5b801026edd3a8fd8d0ba1752e891453cf675c9) --- source3/winbindd/idmap_ad.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source3/winbindd/idmap_ad.c b/source3/winbindd/idmap_ad.c index a93c61f54d1..6d879cdf4d7 100644 --- a/source3/winbindd/idmap_ad.c +++ b/source3/winbindd/idmap_ad.c @@ -162,6 +162,14 @@ static TLDAPRC get_attrnames_by_oids(struct tldap_context *ld, } TALLOC_FREE(msgs); + for (i=0; i