mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
- convert net to popt - convert status to popt - adapt examples/pdb/ to multiple passdb system - add dynamic debug class example to examples/pdb/ and some reformatting to better match the samba coding style. Andrew Bartlett (This used to be commit 2498bc69d4e5c38ec385f640489daa94c508c726)
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