From fb1ae36ed841f6db8cdfcc2417db21bd028c819f Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 7 Nov 2012 11:53:13 +0100 Subject: 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 --- src/db/sysdb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/db') 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 -- cgit