diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-02-11 12:08:09 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-02-12 17:08:57 -0500 |
commit | 1e0f445f123f3ee96260989895f3ba558697d152 (patch) | |
tree | 4d87b79e6f7fc0a021d90fecb5ce7a4dca96039b /server/db/sysdb.h | |
parent | b7f8cce6f34cae52260a7eca13e39c2ecd98d77c (diff) | |
download | sssd-1e0f445f123f3ee96260989895f3ba558697d152.tar.gz sssd-1e0f445f123f3ee96260989895f3ba558697d152.tar.xz sssd-1e0f445f123f3ee96260989895f3ba558697d152.zip |
Add sysdb_add_group_to_posix_group, refactored sysdb_add_acct_to_posix_group to now use sysdb_add_member_to_posix_group along with sysdb_add_member_to_posix_group.
Added new unit tests to sysdb-tests.c for groups of groups.
Diffstat (limited to 'server/db/sysdb.h')
-rw-r--r-- | server/db/sysdb.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/db/sysdb.h b/server/db/sysdb.h index 19781fb44..014e2ce91 100644 --- a/server/db/sysdb.h +++ b/server/db/sysdb.h @@ -160,4 +160,15 @@ int sysdb_add_acct_to_posix_group(TALLOC_CTX *mem_ctx, const char *domain, const char *gname, const char *username); + +int sysdb_add_group_to_posix_group(TALLOC_CTX *mem_ctx, + struct sysdb_ctx *sysdb, + const char *domain, + const char *group, + const char *member_group); + +int sysdb_add_member_to_posix_group(TALLOC_CTX *mem_ctx, + struct sysdb_ctx *sysdb, + struct ldb_dn *member_dn, + struct ldb_dn *group_dn); #endif /* __SYS_DB_H__ */ |