summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-10 11:56:15 +0200
committerMichael Adam <obnox@samba.org>2010-06-10 12:02:05 +0200
commitba809ecb8ab217e4376bf75d2300e146b62b88eb (patch)
treeb8db047ad3e773efe99fccff9fc967d51166cd2c
parent1819beb0887d7ee75318d330124c13b2ad2d830b (diff)
downloadsamba-ba809ecb8ab217e4376bf75d2300e146b62b88eb.tar.gz
samba-ba809ecb8ab217e4376bf75d2300e146b62b88eb.tar.bz2
samba-ba809ecb8ab217e4376bf75d2300e146b62b88eb.zip
s3:pdb_ldap: fix bug 7505 - init_sam_from_ldap stores group in sid2uid cache
-rw-r--r--source3/passdb/pdb_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 9e85ca67ed..b81d1e6b92 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -1107,7 +1107,7 @@ static bool init_sam_from_ldap(struct ldapsam_privates *ldap_state,
if (primary_gsid && sid_equal(primary_gsid, &mapped_gsid)) {
store_gid_sid_cache(primary_gsid,
sampass->unix_pw->pw_gid);
- idmap_cache_set_sid2uid(primary_gsid,
+ idmap_cache_set_sid2gid(primary_gsid,
sampass->unix_pw->pw_gid);
}
}