summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-08-14 17:13:13 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-19 12:53:49 +0200
commit39f13b3bf5b3cf79f5f16575403f03b539300dc7 (patch)
tree817bf3977365aa4d67e54a821048ee4bb2ddb51d /src/db
parent8cdb9b9824d3fcc2448544d67544496f55b8d393 (diff)
downloadsssd-39f13b3bf5b3cf79f5f16575403f03b539300dc7.tar.gz
sssd-39f13b3bf5b3cf79f5f16575403f03b539300dc7.tar.xz
sssd-39f13b3bf5b3cf79f5f16575403f03b539300dc7.zip
fill_initgr: add original primary GID if available
In some cases when MPG domains are used the information about the original primary group of a user cannot be determined by looking at the explicit group memberships. In those cases the GID related to the original primary group is stored in a special attribute of the user object. This patch adds the GID of the original primary group when available and needed. Fixes https://fedorahosted.org/sssd/ticket/2027
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index 53fb86033..7b02b3442 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -170,6 +170,7 @@
SYSDB_GIDNUM, SYSDB_GECOS, \
SYSDB_HOMEDIR, SYSDB_SHELL, \
SYSDB_DEFAULT_ATTRS, \
+ SYSDB_PRIMARY_GROUP_GIDNUM, \
NULL}
#define SYSDB_GRSRC_ATTRS {SYSDB_NAME, SYSDB_GIDNUM, \
SYSDB_MEMBERUID, \