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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c53f1956b9b8994f831ebe16c57c03d68063f00
4
- data.tar.gz: 79c052e1292418d755de8ce385f64bd06febe124
3
+ metadata.gz: c085986407fc002975286f5c5e8edab03ff3aa4b
4
+ data.tar.gz: 0d721be5adeb09fd4415afc796f5d89154351a04
5
5
  SHA512:
6
- metadata.gz: e0a716ca145189a96c24c67485321d24d4c85a995c5582e98ea46ccf25c3c7ff215013371620c0d952919e55105f09a171b32c09ee7cceee73aae4d34d30dda8
7
- data.tar.gz: aad1f689dc09017f99b0c43ae4148c4b3c4085db2ec0f1f16b7e0fc5156205ba034741082a7ee840a233839c41c08f4910099599e826a1d96996cb2c749ac7ed
6
+ metadata.gz: 86354f3d257b6b49055e24178942b0711752998dcb05f502339d93d490e5612071210e1bf8a708284da226a1a4f495a7735a51521c1e1c9bdb5d3a2273de69bf
7
+ data.tar.gz: 2bcde9b9b1743827d8260860b4f45554bfc63b97260592be0b05adf03697cab1062f177c1e30d02bbfe4d08031798dac2b4e7ac6e257be6d9aaf7b5f7ef55a9d
@@ -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'].delete('AuthenticationMethod')
189
+ vpn['VPN']['AuthName'] = "#{user}-#{device}"
190
+ vpn['VPN']['AuthenticationMethod'] = 'Password'
190
191
  vpn['VPN'].delete('PayloadCertificateUUID')
191
192
  end
192
193
 
@@ -1,4 +1,4 @@
1
1
  module Ovpnmcgen
2
- VERSION = "0.6.0.pre1"
2
+ VERSION = "0.6.0.pre2"
3
3
  SUMMARY = "An OpenVPN iOS Configuration Profile (.mobileconfig) Utility"
4
4
  end
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.pre1
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 00:00:00.000000000 Z
11
+ date: 2018-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler