diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-08-30 11:37:58 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2005-08-30 11:37:58 +0000 |
commit | ece3ee68a4765c9e649643c5952714996e0a78f0 (patch) | |
tree | a9a1a3742dd9a8a12b2fec2f41ca28bc4d414ac1 /source/lib/ldb/modules/ldb_map.c | |
parent | 7d29a35fd6279c299826dd84d7a71a0760ee4f29 (diff) | |
download | samba-ece3ee68a4765c9e649643c5952714996e0a78f0.tar.gz samba-ece3ee68a4765c9e649643c5952714996e0a78f0.tar.xz samba-ece3ee68a4765c9e649643c5952714996e0a78f0.zip |
r9789: Patch from Volker that fixes the build on AIX.
Diffstat (limited to 'source/lib/ldb/modules/ldb_map.c')
-rw-r--r-- | source/lib/ldb/modules/ldb_map.c | 53 |
1 files changed, 32 insertions, 21 deletions
diff --git a/source/lib/ldb/modules/ldb_map.c b/source/lib/ldb/modules/ldb_map.c index 531d5ccd677..c5ddcc7e131 100644 --- a/source/lib/ldb/modules/ldb_map.c +++ b/source/lib/ldb/modules/ldb_map.c @@ -50,7 +50,38 @@ - rename locally and remotely */ -static const struct ldb_map_attribute builtin_attribute_maps[]; +static struct ldb_val map_convert_local_dn(struct ldb_map_context *map, + TALLOC_CTX *ctx, + const struct ldb_val *val); +static struct ldb_val map_convert_remote_dn(struct ldb_map_context *map, + TALLOC_CTX *ctx, + const struct ldb_val *val); +static struct ldb_val map_convert_local_objectclass(struct ldb_map_context *map, + TALLOC_CTX *ctx, + const struct ldb_val *val); +static struct ldb_val map_convert_remote_objectclass(struct ldb_map_context *map, + TALLOC_CTX *ctx, + const struct ldb_val *val); + +static const struct ldb_map_attribute builtin_attribute_maps[] = { + { + .local_name = "dn", + .type = MAP_CONVERT, + .u.convert.remote_name = "dn", + .u.convert.convert_local = map_convert_local_dn, + .u.convert.convert_remote = map_convert_remote_dn, + }, + { + .local_name = "objectclass", + .type = MAP_CONVERT, + .u.convert.remote_name = "objectclass", + .u.convert.convert_local = map_convert_local_objectclass, + .u.convert.convert_remote = map_convert_remote_objectclass, + }, + { + .local_name = NULL, + } +}; struct map_private { struct ldb_map_context context; @@ -1129,23 +1160,3 @@ static struct ldb_val map_convert_remote_objectclass(struct ldb_map_context *map return ldb_val_dup(ctx, val); } -static const struct ldb_map_attribute builtin_attribute_maps[] = { - { - .local_name = "dn", - .type = MAP_CONVERT, - .u.convert.remote_name = "dn", - .u.convert.convert_local = map_convert_local_dn, - .u.convert.convert_remote = map_convert_remote_dn, - }, - { - .local_name = "objectclass", - .type = MAP_CONVERT, - .u.convert.remote_name = "objectclass", - .u.convert.convert_local = map_convert_local_objectclass, - .u.convert.convert_remote = map_convert_remote_objectclass, - }, - { - .local_name = NULL, - } -}; - |