r24649: Attempt to fix bug 4917. Simo, please check!
authorVolker Lendecke <vlendec@samba.org>
Fri, 24 Aug 2007 11:25:38 +0000 (11:25 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:13 +0000 (12:30 -0500)
Thanks Patrick Rynhart for reporting this.
(This used to be commit b7c0404893bb789382a11f86d5156c4623a6de3a)

source3/nsswitch/idmap_ldap.c

index f50dd3a19b2802387db2ba1fd4151f3e796dec3d..1701b683308b35ff57cfa32f247d5f400ec5be03 100644 (file)
@@ -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 */