- /* load the existing SPNs, as these are
- * ignored for adds and deletes (see MS-DRSR
- * section 4.1.28.3)
- */
- ret = ldb_search(b_state->sam_ctx, msg, &res, msg->dn, LDB_SCOPE_BASE,
- attrs, NULL);
- if (ret != LDB_SUCCESS) {
- DEBUG(0,("Failed to load existing SPNs on %s: %s\n",
- ldb_dn_get_linearized(msg->dn),
- ldb_errstring(b_state->sam_ctx)));
- r->out.res->res1.status = WERR_DS_OBJ_NOT_FOUND;
- return WERR_OK;
- }
- el = ldb_msg_find_element(res->msgs[0], "servicePrincipalName");
-