summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/modules/ldb_map.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-01 15:33:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:36:21 -0500
commite2e2508b586a112e612bf3660f80d25c9bf8bc90 (patch)
tree7dabda32e3e7cd3779460eca08816df449bb29c1 /source4/lib/ldb/modules/ldb_map.h
parent6ff97621fa744404ec3da6a4d38031eeec4741b3 (diff)
downloadsamba-e2e2508b586a112e612bf3660f80d25c9bf8bc90.tar.gz
samba-e2e2508b586a112e612bf3660f80d25c9bf8bc90.tar.bz2
samba-e2e2508b586a112e612bf3660f80d25c9bf8bc90.zip
r9899: Be more conservative about what is sent to the remote server in ldb_map.
(This used to be commit 76e943d4416e38ce4cce27d5403bc3e133d0025b)
Diffstat (limited to 'source4/lib/ldb/modules/ldb_map.h')
-rw-r--r--source4/lib/ldb/modules/ldb_map.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source4/lib/ldb/modules/ldb_map.h b/source4/lib/ldb/modules/ldb_map.h
index 4077660160..984a4a2cd5 100644
--- a/source4/lib/ldb/modules/ldb_map.h
+++ b/source4/lib/ldb/modules/ldb_map.h
@@ -81,7 +81,8 @@ struct ldb_map_attribute
struct ldb_module *,
const char *local_attr,
const struct ldb_message *local,
- struct ldb_message *remote);
+ struct ldb_message *remote_mp,
+ struct ldb_message *remote_fb);
/* Name(s) for this attribute on the remote server. This is an array since
* one local attribute's data can be split up into several attributes
@@ -92,15 +93,22 @@ struct ldb_map_attribute
} u;
};
+#define LDB_MAP_MAX_SUBCLASSES 10
+#define LDB_MAP_MAX_MUSTS 10
+#define LDB_MAP_MAX_MAYS 50
struct ldb_map_objectclass
{
const char *local_name;
const char *remote_name;
+ const char *base_classes[LDB_MAP_MAX_SUBCLASSES];
+ const char *musts[LDB_MAP_MAX_MUSTS];
+ const char *mays[LDB_MAP_MAX_MAYS];
};
struct ldb_map_context
{
struct ldb_map_attribute *attribute_maps;
+ /* NOTE: Always declare base classes first here */
const struct ldb_map_objectclass *objectclass_maps;
struct ldb_context *mapped_ldb;
};