summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-11-07 11:53:13 +0100
committerSimo Sorce <simo@redhat.com>2012-11-10 21:44:34 -0500
commit6722c85cb59c2d6fc223966c2b83cc3ea0d9aceb (patch)
tree4ae78d421151560000d80579d69b76614830664b /src/db/sysdb.h
parent1a456e464803c6d1e82081e9b4d618fa0b07b3d7 (diff)
downloadsssd-6722c85cb59c2d6fc223966c2b83cc3ea0d9aceb.tar.gz
sssd-6722c85cb59c2d6fc223966c2b83cc3ea0d9aceb.tar.xz
sssd-6722c85cb59c2d6fc223966c2b83cc3ea0d9aceb.zip
Add pac_user_get_grp_info() to read current group memberships
To be able to efficiently store group memberships we need to know the current memberships of a user. sysdb_initgroups() is used to read the user entry together with all groups the user is a member of. Some of the group attributes are kept to avoid additional lookups and speed up further processing. Currently sysdb_initgroups() does not return the original DN of the group. Since it is needed to remove memberships later on it is added to the list of requested attributes
Diffstat (limited to 'src/db/sysdb.h')
-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 8fe0e81c1..39e0f9f52 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -200,6 +200,7 @@
#define SYSDB_INITGR_ATTR SYSDB_MEMBEROF
#define SYSDB_INITGR_ATTRS {SYSDB_GIDNUM, SYSDB_POSIX, \
SYSDB_DEFAULT_ATTRS, \
+ SYSDB_ORIG_DN, \
NULL}
#define SYSDB_TMPL_USER SYSDB_NAME"=%s,"SYSDB_TMPL_USER_BASE