Changeset 988 for vendor/current/examples/pdb
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- Location:
- vendor/current/examples/pdb
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/examples/pdb/test.c
r740 r988 19 19 20 20 #include "includes.h" 21 #include "passdb.h" 21 22 22 23 static int testsam_debug_level = DBGC_ALL; … … 24 25 #undef DBGC_CLASS 25 26 #define DBGC_CLASS testsam_debug_level 26 27 /***************************************************************28 Start enumeration of the passwd list.29 ****************************************************************/30 31 static NTSTATUS testsam_setsampwent(struct pdb_methods *methods, BOOL update, uint32 acb_mask)32 {33 DEBUG(10, ("testsam_setsampwent called\n"));34 return NT_STATUS_NOT_IMPLEMENTED;35 }36 37 /***************************************************************38 End enumeration of the passwd list.39 ****************************************************************/40 41 static void testsam_endsampwent(struct pdb_methods *methods)42 {43 DEBUG(10, ("testsam_endsampwent called\n"));44 }45 46 /*****************************************************************47 Get one struct samu from the list (next in line)48 *****************************************************************/49 50 static NTSTATUS testsam_getsampwent(struct pdb_methods *methods, struct samu *user)51 {52 DEBUG(10, ("testsam_getsampwent called\n"));53 return NT_STATUS_NOT_IMPLEMENTED;54 }55 27 56 28 /****************************************************************** … … 104 76 } 105 77 106 NTSTATUS testsam_init(struct pdb_methods **pdb_method, const char *location)78 static NTSTATUS testsam_init(struct pdb_methods **pdb_method, const char *location) 107 79 { 108 80 NTSTATUS nt_status; … … 117 89 set, make_pdb_methods() already provide suitable defaults for missing functions */ 118 90 119 (*pdb_method)->setsampwent = testsam_setsampwent;120 (*pdb_method)->endsampwent = testsam_endsampwent;121 (*pdb_method)->getsampwent = testsam_getsampwent;122 91 (*pdb_method)->getsampwnam = testsam_getsampwnam; 123 92 (*pdb_method)->getsampwsid = testsam_getsampwsid; … … 139 108 } 140 109 141 NTSTATUS init_module(void) { 110 static_decl_pdb; 111 NTSTATUS pdb_test_init(void) 112 { 142 113 return smb_register_passdb(PASSDB_INTERFACE_VERSION, "testsam", 143 114 testsam_init);
Note:
See TracChangeset
for help on using the changeset viewer.