summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-09 18:10:38 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-09 18:56:30 +1100
commit67d8518f2c5bcb611e569164d31ed760c8965064 (patch)
tree377a19a7d9ef8350a4a8e2aa9a71b92882c7bc55 /source4
parentba745a43567062e48fe8e5b316f390b99868c309 (diff)
downloadsamba-67d8518f2c5bcb611e569164d31ed760c8965064.tar.gz
samba-67d8518f2c5bcb611e569164d31ed760c8965064.tar.bz2
samba-67d8518f2c5bcb611e569164d31ed760c8965064.zip
s4-drs: having no SPNs to change is not an error
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/drsuapi/writespn.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/rpc_server/drsuapi/writespn.c b/source4/rpc_server/drsuapi/writespn.c
index 7c8ff3332b..8e20c88fae 100644
--- a/source4/rpc_server/drsuapi/writespn.c
+++ b/source4/rpc_server/drsuapi/writespn.c
@@ -103,6 +103,13 @@ WERROR dcesrv_drsuapi_DsWriteAccountSpn(struct dcesrv_call_state *dce_call, TALL
}
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++) {
switch (req->operation) {
case DRSUAPI_DS_SPN_OPERATION_ADD: