[VServer] How to add/remove users
Erich Geiersberger
erichg at mcmm.com
Mon Jan 12 14:01:57 CST 2004
> > Next Problem:
> > When a new User logs in for the first time, I think I should check if
> > he already exists before adding him with AddUser() (Could be he just
> > entered a wrong password)
>
> > How can I check for this type of information?
>
>Erich,
>
>Note, that AddUser() as other Vserver Xtra commands can be made ONLY by
>administrator.
>
>If user have enter not correct login or password he will get error about
>this, and must try again.
>
>But you should not worry about FIRST TIME.
>User self must not be able add own login/password...well only if your app
>logic require this...
>
>
>Usually admin must prepare server with logins,
>Inform users about their logins.
>And user must use them.
I have used a different approach.
Since the program knows my default master password and my default
master login, the client is able to register himself on his first
login.
I already asked for that, but need to ask again here: is it ok to
open master.vdb and read this info from there? It seems to work and I
get what I need, but I am not sure if this is all right...
Erich
More information about the Valentina
mailing list