diff options
author | Sumit Bose <sbose@redhat.com> | 2012-11-07 11:34:09 +0100 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-11-10 21:44:29 -0500 |
commit | 1a456e464803c6d1e82081e9b4d618fa0b07b3d7 (patch) | |
tree | 14c8097d86151d1281d297eba4bfe86fdd685be3 /src/responder/pac/pacsrv.h | |
parent | 2074780e4dc881028c06de6699d2967ef42ac4a9 (diff) | |
download | sssd-1a456e464803c6d1e82081e9b4d618fa0b07b3d7.tar.gz sssd-1a456e464803c6d1e82081e9b4d618fa0b07b3d7.tar.xz sssd-1a456e464803c6d1e82081e9b4d618fa0b07b3d7.zip |
Add diff_gid_lists() with test
This patch adds a new call which compares a list of current GIDs with a
list of new GIDs and return a list of GIDs which are currently missing
and must be added and another list of GIDs which are not used anymore
and must be deleted. The method is the same as used by
diff_string_lists().
Diffstat (limited to 'src/responder/pac/pacsrv.h')
-rw-r--r-- | src/responder/pac/pacsrv.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/responder/pac/pacsrv.h b/src/responder/pac/pacsrv.h index e088e212a..c0a13a332 100644 --- a/src/responder/pac/pacsrv.h +++ b/src/responder/pac/pacsrv.h @@ -67,6 +67,12 @@ struct local_mapping_ranges { struct range secondary_rids; }; +struct grp_info { + gid_t gid; + char *orig_dn; + struct ldb_dn *dn; +}; + int pac_cmd_execute(struct cli_ctx *cctx); struct sss_cmd_table *get_pac_cmds(void); @@ -106,4 +112,14 @@ errno_t get_pwd_from_pac(TALLOC_CTX *mem_ctx, struct PAC_LOGON_INFO *logon_info, struct passwd **_pwd, struct sysdb_attrs **_attrs); + +errno_t diff_gid_lists(TALLOC_CTX *mem_ctx, + size_t cur_grp_num, + struct grp_info *cur_gid_list, + size_t new_gid_num, + gid_t *new_gid_list, + size_t *_add_gid_num, + gid_t **_add_gid_list, + size_t *_del_gid_num, + struct grp_info ***_del_gid_list); #endif /* __PACSRV_H__ */ |