summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-11-07 11:53:13 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-11-12 00:22:13 +0100
commitfb1ae36ed841f6db8cdfcc2417db21bd028c819f (patch)
tree56ae51c68590e9be5a85f45b7e3e87c72dbeef06 /src/db
parentbb34baa8c4d61d8dfad621e6c2d1f9764da82baa (diff)
downloadsssd-fb1ae36ed841f6db8cdfcc2417db21bd028c819f.tar.gz
sssd-fb1ae36ed841f6db8cdfcc2417db21bd028c819f.tar.xz
sssd-fb1ae36ed841f6db8cdfcc2417db21bd028c819f.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')
-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