r13545: A patch which I think it's time has come. VOlker, we can talk about
commitcf6f9ec839a310929143cdd94ab2e673ecb45eca
authorGerald Carter <jerry@samba.org>
Fri, 17 Feb 2006 19:07:58 +0000 (17 19:07 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 17 Feb 2006 19:07:58 +0000 (17 19:07 +0000)
treecd108a95a535c128c0b58c33f6221e8e46ec712d
parente6004b7b2cb093105e514354ed6764a2a02ebd57
r13545: A patch which I think it's time has come.  VOlker, we can talk about
this more but it gets around the primary group issue.

* don't map a SID to a name from the group mapping code if
  the map doesn't have a valid gid.  This is only an issue
  in a tdb setup
* Always allow S-1-$DOMAIN-513 to resolve (just like Windows)
* if we cannot resolve a users primary GID to a SID, then set
  it to S-1-$DOMAIN-513
* Ignore the primary group SID inside pdb_enum_group_memberships().
  Only look at the Unix group membersip.

Jeremy, this fixes a fresh install startup for smbd as far as my tests
are concerned.
source/passdb/passdb.c
source/passdb/pdb_get_set.c
source/passdb/pdb_interface.c