From 659a34f2a1e635cad8dac26df7c51e6edaf2d094 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Thu, 12 Feb 2009 08:26:50 -0500 Subject: Added sysdb_remove_group_posix and sysdb_remove_group_posix_by_gid Fixed a few small bugs in sysdb_[store|remove]_account_posix. The string "uid=" needed to be replaced with SYSDB_PW_NAME, and the search scope in sysdb_remove_account_posix_by_uid needed to be LDB_SCOPE_ONELEVEL, not LDB_SCOPE_BASE. Added associated unit tests. Modified the unit test structure so that it is called as a single suite, rather than a User and Group suite, since there is too much overlap. --- server/db/sysdb.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/db/sysdb.h') diff --git a/server/db/sysdb.h b/server/db/sysdb.h index 656cb8fe1..4af6323aa 100644 --- a/server/db/sysdb.h +++ b/server/db/sysdb.h @@ -182,4 +182,12 @@ int sysdb_add_remove_posix_group_member(TALLOC_CTX *mem_ctx, int flag, struct ldb_dn *member_dn, struct ldb_dn *group_dn); + +int sysdb_remove_group_posix(TALLOC_CTX *memctx, + struct sysdb_ctx *sysdb, + const char *domain, const char *name); + +int sysdb_remove_group_posix_by_gid(TALLOC_CTX *memctx, + struct sysdb_ctx *sysdb, + const char *domain, gid_t gid); #endif /* __SYS_DB_H__ */ -- cgit