1
0
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:
Andrew Tridgell 2010-01-09 18:10:38 +11:00
parent ba745a4356
commit 67d8518f2c

View File

@ -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: