1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Add some comments on writing new pdb modules. (from ctrlsoft)

Andrew Bartlett
(This used to be commit 0a64ff4c99)
This commit is contained in:
Andrew Bartlett 2002-06-14 02:58:43 +00:00
parent 0d7ac4bc2c
commit a770dd49a4

View File

@ -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;