summaryrefslogtreecommitdiffstats
path: root/source/include/passdb.h
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-02-13 17:08:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:06 -0500
commitbb40e544de68f01a6e774753f508e69373b39899 (patch)
tree78eb6a7a3de3beae404e58900a36cad4c1b970a1 /source/include/passdb.h
parent5a92df31d69ff7b0f2de6564d644949c2906c8f1 (diff)
downloadsamba-bb40e544de68f01a6e774753f508e69373b39899.tar.gz
samba-bb40e544de68f01a6e774753f508e69373b39899.tar.xz
samba-bb40e544de68f01a6e774753f508e69373b39899.zip
r13494: Merge the stuff I've done in head the last days.
Volker
Diffstat (limited to 'source/include/passdb.h')
-rw-r--r--source/include/passdb.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/source/include/passdb.h b/source/include/passdb.h
index 35f377ad868..1f3c8cb28b3 100644
--- a/source/include/passdb.h
+++ b/source/include/passdb.h
@@ -262,6 +262,13 @@ struct pdb_methods
NTSTATUS (*getsampwnam)(struct pdb_methods *, SAM_ACCOUNT *sam_acct, const char *username);
NTSTATUS (*getsampwsid)(struct pdb_methods *, SAM_ACCOUNT *sam_acct, const DOM_SID *sid);
+
+ NTSTATUS (*create_user)(struct pdb_methods *, TALLOC_CTX *tmp_ctx,
+ const char *name, uint32 acct_flags,
+ uint32 *rid);
+
+ NTSTATUS (*delete_user)(struct pdb_methods *, TALLOC_CTX *tmp_ctx,
+ SAM_ACCOUNT *sam_acct);
NTSTATUS (*add_sam_account)(struct pdb_methods *, SAM_ACCOUNT *sampass);
@@ -279,6 +286,13 @@ struct pdb_methods
NTSTATUS (*getgrnam)(struct pdb_methods *methods, GROUP_MAP *map, const char *name);
+ NTSTATUS (*create_dom_group)(struct pdb_methods *methods,
+ TALLOC_CTX *mem_ctx, const char *name,
+ uint32 *rid);
+
+ NTSTATUS (*delete_dom_group)(struct pdb_methods *methods,
+ TALLOC_CTX *mem_ctx, uint32 rid);
+
NTSTATUS (*add_group_mapping_entry)(struct pdb_methods *methods,
GROUP_MAP *map);
@@ -305,6 +319,18 @@ struct pdb_methods
DOM_SID **pp_sids, gid_t **pp_gids,
size_t *p_num_groups);
+ NTSTATUS (*set_unix_primary_group)(struct pdb_methods *methods,
+ TALLOC_CTX *mem_ctx,
+ SAM_ACCOUNT *user);
+
+ NTSTATUS (*add_groupmem)(struct pdb_methods *methods,
+ TALLOC_CTX *mem_ctx,
+ uint32 group_rid, uint32 member_rid);
+
+ NTSTATUS (*del_groupmem)(struct pdb_methods *methods,
+ TALLOC_CTX *mem_ctx,
+ uint32 group_rid, uint32 member_rid);
+
NTSTATUS (*find_alias)(struct pdb_methods *methods,
const char *name, DOM_SID *sid);