1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/examples/pdb
Stefan Metzmacher 4451d0a5cd examples/pdb: fix and validate pdb_test_init() prototype via static_decl_pdb;
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2015-08-20 16:06:20 +02:00
..
Makefile r5112: Fix for shared object creation in examples. Bugzilla #2058. 2007-10-10 10:55:15 -05:00
README r22805: Inform in examples/pdb about the location of the external support for 2007-10-10 12:21:59 -05:00
test.c examples/pdb: fix and validate pdb_test_init() prototype via static_decl_pdb; 2015-08-20 16:06:20 +02:00
wscript_build s3-waf: make sure we always build example pdb modules with --enable-developer. 2011-10-17 17:39:36 +02:00

README for Samba Password Database (PDB) examples
====================================================
Jelmer Vernooij <jelmer@nl.linux.org>
Stefan (metze) Metzmacher <metze@samba.org>

The 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/pdb/
for most distributions). An example would be: /usr/lib/samba/pdb/test.so

Be aware that the SQL and XML based passdb modules have been removed since the
3.0.23 release.  More information of external support for SQL passdb modules
can be found at http://pdbsql.sourceforge.net/.