Loading batch file with user names and hashed passwords

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
howlingcat
Posts: 10
Joined: Thu Oct 20, 2016 9:17 pm

Loading batch file with user names and hashed passwords

Post by howlingcat » Thu Jul 06, 2017 5:38 pm

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

howlingcat
Posts: 10
Joined: Thu Oct 20, 2016 9:17 pm

Re: Loading batch file with user names and hashed passwords

Post by howlingcat » Fri Jul 21, 2017 5:32 am

Does anyone have any idea?

Thanks

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: Loading batch file with user names and hashed passwords

Post by thisjun » Thu Aug 03, 2017 5:37 am

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

Post Reply