You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[airos] updated docs for airos backend and intermediate representation
[airos] fixed problem with ellipsis not recognised in json example
[airos] updated docs for ntp client and ntp servers
[airos] fixed netjoson examples in documentation to be compliant to
netjson
[airos] fixed typo
[airos] added terminal dot
[airos] added snippet for the undecided about authentication encryption
I the line ``users.1.password=$1$yRo1tmtC$EcdoRX.JnD4VaEYgghgWg1`` there are both the salt and the password hash in the format ``$ algorithm $ salt $ hash $``, e.g in the previous block ``algorithm=1``, ``salt=yRo1tmtC`` and ``hash=EcdoRX.JnD4VaEYgghgWg1``.
211
+
In the line ``users.1.password=$1$yRo1tmtC$EcdoRX.JnD4VaEYgghgWg1`` there are both the salt and the password hash in the format ``$ algorithm $ salt $ hash $``, e.g in the previous block ``algorithm=1``, ``salt=yRo1tmtC`` and ``hash=EcdoRX.JnD4VaEYgghgWg1``.
192
212
193
213
To specify the password in NetJSON use the ``user`` property.
194
214
@@ -220,9 +240,11 @@ As an example here is a snippet that set the authentication protocol to WPA2 per
220
240
{
221
241
"name": "wlan0",
222
242
"type": "wireless",
223
-
"encryption": {
224
-
"protocol": "wpa2_personal",
225
-
"key": "changeme"
243
+
"wireless": {
244
+
"encryption": {
245
+
"protocol": "wpa2_personal",
246
+
"key": "changeme"
247
+
}
226
248
}
227
249
}
228
250
]
@@ -237,12 +259,31 @@ And another that set the authentication protocol to WPA2 enterprise, but this is
237
259
{
238
260
"name": "wlan0",
239
261
"type": "wireless",
240
-
"encryption": {
241
-
"protocol": "wpa2_enterprise",
242
-
"key": "changeme"
262
+
"wireless": {
263
+
"encryption": {
264
+
"protocol": "wpa2_enterprise",
265
+
"key": "changeme"
266
+
}
243
267
}
244
268
}
245
269
]
246
270
}
247
271
272
+
The ``encryption`` property **must** be specified otherwise you will experience a ``ValidationError``, if you are not sure on what you want
273
+
use this snippet to set to no encryption
274
+
275
+
.. code-block:: json
276
+
277
+
{
278
+
"interfaces": [
279
+
{
280
+
"name": "wlan0",
281
+
"type": "wireless",
282
+
"wireless": {
283
+
"encryption": {
284
+
"protocol": "none"
285
+
}
286
+
}
287
+
}
288
+
}
248
289
Leaving the `NetJSON Encryption object <http://netjson.org/rfc.html#rfc.section.5.4.2.1>` empty defaults to no encryption at all.
0 commit comments