diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-04-28 01:24:26 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-04-28 01:24:26 +0000 |
commit | 528c56176b186d9fa43f6a0c9831562c123ec25d (patch) | |
tree | a95c06af23a1b72a2bd0c14cc024e4993c59dc55 /examples/pdb | |
parent | bd2444322956cd34a95159114547b5ddc804df9e (diff) | |
download | samba-528c56176b186d9fa43f6a0c9831562c123ec25d.tar.gz samba-528c56176b186d9fa43f6a0c9831562c123ec25d.tar.xz samba-528c56176b186d9fa43f6a0c9831562c123ec25d.zip |
Update for the new modules system
Diffstat (limited to 'examples/pdb')
-rw-r--r-- | examples/pdb/pdb_test.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/examples/pdb/pdb_test.c b/examples/pdb/pdb_test.c index c5ba094e42c..f5fb57ddb20 100644 --- a/examples/pdb/pdb_test.c +++ b/examples/pdb/pdb_test.c @@ -25,9 +25,6 @@ static int testsam_debug_level = DBGC_ALL; #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. ****************************************************************/ @@ -107,7 +104,7 @@ static NTSTATUS testsam_add_sam_account (struct pdb_methods *methods, SAM_ACCOUN 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; @@ -141,3 +138,12 @@ NTSTATUS pdb_init(PDB_CONTEXT *pdb_context, PDB_METHODS **pdb_method, const char 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; +} |