Page 1 of 1

Loading batch file with user names and hashed passwords

Posted: Thu Jul 06, 2017 5:38 pm
by howlingcat
We need to be able to add a batch file that includes many VPN server users and their passwords.
Unfortunately, when we load the file to the server we no longer have the clear password: Users have already been created, and their password stored hashed in our database.
We would like to save the user's password hashed using the hash algorithm SoftEther uses, then load it when we need to.

1. Is it possible to do that?
2. What is the hashing algorithm SoftEther uses to store passwords?
3. Where can I read about loading such a batch file? I looked up the documentation but couldn't find it there.

Thanks,

Howling

Re: Loading batch file with user names and hashed passwords

Posted: Fri Jul 21, 2017 5:32 am
by howlingcat
Does anyone have any idea?

Thanks

Re: Loading batch file with user names and hashed passwords

Posted: Thu Aug 03, 2017 5:37 am
by thisjun
I recommend the password is stored in your DB as plain text.

>1. Is it possible to do that?

Yes, it's possible.

>2. What is the hashing algorithm SoftEther uses to store passwords?
Please check these code.
https://github.com/SoftEtherVPN/SoftEth ... unt.c#L689
https://github.com/SoftEtherVPN/SoftEth ... PP.c#L2626


>3. Where can I read about loading such a batch file? I looked up the documentation but couldn't find it there.
Please check this command.
http://www.softether.org/4-docs/1-manua ... t_Password