diff options
author | Gerald Carter <jerry@samba.org> | 2006-07-12 21:05:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:19:17 -0500 |
commit | 23afde616dc611bc525cb17838b3cfc72eb2a8f3 (patch) | |
tree | e21df9e00b509c3917322ad60176490cc5b4827c /examples/pdb | |
parent | 9846cf3daf83c309f51a3f93b9b34aa0ab5d6205 (diff) | |
download | samba-23afde616dc611bc525cb17838b3cfc72eb2a8f3.tar.gz samba-23afde616dc611bc525cb17838b3cfc72eb2a8f3.tar.bz2 samba-23afde616dc611bc525cb17838b3cfc72eb2a8f3.zip |
r16998: patch from Paul Griffith <paulg@cs.yorku.ca> to fix compile of the test.c pdb file
(This used to be commit 34ad8e183cf882913c32b4d03c9ab5fc09181ad2)
Diffstat (limited to 'examples/pdb')
-rw-r--r-- | examples/pdb/test.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/pdb/test.c b/examples/pdb/test.c index 68b5b9a3e5..c553f72f0b 100644 --- a/examples/pdb/test.c +++ b/examples/pdb/test.c @@ -45,10 +45,10 @@ static void testsam_endsampwent(struct pdb_methods *methods) } /***************************************************************** - Get one SAM_ACCOUNT from the list (next in line) + Get one struct samu from the list (next in line) *****************************************************************/ -static NTSTATUS testsam_getsampwent(struct pdb_methods *methods, SAM_ACCOUNT *user) +static NTSTATUS testsam_getsampwent(struct pdb_methods *methods, struct samu *user) { DEBUG(10, ("testsam_getsampwent called\n")); return NT_STATUS_NOT_IMPLEMENTED; @@ -58,7 +58,7 @@ static NTSTATUS testsam_getsampwent(struct pdb_methods *methods, SAM_ACCOUNT *us Lookup a name in the SAM database ******************************************************************/ -static NTSTATUS testsam_getsampwnam (struct pdb_methods *methods, SAM_ACCOUNT *user, const char *sname) +static NTSTATUS testsam_getsampwnam (struct pdb_methods *methods, struct samu *user, const char *sname) { DEBUG(10, ("testsam_getsampwnam called\n")); return NT_STATUS_NOT_IMPLEMENTED; @@ -68,47 +68,47 @@ static NTSTATUS testsam_getsampwnam (struct pdb_methods *methods, SAM_ACCOUNT *u Search by sid **************************************************************************/ -static NTSTATUS testsam_getsampwsid (struct pdb_methods *methods, SAM_ACCOUNT *user, const DOM_SID *sid) +static NTSTATUS testsam_getsampwsid (struct pdb_methods *methods, struct samu *user, const DOM_SID *sid) { DEBUG(10, ("testsam_getsampwsid called\n")); return NT_STATUS_NOT_IMPLEMENTED; } /*************************************************************************** - Delete a SAM_ACCOUNT + Delete a struct samu ****************************************************************************/ -static NTSTATUS testsam_delete_sam_account(struct pdb_methods *methods, SAM_ACCOUNT *sam_pass) +static NTSTATUS testsam_delete_sam_account(struct pdb_methods *methods, struct samu *sam_pass) { DEBUG(10, ("testsam_delete_sam_account called\n")); return NT_STATUS_NOT_IMPLEMENTED; } /*************************************************************************** - Modifies an existing SAM_ACCOUNT + Modifies an existing struct samu ****************************************************************************/ -static NTSTATUS testsam_update_sam_account (struct pdb_methods *methods, SAM_ACCOUNT *newpwd) +static NTSTATUS testsam_update_sam_account (struct pdb_methods *methods, struct samu *newpwd) { DEBUG(10, ("testsam_update_sam_account called\n")); return NT_STATUS_NOT_IMPLEMENTED; } /*************************************************************************** - Adds an existing SAM_ACCOUNT + Adds an existing struct samu ****************************************************************************/ -static NTSTATUS testsam_add_sam_account (struct pdb_methods *methods, SAM_ACCOUNT *newpwd) +static NTSTATUS testsam_add_sam_account (struct pdb_methods *methods, struct samu *newpwd) { DEBUG(10, ("testsam_add_sam_account called\n")); return NT_STATUS_NOT_IMPLEMENTED; } -NTSTATUS testsam_init(PDB_CONTEXT *pdb_context, PDB_METHODS **pdb_method, const char *location) +NTSTATUS testsam_init(struct pdb_methods **pdb_method, const char *location) { NTSTATUS nt_status; - if (!NT_STATUS_IS_OK(nt_status = make_pdb_methods(pdb_context->mem_ctx, pdb_method))) { + if (!NT_STATUS_IS_OK(nt_status = make_pdb_method( pdb_method ))) { return nt_status; } |