mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s4-drs: having no SPNs to change is not an error
This commit is contained in:
parent
ba745a4356
commit
67d8518f2c
@ -103,6 +103,13 @@ WERROR dcesrv_drsuapi_DsWriteAccountSpn(struct dcesrv_call_state *dce_call, TALL
|
|||||||
}
|
}
|
||||||
spn_count++;
|
spn_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (msg->num_elements == 0) {
|
||||||
|
DEBUG(2,("No SPNs need changing on %s\n", ldb_dn_get_linearized(msg->dn)));
|
||||||
|
r->out.res->res1.status = WERR_OK;
|
||||||
|
return WERR_OK;
|
||||||
|
}
|
||||||
|
|
||||||
for (i=0;i<msg->num_elements;i++) {
|
for (i=0;i<msg->num_elements;i++) {
|
||||||
switch (req->operation) {
|
switch (req->operation) {
|
||||||
case DRSUAPI_DS_SPN_OPERATION_ADD:
|
case DRSUAPI_DS_SPN_OPERATION_ADD:
|
||||||
|
Loading…
Reference in New Issue
Block a user