ovpnmcgen.rb 0.6.0.pre1 → 0.6.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/gen_basic.feature +15 -4
- data/lib/ovpnmcgen.rb +2 -1
- data/lib/ovpnmcgen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c085986407fc002975286f5c5e8edab03ff3aa4b
|
4
|
+
data.tar.gz: 0d721be5adeb09fd4415afc796f5d89154351a04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86354f3d257b6b49055e24178942b0711752998dcb05f502339d93d490e5612071210e1bf8a708284da226a1a4f495a7735a51521c1e1c9bdb5d3a2273de69bf
|
7
|
+
data.tar.gz: 2bcde9b9b1743827d8260860b4f45554bfc63b97260592be0b05adf03697cab1062f177c1e30d02bbfe4d08031798dac2b4e7ac6e257be6d9aaf7b5f7ef55a9d
|
data/features/gen_basic.feature
CHANGED
@@ -78,6 +78,11 @@ Feature: Basic Generate Functionality
|
|
78
78
|
<!DOCTYPE plist PUBLIC "-\/\/Apple*\/\/DTD PLIST 1.0\/\/EN" "http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd">
|
79
79
|
<plist version="1.0">
|
80
80
|
"""
|
81
|
+
And the output should match:
|
82
|
+
"""
|
83
|
+
<key>AuthenticationMethod</key>
|
84
|
+
\s*<string>Certificate</string>
|
85
|
+
"""
|
81
86
|
And the output should match:
|
82
87
|
"""
|
83
88
|
<key>remote</key>
|
@@ -116,6 +121,16 @@ Feature: Basic Generate Functionality
|
|
116
121
|
<!DOCTYPE plist PUBLIC "-\/\/Apple*\/\/DTD PLIST 1.0\/\/EN" "http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd">
|
117
122
|
<plist version="1.0">
|
118
123
|
"""
|
124
|
+
And the output should match:
|
125
|
+
"""
|
126
|
+
<key>AuthenticationMethod</key>
|
127
|
+
\s*<string>Password</string>
|
128
|
+
"""
|
129
|
+
And the output should match:
|
130
|
+
"""
|
131
|
+
<key>AuthName</key>
|
132
|
+
\s*<string>cucumber-aruba</string>
|
133
|
+
"""
|
119
134
|
And the output should match:
|
120
135
|
"""
|
121
136
|
<key>remote</key>
|
@@ -141,10 +156,6 @@ Feature: Basic Generate Functionality
|
|
141
156
|
<key>OnDemandEnabled</key>
|
142
157
|
\s*<integer>1</integer>
|
143
158
|
"""
|
144
|
-
And the output should not match:
|
145
|
-
"""
|
146
|
-
<key>AuthenticationMethod</key>
|
147
|
-
"""
|
148
159
|
And the output should not match:
|
149
160
|
"""
|
150
161
|
<key>PayloadCertificateUUID</key>
|
data/lib/ovpnmcgen.rb
CHANGED
@@ -186,7 +186,8 @@ module Ovpnmcgen
|
|
186
186
|
'VendorConfig' => ovpnconfighash
|
187
187
|
}
|
188
188
|
unless p12file
|
189
|
-
vpn['VPN']
|
189
|
+
vpn['VPN']['AuthName'] = "#{user}-#{device}"
|
190
|
+
vpn['VPN']['AuthenticationMethod'] = 'Password'
|
190
191
|
vpn['VPN'].delete('PayloadCertificateUUID')
|
191
192
|
end
|
192
193
|
|
data/lib/ovpnmcgen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovpnmcgen.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0.
|
4
|
+
version: 0.6.0.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ronald Ip
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|