diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2002-08-29 07:26:16 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2002-08-29 07:26:16 +0000 |
commit | 08d4898a70000a43190d57a4f47872cc55c7a126 (patch) | |
tree | 2a121a617b0176e35730b941b936573800a68dd4 /examples/sam/README | |
parent | 7a8b82f2cecb9e4022fc19748cdb370bbac936fb (diff) | |
download | samba-08d4898a70000a43190d57a4f47872cc55c7a126.tar.gz samba-08d4898a70000a43190d57a4f47872cc55c7a126.tar.bz2 samba-08d4898a70000a43190d57a4f47872cc55c7a126.zip |
Example sam module (skeleton) from metze
(This used to be commit b2b2c8b9cb94ce84938422132279c26faa231bf7)
Diffstat (limited to 'examples/sam/README')
-rw-r--r-- | examples/sam/README | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/sam/README b/examples/sam/README new file mode 100644 index 0000000000..9e9fbb26db --- /dev/null +++ b/examples/sam/README @@ -0,0 +1,29 @@ +README for Samba SAM Database examples +==================================================== +26-08-2002 Stefan (metze) Metzmacher <metze@metzemix.de> + +Every module MUST have a sam_version() function. + +this is defined in include/sam.h: +#define SAM_MODULE_VERSIONING_MAGIC \ +int sam_version(void)\ +{\ + return SAM_INTERFACE_VERSION;\ +} + +You MUST add this line inside a module: +SAM_MODULE_VERSIONING_MAGIC + + +The sam_skel.c file in this directory contains a very basic example of +a SAM 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.. + +New SAM plugins should go into the samba lib directory, (/usr/lib/samba/ +for most distributions) and should be prefixed with 'sam_' and should go into the +subdir sam/. The SAM subsystem will search in /usr/lib/samba/sam and fall back to +/usr/lib/samba/ . +An example path would be: +/usr/lib/samba/sam/sam_skel.so + |