From 1e0f445f123f3ee96260989895f3ba558697d152 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 11 Feb 2009 12:08:09 -0500 Subject: 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. --- server/db/sysdb.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'server/db/sysdb.h') diff --git a/server/db/sysdb.h b/server/db/sysdb.h index 19781fb4..014e2ce9 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__ */ -- cgit