TODO(richtig so? - oder auch user?) s3:passdb: set ID_TYPE_BOTH for groups from own...
authorMichael Adam <obnox@samba.org>
Mon, 3 Dec 2012 00:50:24 +0000 (01:50 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 13 Aug 2018 14:19:42 +0000 (16:19 +0200)
This way, one can set groups as file owners.

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

index d97a463cfcfca92373658442f98ee514057857d7..39474173585a1f291943199b6a97e00e2daaea09 100644 (file)
@@ -1513,7 +1513,7 @@ static bool pdb_default_sid_to_id(struct pdb_methods *methods,
                        switch (type) {
                        case SID_NAME_DOM_GRP:
                        case SID_NAME_ALIAS:
-                               id->type = ID_TYPE_GID;
+                               id->type = ID_TYPE_BOTH;
                                id->id = gid;
                                break;
                        case SID_NAME_USER: