mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s4-drs: use a permissive modify in addentry
It is not an error if entries already exist.
This commit is contained in:
parent
4694b4677a
commit
2908f21c65
@ -128,7 +128,7 @@ static WERROR drsuapi_add_SPNs(struct drsuapi_bind_state *b_state,
|
|||||||
return WERR_NOMEM;
|
return WERR_NOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ldb_modify(b_state->sam_ctx, msg);
|
ret = dsdb_modify_permissive(b_state->sam_ctx, msg);
|
||||||
if (ret != LDB_SUCCESS) {
|
if (ret != LDB_SUCCESS) {
|
||||||
DEBUG(0,(__location__ ": Failed to add SPNs - %s\n",
|
DEBUG(0,(__location__ ": Failed to add SPNs - %s\n",
|
||||||
ldb_errstring(b_state->sam_ctx)));
|
ldb_errstring(b_state->sam_ctx)));
|
||||||
|
Loading…
Reference in New Issue
Block a user