summaryrefslogtreecommitdiff
path: root/source4/passdb/pdb_ldap.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-01 00:29:13 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-01 00:29:13 +0000
commit8d92b0a392ea0736d893056136ca215cbb994223 (patch)
tree8d23ed4b5977d32a7d952013ddda079cbbec6375 /source4/passdb/pdb_ldap.c
parent7602aa50fd591e63393def79d55302a22e77c387 (diff)
downloadsamba-8d92b0a392ea0736d893056136ca215cbb994223.tar.gz
samba-8d92b0a392ea0736d893056136ca215cbb994223.tar.bz2
samba-8d92b0a392ea0736d893056136ca215cbb994223.zip
got rid of more group mapping code
(This used to be commit 2955ce55ee3bd9a8702a446db3ace20c703c451f)
Diffstat (limited to 'source4/passdb/pdb_ldap.c')
-rw-r--r--source4/passdb/pdb_ldap.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source4/passdb/pdb_ldap.c b/source4/passdb/pdb_ldap.c
index 0136a33871..6bab5b9bca 100644
--- a/source4/passdb/pdb_ldap.c
+++ b/source4/passdb/pdb_ldap.c
@@ -1019,15 +1019,9 @@ static BOOL init_sam_from_ldap (struct ldapsam_privates *ldap_state,
}
if (group_rid == 0 && pdb_get_init_flags(sampass,PDB_GID) != PDB_DEFAULT) {
- GROUP_MAP map;
gid = pdb_get_gid(sampass);
/* call the mapping code here */
- if(pdb_getgrgid(&map, gid, MAPPING_WITHOUT_PRIV)) {
- pdb_set_group_sid(sampass, &map.sid, PDB_SET);
- }
- else {
- pdb_set_group_sid_from_rid(sampass, pdb_gid_to_group_rid(gid), PDB_SET);
- }
+ pdb_set_group_sid_from_rid(sampass, pdb_gid_to_group_rid(gid), PDB_SET);
}
if (!get_single_attribute(ldap_state->ldap_struct, entry, "pwdLastSet", temp)) {