mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
s4:rdn_name module - a normal error message should be enough for this failure
I don't think that we really want to have this error printed out on the server console (stdout) since this hasn't serious results as DB or data corruption and similar.
This commit is contained in:
parent
2f211daa47
commit
d2ac4cbcee
@ -156,15 +156,17 @@ static int rdn_name_add(struct ldb_module *module, struct ldb_request *req)
|
||||
}
|
||||
}
|
||||
if (i == attribute->num_values) {
|
||||
char *rdn_errstring = talloc_asprintf(ac, "RDN mismatch on %s: %s (%.*s) should match one of:",
|
||||
ldb_dn_get_linearized(msg->dn), rdn_name,
|
||||
(int)rdn_val.length, (const char *)rdn_val.data);
|
||||
char *rdn_errstring = talloc_asprintf(ac,
|
||||
"RDN mismatch on %s: %s (%.*s) should match one of:",
|
||||
ldb_dn_get_linearized(msg->dn), rdn_name,
|
||||
(int)rdn_val.length, (const char *)rdn_val.data);
|
||||
for (i = 0; i < attribute->num_values; i++) {
|
||||
rdn_errstring = talloc_asprintf_append(rdn_errstring, " (%.*s)",
|
||||
(int)attribute->values[i].length,
|
||||
(const char *)attribute->values[i].data);
|
||||
rdn_errstring = talloc_asprintf_append(
|
||||
rdn_errstring, " (%.*s)",
|
||||
(int)attribute->values[i].length,
|
||||
(const char *)attribute->values[i].data);
|
||||
}
|
||||
ldb_debug_set(ldb, LDB_DEBUG_FATAL, "%s", rdn_errstring);
|
||||
ldb_set_errstring(ldb, rdn_errstring);
|
||||
talloc_free(ac);
|
||||
/* Match AD's error here */
|
||||
return LDB_ERR_INVALID_DN_SYNTAX;
|
||||
|
Loading…
x
Reference in New Issue
Block a user