mirror of
https://github.com/samba-team/samba.git
synced 2025-08-24 21:49:29 +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 3b5c973988
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user