summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-08-24 11:25:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:13 -0500
commit361938d5b2769cc24f59b79826d5e2d33a8b20a0 (patch)
treef1fb8394742561b0f2786a6fea995c40ab07a808 /source3/nsswitch
parentf1041f98ced8ef50373ca37d541d7ca8b1d46638 (diff)
downloadsamba-361938d5b2769cc24f59b79826d5e2d33a8b20a0.tar.gz
samba-361938d5b2769cc24f59b79826d5e2d33a8b20a0.tar.bz2
samba-361938d5b2769cc24f59b79826d5e2d33a8b20a0.zip
r24649: Attempt to fix bug 4917. Simo, please check!
Thanks Patrick Rynhart for reporting this. (This used to be commit b7c0404893bb789382a11f86d5156c4623a6de3a)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/idmap_ldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/idmap_ldap.c b/source3/nsswitch/idmap_ldap.c
index f50dd3a19b..1701b68330 100644
--- a/source3/nsswitch/idmap_ldap.c
+++ b/source3/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 */