File tree Expand file tree Collapse file tree
netjsonconfig/backends/openvpn Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,6 +169,8 @@ Required properties:
169169+--------------------------+---------+--------------+-------------------------------------------------------------+
170170| ``verb `` | integer | ``1 `` | from ``0 `` (disabled) to ``11 `` (very verbose) |
171171+--------------------------+---------+--------------+-------------------------------------------------------------+
172+ | ``auth_nocache `` | boolean | ``False `` | |
173+ +--------------------------+---------+--------------+-------------------------------------------------------------+
172174
173175Client specific settings
174176~~~~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ def auto_client(
106106 'float' ,
107107 'fast_io' ,
108108 'verb' ,
109+ "auth_nocache" ,
109110 ]
110111 for key in copy_keys :
111112 if key in server :
Original file line number Diff line number Diff line change 445445 "description" : "Set output verbosity for logging and debugging" ,
446446 "propertyOrder" : 52 ,
447447 },
448+ "auth_nocache" : {
449+ "title" : "auth nocache" ,
450+ "description" : (
451+ "Cause OpenVPN to immediately forget username/password"
452+ "inputs after they are used"
453+ ),
454+ "type" : "boolean" ,
455+ "default" : False ,
456+ "format" : "checkbox" ,
457+ "propertyOrder" : 53 ,
458+ },
448459 },
449460 },
450461 "client" : {
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ def test_server_mode(self):
2020 {
2121 "auth" : "SHA1" ,
2222 "auth_user_pass_verify" : "" ,
23+ "auth_nocache" : True ,
2324 "ca" : "ca.pem" ,
2425 "cert" : "cert.pem" ,
2526 "cipher" : "BF-CBC" ,
@@ -70,6 +71,7 @@ def test_server_mode(self):
7071 expected = """# openvpn config: test-server
7172
7273auth SHA1
74+ auth-nocache
7375ca ca.pem
7476cert cert.pem
7577cipher BF-CBC
@@ -109,6 +111,7 @@ def test_client_mode(self):
109111 {
110112 "auth" : "SHA256" ,
111113 "auth_user_pass" : "" ,
114+ "auth_nocache" : True ,
112115 "ca" : "ca.pem" ,
113116 "cert" : "cert.pem" ,
114117 "cipher" : "AES-128-CBC" ,
@@ -161,6 +164,7 @@ def test_client_mode(self):
161164 expected = """# openvpn config: test-client
162165
163166auth SHA256
167+ auth-nocache
164168ca ca.pem
165169cert cert.pem
166170cipher AES-128-CBC
You can’t perform that action at this time.
0 commit comments