s3:pdb_ldap: fix bug 7505 - init_sam_from_ldap stores group in sid2uid cache
authorMichael Adam <obnox@samba.org>
Thu, 10 Jun 2010 09:56:15 +0000 (11:56 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 10 Jun 2010 10:02:05 +0000 (12:02 +0200)
source3/passdb/pdb_ldap.c

index 9e85ca67edfc712e5f7665b0c7225fd304104b4f..b81d1e6b927feb94bfa3bebe40f34df1593d0cdc 100644 (file)
@@ -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);
                }
        }