#undef DBGC_CLASS
#define DBGC_CLASS testsam_debug_level
-/* define the version of the passdb interface */
-PDB_MODULE_VERSIONING_MAGIC
-
/***************************************************************
Start enumeration of the passwd list.
****************************************************************/
return NT_STATUS_NOT_IMPLEMENTED;
}
-NTSTATUS pdb_init(PDB_CONTEXT *pdb_context, PDB_METHODS **pdb_method, const char *location)
+NTSTATUS testsam_init(PDB_CONTEXT *pdb_context, PDB_METHODS **pdb_method, const char *location)
{
NTSTATUS nt_status;
return NT_STATUS_OK;
}
+
+int init_module(void);
+
+int init_module() {
+ if(smb_register_passdb("testsam", testsam_init, PASSDB_INTERFACE_VERSION))
+ return 0;
+
+ return 1;
+}