Skip to content

Commit 3b1d789

Browse files
committed
[airos] added doc about user password for airos
1 parent 4cb612b commit 3b1d789

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

docs/source/backends/airos.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,36 @@ By setting the key ``ntp_servers`` in your input you can provide a list of ntp s
139139
]
140140
}
141141
142+
Users
143+
-----
144+
145+
We can specify the user password as a blob divided into ``salt`` and ``hash``.
146+
147+
From the antenna configuration take the user section.
148+
149+
.. code-block:: ini
150+
151+
users.status=enabled
152+
users.1.status=enabled
153+
users.1.name=ubnt
154+
users.1.password=$1$yRo1tmtC$EcdoRX.JnD4VaEYgghgWg1
155+
156+
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``.
157+
158+
To specify the password in NetJSON use the ``user`` property.
159+
160+
.. code-block:: json
161+
162+
{
163+
"type": "DeviceConfiguration",
164+
"user": {
165+
"name": "ubnt",
166+
"passsword": "EcdoRX.JnD4VaEYgghgWg1",
167+
"salt": "yRo1tmtC"
168+
}
169+
}
170+
171+
142172
WPA2
143173
----
144174

0 commit comments

Comments
 (0)