TODO make sure the gid doesn't belong to a user s3:passdb: return ID_TYPE_BOTH for...
authorMichael Adam <obnox@samba.org>
Mon, 3 Dec 2012 00:48:15 +0000 (01:48 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 13 Aug 2018 14:19:42 +0000 (16:19 +0200)
This allows e.g. for BUILTIN\\administrators to be taken as file owner (user).

Signed-off-by: Michael Adam <obnox@samba.org>
source3/passdb/pdb_interface.c

index 7fdc33c4fa75f58f2621849b2e0506689674abe3..d97a463cfcfca92373658442f98ee514057857d7 100644 (file)
@@ -1571,7 +1571,7 @@ static bool pdb_default_sid_to_id(struct pdb_methods *methods,
                }
 
                id->id = map->gid;
-               id->type = ID_TYPE_GID;
+               id->type = ID_TYPE_BOTH;
                ret = True;
                goto done;
        }