summaryrefslogtreecommitdiffstats
path: root/server/db/sysdb.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-02-12 08:26:50 -0500
committerSimo Sorce <idra@samba.org>2009-02-12 17:08:57 -0500
commit659a34f2a1e635cad8dac26df7c51e6edaf2d094 (patch)
tree0e8dcdb64d726d4f8c762a244f491f559b1e2e6c /server/db/sysdb.h
parent7c3629bc78edd79f557805176f3024eaf4fa51b1 (diff)
downloadsssd-659a34f2a1e635cad8dac26df7c51e6edaf2d094.tar.gz
sssd-659a34f2a1e635cad8dac26df7c51e6edaf2d094.tar.xz
sssd-659a34f2a1e635cad8dac26df7c51e6edaf2d094.zip
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.
Diffstat (limited to 'server/db/sysdb.h')
-rw-r--r--server/db/sysdb.h8
1 files changed, 8 insertions, 0 deletions
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__ */