mirror of
https://github.com/samba-team/samba.git
synced 2025-01-07 17:18:11 +03:00
s4:dsdb Return correct error on invalid attribute
This error per the Microsoft testsuite
This commit is contained in:
parent
ab9c232066
commit
e6d8226745
@ -361,7 +361,8 @@ static int fix_attributes(struct ldb_context *ldb, const struct dsdb_schema *sch
|
||||
if (!attribute) {
|
||||
if (strcasecmp(msg->elements[i].name, "clearTextPassword") != 0) {
|
||||
ldb_asprintf_errstring(ldb, "attribute %s is not a valid attribute in schema", msg->elements[i].name);
|
||||
return LDB_ERR_UNDEFINED_ATTRIBUTE_TYPE;
|
||||
/* Apparently Windows sends exactly this behaviour */
|
||||
return LDB_ERR_NO_SUCH_ATTRIBUTE;
|
||||
}
|
||||
} else {
|
||||
msg->elements[i].name = attribute->lDAPDisplayName;
|
||||
|
Loading…
Reference in New Issue
Block a user