diff options
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/entryUUID.c | 9 | ||||
-rw-r--r-- | source4/dsdb/samdb/samdb.c | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/entryUUID.c b/source4/dsdb/samdb/ldb_modules/entryUUID.c index 5f7efc1681..acc8067fa7 100644 --- a/source4/dsdb/samdb/ldb_modules/entryUUID.c +++ b/source4/dsdb/samdb/ldb_modules/entryUUID.c @@ -142,6 +142,15 @@ const struct ldb_map_attribute entryUUID_attributes[] = } }, { + .local_name = "distinguishedName", + .type = MAP_RENAME, + .u = { + .rename = { + .remote_name = "entryDN" + } + } + }, + { .local_name = "*", .type = MAP_KEEP, }, diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c index 8351ad5baf..51f4c91569 100644 --- a/source4/dsdb/samdb/samdb.c +++ b/source4/dsdb/samdb/samdb.c @@ -705,6 +705,8 @@ int samdb_copy_template(struct ldb_context *ldb, if (strcasecmp(el->name, "cn") == 0 || strcasecmp(el->name, "name") == 0 || strcasecmp(el->name, "sAMAccountName") == 0 || + strcasecmp(el->name, "sAMAccountName") == 0 || + strcasecmp(el->name, "distinguishedName") == 0 || strcasecmp(el->name, "objectGUID") == 0) { continue; } |