s4-dsdb: change samdb_replace() to dsdb_replace() and allow for dsdb_flags
[ira/wip.git] / source4 / kdc / kpasswdd.c
index 8009f9c06adade82ee829153bd4d8e8eac0e8e44..2f4ebe0557cbc035cc56f05c6db345ff7029bff0 100644 (file)
@@ -379,7 +379,7 @@ static bool kpasswd_process_request(struct kdc_server *kdc,
 
                if (NT_STATUS_IS_OK(status)) {
                        /* modify the samdb record */
-                       ret = samdb_replace(samdb, mem_ctx, msg);
+                       ret = dsdb_replace(samdb, msg, 0);
                        if (ret != 0) {
                                DEBUG(2,("Failed to modify record to set password on %s: %s\n",
                                         ldb_dn_get_linearized(msg->dn),