Add the rename torture test.
[samba.git] / examples / sam / README
1 README for Samba SAM Database examples
2 ====================================================
3 26-08-2002 Stefan (metze) Metzmacher <metze@metzemix.de>
4
5 Every module MUST have a sam_version() function.
6
7 this is defined in include/sam.h:
8 #define SAM_MODULE_VERSIONING_MAGIC \
9 int sam_version(void)\
10 {\
11         return SAM_INTERFACE_VERSION;\
12 }
13
14 You MUST add this line inside a module:
15 SAM_MODULE_VERSIONING_MAGIC
16
17
18 The sam_skel.c file in this directory contains a very basic example of 
19 a SAM plugin. It just prints the name of the function that is executed using
20 DEBUG. Maybe it's nice to include some of the arguments to the function in the 
21 future too..
22
23 New SAM plugins should go into the samba lib directory, (/usr/lib/samba/ 
24 for most distributions) and should be prefixed with 'sam_' and should go into the 
25 subdir sam/. The SAM subsystem will search in /usr/lib/samba/sam and fall back to 
26 /usr/lib/samba/ . 
27 An example path would be: 
28 /usr/lib/samba/sam/sam_skel.so
29