diff options
author | Sumit Bose <sbose@redhat.com> | 2012-11-07 11:53:13 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-12 00:22:13 +0100 |
commit | fb1ae36ed841f6db8cdfcc2417db21bd028c819f (patch) | |
tree | 56ae51c68590e9be5a85f45b7e3e87c72dbeef06 /src/db/sysdb.h | |
parent | bb34baa8c4d61d8dfad621e6c2d1f9764da82baa (diff) | |
download | sssd-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/sysdb.h')
-rw-r--r-- | src/db/sysdb.h | 1 |
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 |