From 0a64ff4c9984c751ed6bd9e9bc8d16c70abec02d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 14 Jun 2002 02:58:43 +0000 Subject: Add some comments on writing new pdb modules. (from ctrlsoft) Andrew Bartlett --- examples/pdb/pdb_test.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'examples/pdb') diff --git a/examples/pdb/pdb_test.c b/examples/pdb/pdb_test.c index 983a995d858..c932c6128b4 100644 --- a/examples/pdb/pdb_test.c +++ b/examples/pdb/pdb_test.c @@ -23,6 +23,10 @@ static int testsam_debug_level = DBGC_ALL; #undef DBGC_CLASS #define DBGC_CLASS testsam_debug_level +/*************************************************************** + Start enumeration of the passwd list. +****************************************************************/ + static BOOL testsam_setsampwent(struct pdb_methods *methods, BOOL update) { DEBUG(10, ("testsam_setsampwent called\n")); @@ -108,6 +112,9 @@ NTSTATUS pdb_init(PDB_CONTEXT *pdb_context, PDB_METHODS **pdb_method, const char (*pdb_method)->name = "testsam"; + /* Functions your pdb module doesn't provide should be set + * to NULL */ + (*pdb_method)->setsampwent = testsam_setsampwent; (*pdb_method)->endsampwent = testsam_endsampwent; (*pdb_method)->getsampwent = testsam_getsampwent; -- cgit v1.2.1