s3:passdb/pdb_util make pdb_create_builtin consider whether backend deals with BUILTIN
authorChristian Ambach <ambi@samba.org>
Tue, 18 Jun 2013 15:06:52 +0000 (17:06 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 21 Jun 2013 10:49:10 +0000 (12:49 +0200)
commitad86e2a599812bc7b7d0037d3acd3f3e6973c4be
tree42e35c8926f98b464f72119a247f846d95dd74f8
parent2d2d13ee6104f21fa4a3ec845f216084a24da0b2
s3:passdb/pdb_util make pdb_create_builtin consider whether backend deals with BUILTIN

when creating a BUILTIN group, make the strategy dependent on passdb backend behavior
1. if passdb is responsible for BUILTIN (normal case), call pdb_create_builtin_alias with gid=0 argument
so it asks winbindd for a gid to be used
2. if passdb is not responsible, ask for a mapping for the group first and let pdb_create_builtin_alias
create the mapping based on the gid that was determined in the mapping request

Pair-Programmed-With: Michael Adam <obnox@samba.org>

Signed-off-by: Christian Ambach <ambi@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun 21 12:49:10 CEST 2013 on sn-devel-104
source3/passdb/pdb_util.c