From b7c0404893bb789382a11f86d5156c4623a6de3a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 24 Aug 2007 11:25:38 +0000 Subject: r24649: Attempt to fix bug 4917. Simo, please check! Thanks Patrick Rynhart for reporting this. --- source/nsswitch/idmap_ldap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/nsswitch/idmap_ldap.c') diff --git a/source/nsswitch/idmap_ldap.c b/source/nsswitch/idmap_ldap.c index f50dd3a19b2..1701b683308 100644 --- a/source/nsswitch/idmap_ldap.c +++ b/source/nsswitch/idmap_ldap.c @@ -896,7 +896,7 @@ static NTSTATUS idmap_ldap_unixids_to_sids(struct idmap_domain *dom, struct id_m uidNumber = get_attr_key2string(idpool_attr_list, LDAP_ATTR_UIDNUMBER); gidNumber = get_attr_key2string(idpool_attr_list, LDAP_ATTR_GIDNUMBER); - attr_list = get_attr_list(ctx, sidmap_attr_list); + attr_list = get_attr_list(memctx, sidmap_attr_list); if ( ! ids[1]) { /* if we are requested just one mapping use the simple filter */ @@ -1113,7 +1113,7 @@ static NTSTATUS idmap_ldap_sids_to_unixids(struct idmap_domain *dom, struct id_m uidNumber = get_attr_key2string(idpool_attr_list, LDAP_ATTR_UIDNUMBER); gidNumber = get_attr_key2string(idpool_attr_list, LDAP_ATTR_GIDNUMBER); - attr_list = get_attr_list(ctx, sidmap_attr_list); + attr_list = get_attr_list(memctx, sidmap_attr_list); if ( ! ids[1]) { /* if we are requested just one mapping use the simple filter */ -- cgit