summaryrefslogtreecommitdiff
path: root/examples/pdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-06-14 02:58:43 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-06-14 02:58:43 +0000
commita770dd49a4d7df1d58912250358f523a12342982 (patch)
tree8b9a029e710cd58105ffab7cc20eee797b4d3aa4 /examples/pdb
parent0d7ac4bc2ca8eea117a0f594880b5aac02f1056d (diff)
downloadsamba-a770dd49a4d7df1d58912250358f523a12342982.tar.gz
samba-a770dd49a4d7df1d58912250358f523a12342982.tar.bz2
samba-a770dd49a4d7df1d58912250358f523a12342982.zip
Add some comments on writing new pdb modules. (from ctrlsoft)
Andrew Bartlett (This used to be commit 0a64ff4c9984c751ed6bd9e9bc8d16c70abec02d)
Diffstat (limited to 'examples/pdb')
-rw-r--r--examples/pdb/pdb_test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/pdb/pdb_test.c b/examples/pdb/pdb_test.c
index 983a995d85..c932c6128b 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;