summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-08 20:50:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:36 -0500
commitd802774e02ed4a68d61b9fa3b95164221dd50112 (patch)
treef55d6fad5bee4140c7fe3dee938a71e40a3854e6 /source3/passdb
parent4fb4ef919827eb6ba9fdbfdbe9b2c0d4bb43170e (diff)
downloadsamba-d802774e02ed4a68d61b9fa3b95164221dd50112.tar.gz
samba-d802774e02ed4a68d61b9fa3b95164221dd50112.tar.bz2
samba-d802774e02ed4a68d61b9fa3b95164221dd50112.zip
r17465: Get rid of add_initial_entry. In the two places it was called in it seemed a
bit pointless to me. Volker (This used to be commit 244b25ae49d3c635fc54498dbee29f5b649ea1fa)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_interface.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index 6a9d072fbb..8d287cf2ec 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -584,7 +584,7 @@ static NTSTATUS pdb_default_create_dom_group(struct pdb_methods *methods,
const char *name,
uint32 *rid)
{
- DOM_SID group_sid;
+ GROUP_MAP map;
struct group *grp;
grp = getgrnam(name);
@@ -611,10 +611,12 @@ static NTSTATUS pdb_default_create_dom_group(struct pdb_methods *methods,
}
}
- sid_compose(&group_sid, get_global_sam_sid(), *rid);
-
- return add_initial_entry(grp->gr_gid, sid_string_static(&group_sid),
- SID_NAME_DOM_GRP, name, NULL);
+ map.gid = grp->gr_gid;
+ map.sid_name_use = SID_NAME_DOM_GRP;
+ sid_compose(&map.sid, get_global_sam_sid(), *rid);
+ fstrcpy(map.nt_name, name);
+ map.comment[0] = '\0';
+ return pdb_add_group_mapping_entry(&map);
}
NTSTATUS pdb_create_dom_group(TALLOC_CTX *mem_ctx, const char *name,