summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-06-17 16:32:02 +0200
committerMichael Adam <obnox@samba.org>2013-06-21 10:44:19 +0200
commit9eb67f259f91e31dfb6a7abf2b42ec8a4ce9f837 (patch)
treeef8f60bfbce9f45d4f1bb28af31af872c12eceff /source3
parent0ad89c3cc96ce9f66325424adc96babdcc2781d5 (diff)
downloadsamba-9eb67f259f91e31dfb6a7abf2b42ec8a4ce9f837.tar.gz
samba-9eb67f259f91e31dfb6a7abf2b42ec8a4ce9f837.tar.bz2
samba-9eb67f259f91e31dfb6a7abf2b42ec8a4ce9f837.zip
s3:passdb add idmap control functions
make it possible for each backend to specify for which domains it should be asked for SID->xid mappings Pair-Programmed-With: Michael Adam <obnox@samba.org> Signed-off-by: Christian Ambach <ambi@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/include/passdb.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h
index 5e5a7bfa58..e032ae1014 100644
--- a/source3/include/passdb.h
+++ b/source3/include/passdb.h
@@ -413,9 +413,10 @@ enum pdb_policy_type {
* Changed to 19, removed uid_to_rid
* Changed to 20, pdb_secret calls
* Changed to 21, set/enum_upn_suffixes. AB.
+ * Changed to 22, idmap control functions
*/
-#define PASSDB_INTERFACE_VERSION 21
+#define PASSDB_INTERFACE_VERSION 22
struct pdb_methods
{
@@ -624,6 +625,12 @@ struct pdb_methods
uint32_t num_suffixes,
const char **suffixes);
+ bool (*is_responsible_for_our_sam)(struct pdb_methods *methods);
+ bool (*is_responsible_for_builtin)(struct pdb_methods *methods);
+ bool (*is_responsible_for_wellknown)(struct pdb_methods *methods);
+ bool (*is_responsible_for_unix_users)(struct pdb_methods *methods);
+ bool (*is_responsible_for_unix_groups)(struct pdb_methods *methods);
+
void *private_data; /* Private data of some kind */
void (*free_private_data)(void **);