sync 3_0 branch with HEAD
[kai/samba-autobuild/.git] / examples / pdb / README
1 README for Samba Password Database (PDB) examples
2 ====================================================
3 8-8-2002 Jelmer Vernooij <jelmer@samba.org>
4
5 Added mysql and xml modules. See README in xml/ and mysql/ for details.
6
7 21-6-2002 Stefan (metze) Metzmacher <metze@metzemix.de>
8
9 I have added an interface versioning.
10
11 Every module MUST have a pdb_version() function.
12
13 this is defined in include/passdb.h:
14 #define PDB_MODULE_VERSIONING_MAGIC \
15 int pdb_version(void)\
16 {\
17         return PASSDB_INTERFACE_VERSION;\
18 }
19
20 You MUST add this line inside a module:
21 PDB_MODULE_VERSIONING_MAGIC
22
23 21-6-2002 Stefan (metze) Metzmacher <metze@metzemix.de>
24
25 The pdb_interface was changed:
26
27 this function are deleted:
28 static BOOL testsam_getsampwrid (struct pdb_methods *methods, SAM_ACCOUNT *user, uint32 rid)
29
30 this function are added:
31 static BOOL testsam_getsampwsid (struct pdb_methods *methods, SAM_ACCOUNT *user, DOM_SID sid)
32
33 In the SAM_ACCOUNT struct:
34
35 this fields are deleted:
36 uint32 user_rid;
37 uint32 group_rid;
38
39 this fields are added:
40 DOM_SID user_sid;
41 DOM_SID group_sid; 
42
43 15-2-2002 Jelmer Vernooij <jelmer@nl.linux.org>
44
45 The pdb_test.c file in this directory contains a very basic example of 
46 a pdb plugin. It just prints the name of the function that is executed using
47 DEBUG. Maybe it's nice to include some of the arguments to the function in the 
48 future too..
49
50 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.
51
52 New passdb plugins should go into the samba lib directory, (/usr/lib/samba/ for
53 most distributions) and should be prefixed with 'pdb_'. An example would be: 
54 /usr/lib/samba/pdb_test.so
55