summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-09-06 13:44:46 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-26 21:15:10 +0200
commit15ef8f1a2f13cda195ed3c05ca7c9d815a040bb3 (patch)
tree1b62adc05b866ff54df17f60022584ce779440f2 /src/db/sysdb.h
parent98cbf234ead39b844b5c66481a79fdd9ddd93340 (diff)
downloadsssd-15ef8f1a2f13cda195ed3c05ca7c9d815a040bb3.tar.gz
sssd-15ef8f1a2f13cda195ed3c05ca7c9d815a040bb3.tar.xz
sssd-15ef8f1a2f13cda195ed3c05ca7c9d815a040bb3.zip
sysdb: sysdb_update_members can take either name or dn
We need to work with distinguish names when processing cross-domain membership, because groups and users may be stored in different sysdb tree. Resolves: https://fedorahosted.org/sssd/ticket/2066
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r--src/db/sysdb.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index f92321762..c2a42d5ce 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -690,13 +690,15 @@ int sysdb_add_group_member(struct sysdb_ctx *sysdb,
struct sss_domain_info *domain,
const char *group,
const char *member,
- enum sysdb_member_type type);
+ enum sysdb_member_type type,
+ bool is_dn);
int sysdb_remove_group_member(struct sysdb_ctx *sysdb,
struct sss_domain_info *domain,
const char *group,
const char *member,
- enum sysdb_member_type type);
+ enum sysdb_member_type type,
+ bool is_dn);
errno_t sysdb_update_members(struct sysdb_ctx *sysdb,
struct sss_domain_info *domain,
@@ -705,6 +707,13 @@ errno_t sysdb_update_members(struct sysdb_ctx *sysdb,
const char *const *add_groups,
const char *const *del_groups);
+errno_t sysdb_update_members_dn(struct sysdb_ctx *sysdb,
+ struct sss_domain_info *member_domain,
+ const char *member,
+ enum sysdb_member_type type,
+ const char *const *add_groups,
+ const char *const *del_groups);
+
/* Password caching function.
* If you are in a transaction ignore sysdb and pass in the handle.
* If you are not in a transaction pass NULL in handle and provide sysdb,