File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ auth = "plain[otp=/run/ocserv/users.oath]"
30
30
{% else %}
31
31
auth = "plain[/run/ocserv/ocpasswd]"
32
32
{% endif %}
33
- {% elif "cert " in authentication .mode %}
33
+ {% elif "certificate " in authentication .mode %}
34
34
auth = "certificate"
35
- {% if authentication .mode .cert == "cn" %}
35
+ {% if authentication .mode .certificate == "cn" %}
36
36
cert-user-oid = 2.5.4.3
37
- {% elif authentication .mode .cert == "uid" %}
37
+ {% elif authentication .mode .certificate == "uid" %}
38
38
cert-user-oid = 0.9.2342.19200300.100.1.1
39
39
{% else %}
40
- cert-user-oid = {{ authentication.mode.cert }}
40
+ cert-user-oid = {{ authentication.mode.certificate }}
41
41
{% endif %}
42
42
{% else %}
43
43
auth = "plain[/run/ocserv/ocpasswd]"
Original file line number Diff line number Diff line change 69
69
<valueless />
70
70
</properties >
71
71
</leafNode >
72
- <leafNode name =" cert " >
72
+ <leafNode name =" certificate " >
73
73
<properties >
74
74
<help >Use certificate based authentication</help >
75
75
<valueHelp >
Original file line number Diff line number Diff line change @@ -108,13 +108,13 @@ def verify(ocserv):
108
108
and 'radius' in ocserv ['authentication' ]['mode' ])
109
109
or
110
110
('local' in ocserv ['authentication' ]['mode' ]
111
- and 'cert ' in ocserv ['authentication' ]['mode' ])
111
+ and 'certificate ' in ocserv ['authentication' ]['mode' ])
112
112
or
113
113
('radius' in ocserv ['authentication' ]['mode' ]
114
- and 'cert ' in ocserv ['authentication' ]['mode' ])
114
+ and 'certificate ' in ocserv ['authentication' ]['mode' ])
115
115
):
116
116
raise ConfigError (
117
- 'OpenConnect authentication modes are mutually-exclusive. Only one of local, radius, or cert .'
117
+ 'OpenConnect authentication modes are mutually-exclusive. Only one of local, radius, or certificate .'
118
118
)
119
119
if 'radius' in ocserv ['authentication' ]['mode' ]:
120
120
if 'server' not in ocserv ['authentication' ]['radius' ]:
@@ -208,7 +208,7 @@ def verify(ocserv):
208
208
raise ConfigError ('SSL certificate missing on OpenConnect config!' )
209
209
verify_pki_certificate (ocserv , ocserv ['ssl' ]['certificate' ])
210
210
211
- if 'ca_certificate' not in ocserv ['ssl' ] and 'cert ' in ocserv ['authentication' ]['mode' ]:
211
+ if 'ca_certificate' not in ocserv ['ssl' ] and 'certificiate ' in ocserv ['authentication' ]['mode' ]:
212
212
raise ConfigError ('CA certificate must be provided in certificate authentication mode!' )
213
213
214
214
if 'ca_certificate' in ocserv ['ssl' ]:
You can’t perform that action at this time.
0 commit comments