mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Fix rdn_name errors.
Return the correct error when the DN is mismatched with it's RDN attribute (now matches AD). Andrew Bartlett
This commit is contained in:
parent
0a5fa41dd7
commit
bf7166e785
@ -119,7 +119,8 @@ static int rdn_name_add(struct ldb_module *module, struct ldb_request *req)
|
||||
"RDN mismatch on %s: %s (%s)",
|
||||
ldb_dn_get_linearized(msg->dn), rdn_name, rdn_val.data);
|
||||
talloc_free(down_req);
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
/* Match AD's error here */
|
||||
return LDB_ERR_INVALID_DN_SYNTAX;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user