The AddUser method creates a virtual user that is associated
with the server. When a client connects with the server and provides
authentication credentials, the server will check if the username has
been created using this method. If a match is found, the client access
rights will be updated.
If you wish to modify the information for an existing user, it is
not necessary to delete the username first. If this method is called
with a username that already exists, that record is replaced with the
values passed to this method. You cannot use this method to create a
virtual user named "anonymous".
The virtual users created by this method exist only as long as the
server is active. If you wish to maintain a persistent database of
users and passwords, you are responsible for its implementation based
on the requirements of your specific application. For example, a
simple implementation would be to store the user information in a
local XML or INI file and then read that configuration file after the
server has started, calling this method for each user that is
listed.