diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-08-08 20:50:35 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:36 -0500 |
commit | d802774e02ed4a68d61b9fa3b95164221dd50112 (patch) | |
tree | f55d6fad5bee4140c7fe3dee938a71e40a3854e6 /source3/groupdb | |
parent | 4fb4ef919827eb6ba9fdbfdbe9b2c0d4bb43170e (diff) | |
download | samba-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/groupdb')
-rw-r--r-- | source3/groupdb/mapping.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index 67b550680c..643c6e517c 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -134,31 +134,6 @@ static BOOL add_mapping_entry(GROUP_MAP *map, int flag) } /**************************************************************************** -initialise first time the mapping list -****************************************************************************/ -NTSTATUS add_initial_entry(gid_t gid, const char *sid, enum SID_NAME_USE sid_name_use, const char *nt_name, const char *comment) -{ - GROUP_MAP map; - - if(!init_group_mapping()) { - DEBUG(0,("failed to initialize group mapping\n")); - return NT_STATUS_UNSUCCESSFUL; - } - - map.gid=gid; - if (!string_to_sid(&map.sid, sid)) { - DEBUG(0, ("string_to_sid failed: %s", sid)); - return NT_STATUS_UNSUCCESSFUL; - } - - map.sid_name_use=sid_name_use; - fstrcpy(map.nt_name, nt_name); - fstrcpy(map.comment, comment); - - return pdb_add_group_mapping_entry(&map); -} - -/**************************************************************************** Map a unix group to a newly created mapping ****************************************************************************/ NTSTATUS map_unix_group(const struct group *grp, GROUP_MAP *pmap) |