summaryrefslogtreecommitdiffstats
path: root/examples/pdb/README
blob: 9ca03bf59388227da10b53cc9dd218706ca37eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
README for Samba Password Database (PDB) examples
====================================================
15-2-2002 Jelmer Vernooij <jelmer@nl.linux.org>

The pdb_test.c file in this directory contains a very basic example of 
a pdb plugin. It just prints the name of the function that is executed using
DEBUG. Maybe it's nice to include some of the arguments to the function in the 
future too..

To debug passdb backends, try to run gdb on the 'pdbedit' executable. That's really much easier than restarting smbd constantly and attaching with your debugger.

New passdb plugins should go into the samba lib directory, (/usr/lib/samba/ for
most distributions) and should be prefixed with 'pdb_'. An example would be: 
/usr/lib/samba/pdb_test.so