Manage users via the config file

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
zinefer
Posts: 3
Joined: Mon Feb 12, 2018 6:42 pm

Manage users via the config file

Post by zinefer » Mon Feb 12, 2018 6:45 pm

Has anyone managed their users by modifying the config file directly?

Mainly, how is the password encoded?

zinefer
Posts: 3
Joined: Mon Feb 12, 2018 6:42 pm

Re: Manage users via the config file

Post by zinefer » Tue Feb 13, 2018 2:54 am

It took me a while but I finally managed to create the same hash in bash.

echo -ne "passwordUSERNAME" | openssl sha | awk '{print $2}' | xxd -r -p | base64

zinefer
Posts: 3
Joined: Mon Feb 12, 2018 6:42 pm

Re: Manage users via the config file

Post by zinefer » Tue Feb 13, 2018 4:54 pm

I've been working on this a bit more and realized the password is hashed twice. I also slightly improved the command from my last post.

AuthNtLmSecureHash:
echo -ne "password" | iconv -f ascii -t utf16le | openssl md4 -binary | base64
AuthPassword:
echo -ne "passwordUSERNAME" | openssl sha -binary | base64

scegg
Posts: 19
Joined: Mon Mar 31, 2014 5:26 pm

Re: Manage users via the config file

Post by scegg » Tue Sep 03, 2019 8:40 am

sha(sha0) is not supported under my openssl now.
Have to use another way to encrypt it.

Post Reply