summaryrefslogtreecommitdiff
path: root/source3/include/passdb.h
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2004-03-09 20:30:35 +0000
committerRafal Szczesniak <mimir@samba.org>2004-03-09 20:30:35 +0000
commit93f4a34978e89a2158569aa7a20c28a01e27df30 (patch)
treedda9225866dbc83a3da155d137eae0907f304f3c /source3/include/passdb.h
parent5e2282b94f862cc29114839ef6e379dbd24ba4b5 (diff)
downloadsamba-93f4a34978e89a2158569aa7a20c28a01e27df30.tar.gz
samba-93f4a34978e89a2158569aa7a20c28a01e27df30.tar.bz2
samba-93f4a34978e89a2158569aa7a20c28a01e27df30.zip
1) Two new functions to trust passwords interface in passdb:
settrustpwent, gettrustpwnam 2) Implementation of another couple of these functions in tdbsam: settrustpwent, gettrustpwnam, gettrustpwsid 3) Testing (mostly for now) usage of the interface in pdbedit which is soon to be offline tool back again. This is quite a new code, so many changes will be put in soon. rafal (This used to be commit 2ed23fbce846f9710747d72aa98c20d54894d61e)
Diffstat (limited to 'source3/include/passdb.h')
-rw-r--r--source3/include/passdb.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h
index 65e342080e..df7c969633 100644
--- a/source3/include/passdb.h
+++ b/source3/include/passdb.h
@@ -262,7 +262,7 @@ typedef struct sam_trust_passwd {
* this SAMBA will load. Increment this if *ANY* changes are made to the interface.
*/
-#define PASSDB_INTERFACE_VERSION 5
+#define PASSDB_INTERFACE_VERSION 6
typedef struct pdb_context
{
@@ -352,9 +352,13 @@ typedef struct pdb_context
NTSTATUS (*pdb_get_group_uids)(struct pdb_context *context, const DOM_SID *group, uid_t **members, int *num_members);
/* trust password functions */
+
+ NTSTATUS (*pdb_settrustpwent)(struct pdb_context *context);
NTSTATUS (*pdb_gettrustpwent)(struct pdb_context *context, SAM_TRUST_PASSWD *trust);
+ NTSTATUS (*pdb_gettrustpwnam)(struct pdb_context *context, SAM_TRUST_PASSWD *trust, const char *dom_name);
+
NTSTATUS (*pdb_gettrustpwsid)(struct pdb_context *context, SAM_TRUST_PASSWD *trust, const DOM_SID *sid);
NTSTATUS (*pdb_add_trust_passwd)(struct pdb_context *context, SAM_TRUST_PASSWD* trust);
@@ -467,8 +471,12 @@ typedef struct pdb_methods
/* trust password functions */
+ NTSTATUS (*settrustpwent)(struct pdb_methods *methods);
+
NTSTATUS (*gettrustpwent)(struct pdb_methods *methods, SAM_TRUST_PASSWD *trust);
+ NTSTATUS (*gettrustpwnam)(struct pdb_methods *methods, SAM_TRUST_PASSWD *trust, const char *name);
+
NTSTATUS (*gettrustpwsid)(struct pdb_methods *methods, SAM_TRUST_PASSWD *trust, const DOM_SID *sid);
NTSTATUS (*add_trust_passwd)(struct pdb_methods *methods, const SAM_TRUST_PASSWD* trust);