s3:passdb add idmap control functions
authorChristian Ambach <ambi@samba.org>
Mon, 17 Jun 2013 14:32:02 +0000 (16:32 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 21 Jun 2013 08:44:19 +0000 (10:44 +0200)
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>
source3/include/passdb.h

index 5e5a7bfa58c473e4c06cd651d0697ccd2d1e2fa2..e032ae1014030a1330d8c3593800b2a5789cc0f3 100644 (file)
@@ -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 **);