summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorcuongdt1994 <63875204+cuongdt1994@users.noreply.github.com>2023-06-06 04:49:05 +0700
committerGitHub <noreply@github.com>2023-06-06 04:49:05 +0700
commit65654946aa4577c753f66b2577119c74f2ba7777 (patch)
treeb0b919493de97607b47f27eb6c90fce530122496 /src/conf_mode
parent2a36205840072ec51a7166d23298491a90164d63 (diff)
downloadvyos-1x-65654946aa4577c753f66b2577119c74f2ba7777.tar.gz
vyos-1x-65654946aa4577c753f66b2577119c74f2ba7777.zip
T5260: Do not use deprecated python crypt module
Remove the quotes, this will always return the hash for string "password".
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/vpn_openconnect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vpn_openconnect.py b/src/conf_mode/vpn_openconnect.py
index dd347eb03..3d5dc12a4 100755
--- a/src/conf_mode/vpn_openconnect.py
+++ b/src/conf_mode/vpn_openconnect.py
@@ -45,7 +45,7 @@ radius_servers = cfg_dir + '/radius_servers'
# Generate hash from user cleartext password
def get_hash(password):
- return sha512_crypt.hash("password")
+ return sha512_crypt.hash(password)