Excuse me for misunderstanding your post. You explicitly stated in your post
through the command line
and wrote that it asks for the old password. Server.app is not accessed through the command line, and it does not ask for the old password of the user.
You might like to try Workgroup Manager instead.