1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/examples/sam
Jelmer Vernooij 2cd64003e3 - Don't put pointer to sam_domain_handle in sam_methods but single domainsid and domainname
- Allocate sam_methods, set domain_sid, domain_name and backend_name in make_sam_methods_backend_entry instead of in the backend
- Remove sam_context and domain_sid pointers from the sam_init_function - we don't need those arguments anymore since they're
  available in sam_methods as well
(This used to be commit 50d2527eed)
2002-09-24 20:18:39 +00:00
..
Makefile.in Adding makefile for sam_skel module 2002-08-29 17:08:13 +00:00
README Example sam module (skeleton) from metze 2002-08-29 07:26:16 +00:00
sam_skel.c - Don't put pointer to sam_domain_handle in sam_methods but single domainsid and domainname 2002-09-24 20:18:39 +00:00

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