svn commit: samba r24249 - in
branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules: .
abartlet at samba.org
abartlet at samba.org
Mon Aug 6 05:43:54 GMT 2007
Author: abartlet
Date: 2007-08-06 05:43:54 +0000 (Mon, 06 Aug 2007)
New Revision: 24249
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24249
Log:
Thse generated attributes should not be pushed this far down the stack
in any cse.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/entryUUID.c
Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/entryUUID.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/entryUUID.c 2007-08-06 04:07:05 UTC (rev 24248)
+++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/entryUUID.c 2007-08-06 05:43:54 UTC (rev 24249)
@@ -172,49 +172,6 @@
return *val;
}
-static struct ldb_val class_to_oid(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val)
-{
- int i;
- struct map_private *map_private;
- struct entryUUID_private *entryUUID_private;
- struct ldb_result *list;
-
- map_private = talloc_get_type(module->private_data, struct map_private);
-
- entryUUID_private = talloc_get_type(map_private->caller_private, struct entryUUID_private);
- list = entryUUID_private->objectclass_res;
-
- for (i=0; list && (i < list->count); i++) {
- if (ldb_attr_cmp((const char *)val->data, ldb_msg_find_attr_as_string(list->msgs[i], "lDAPDisplayName", NULL)) == 0) {
- const char *oid = ldb_msg_find_attr_as_string(list->msgs[i], "governsID", NULL);
- return data_blob_string_const(oid);
- }
- }
- return *val;
-}
-
-static struct ldb_val class_from_oid(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val)
-{
- int i;
- struct map_private *map_private;
- struct entryUUID_private *entryUUID_private;
- struct ldb_result *list;
-
- map_private = talloc_get_type(module->private_data, struct map_private);
-
- entryUUID_private = talloc_get_type(map_private->caller_private, struct entryUUID_private);
- list = entryUUID_private->objectclass_res;
-
- for (i=0; list && (i < list->count); i++) {
- if (ldb_attr_cmp((const char *)val->data, ldb_msg_find_attr_as_string(list->msgs[i], "governsID", NULL)) == 0) {
- const char *oc = ldb_msg_find_attr_as_string(list->msgs[i], "lDAPDisplayName", NULL);
- return data_blob_string_const(oc);
- }
- }
- return *val;
-}
-
-
static struct ldb_val normalise_to_signed32(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val)
{
long long int signed_ll = strtoll((const char *)val->data, NULL, 10);
@@ -398,20 +355,7 @@
}
}
},
-#if 0
{
- .local_name = "allowedChildClassesEffective",
- .type = MAP_CONVERT,
- .u = {
- .convert = {
- .remote_name = "allowedChildClassesEffective",
- .convert_local = class_to_oid,
- .convert_remote = class_from_oid,
- },
- },
- },
-#endif
- {
.local_name = "objectCategory",
.type = MAP_CONVERT,
.u = {
@@ -560,20 +504,7 @@
}
}
},
-#if 0
{
- .local_name = "allowedChildClassesEffective",
- .type = MAP_CONVERT,
- .u = {
- .convert = {
- .remote_name = "allowedChildClassesEffective",
- .convert_local = class_to_oid,
- .convert_remote = class_from_oid,
- },
- },
- },
-#endif
- {
.local_name = "objectCategory",
.type = MAP_CONVERT,
.u = {
More information about the samba-cvs
mailing list