From 470043bf7ae038e590a011e90bbf610c76d53767 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 27 Nov 2007 04:43:20 +0100 Subject: r26140: Add a new test for searches by distinguieshedName and dn, and implement these in the simple ldap mapping module. We still don't pass this test, because we must get linked attributes into OpenLDAP. Andrew Bartlett (This used to be commit d41f34e979bb119f71ab3cc2fdb3c08e4b92849c) --- source4/dsdb/samdb/ldb_modules/simple_ldap_map.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source4/dsdb/samdb/ldb_modules/simple_ldap_map.c') diff --git a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c index 2b8b07f0b4..7efcccc9ff 100644 --- a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c +++ b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c @@ -375,6 +375,15 @@ static const struct ldb_map_attribute entryuuid_attributes[] = } } }, + { + .local_name = "dn", + .type = MAP_RENAME, + .u = { + .rename = { + .remote_name = "entryDN" + } + } + }, { .local_name = "groupType", .type = MAP_CONVERT, @@ -524,6 +533,15 @@ static const struct ldb_map_attribute nsuniqueid_attributes[] = } } }, + { + .local_name = "dn", + .type = MAP_RENAME, + .u = { + .rename = { + .remote_name = "entryDN" + } + } + }, { .local_name = "groupType", .type = MAP_CONVERT, -- cgit