mirror of
https://github.com/samba-team/samba.git
synced 2025-03-25 14:50:24 +03:00
r17639: Martin Kuhl noticed that we loaded an incorrect value for
distinguisedName on templated objects. In looking how to handle distinguishedName correctly on LDAP, I was very glad to find it supported entryDN, and this adds another mapping. Andrew Bartlett (This used to be commit 3b5c973988648a2b2a5e1885ee894607e4d9679b)
This commit is contained in:
parent
0148cfae31
commit
acd66674b4
@ -141,6 +141,15 @@ const struct ldb_map_attribute entryUUID_attributes[] =
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
.local_name = "distinguishedName",
|
||||
.type = MAP_RENAME,
|
||||
.u = {
|
||||
.rename = {
|
||||
.remote_name = "entryDN"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
.local_name = "*",
|
||||
.type = MAP_KEEP,
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user