RemoveRadiusUserAttributes – Удаление атрибутов аккаунта Wi-Fi клиента в базе RADIUS
Общая информация
-
Команда актуальна, начиная с версии 1.5.
-
В команде, для удаления, можно использовать только атрибуты с флагом write=true. Также нельзя удалить обязательный атрибут "Cleartext-Password".
Входные параметры
| Параметр | Значение | Формат значения | Расшифровка формата | Ссылка |
|---|---|---|---|---|
usernаme |
Логин клиента. Уникальность аккаунта определяется по логину и домену. |
^.{1,64}$ |
Текст до 64-х символов. |
Wi-Fi пользователь |
domain |
Домен клиента. Уникальность определяется по логину и домену. |
(?=^.{1,235}$)(^((?!-|_|.*(__|--).*)[a-zA-Z0-9_\-]\{1,63}\.)*((?!-|_|.*(__|--).*)[a-zA-Z0-9_\-]{1,63})$) |
Текст длиной до 235 символов, удовлетворяющий правилам FQDN |
Domain |
attribute |
Названия атрибутов пользователя, которые необходимо удалить из аккаунта Wi-Fi клиента, ожидается один или больше элемент. |
.* |
Текст, любые символы |
Выходные параметры
| Параметр | Значение | Формат значения |
|---|---|---|
code |
Код ответа |
Целое неотрицательное число. |
detail |
Пояснение к ответу |
Текст английскими буквами с пробелами и спецсимволами. |
Примеры команд и кодов
| Код | Описание ошибки |
|---|---|
8 |
Нет домена или домен не соответствует правилам |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nbi="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<nbi:RemoveRadiusUserAttributes>
<nbi:username>test</nbi:username>
<nbi:domain></nbi:domain>
</nbi:RemoveRadiusUserAttributes>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RemoveRadiusUserAttributesResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>8</ax21:code>
<ax21:detail>Domain '' does not conform to the rules FQDN</ax21:detail>
</ns:return>
</ns:RemoveRadiusUserAttributesResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
10 |
Домен роли не имеет прав на домен клиента |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nbi="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<nbi:RemoveRadiusUserAttributes>
<nbi:username>test</nbi:username>
<nbi:domain>root</nbi:domain>
</nbi:RemoveRadiusUserAttributes>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RemoveRadiusUserAttributesResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>10</ax21:code>
<ax21:detail>The role of the user does not have rights to this domain: 'root'. Role`s domains: 'enterprise.root test.root hotspot.root'</ax21:detail>
</ns:return>
</ns:RemoveRadiusUserAttributesResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
62 |
Домен не зарегистрирован |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nbi="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<nbi:RemoveRadiusUserAttributes>
<nbi:username>test</nbi:username>
<nbi:domain>ru</nbi:domain>
</nbi:RemoveRadiusUserAttributes>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RemoveRadiusUserAttributesResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>62</ax21:code>
<ax21:detail>Such 'ru' is not registered in ELTEX_EMS.DOMAINS</ax21:detail>
</ns:return>
</ns:RemoveRadiusUserAttributesResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
21 |
Отсутствуют атрибуты |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nbi="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<nbi:RemoveRadiusUserAttributes>
<nbi:username>test</nbi:username>
<nbi:domain>enterprise.root</nbi:domain>
</nbi:RemoveRadiusUserAttributes>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RemoveRadiusUserAttributesResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>21</ax21:code>
<ax21:detail>No attributes in stored request!</ax21:detail>
</ns:return>
</ns:RemoveRadiusUserAttributesResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
22 |
Отсутствует имя атрибута |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nbi="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<nbi:RemoveRadiusUserAttributes>
<nbi:username>test</nbi:username>
<nbi:domain>enterprise.root</nbi:domain>
<nbi:attribute></nbi:attribute>
</nbi:RemoveRadiusUserAttributes>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RemoveRadiusUserAttributesResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>22</ax21:code>
<ax21:detail>Incorrect attribute name!</ax21:detail>
</ns:return>
</ns:RemoveRadiusUserAttributesResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
23 |
Нельзя редактировать зарезервированный атрибут |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nbi="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<nbi:RemoveRadiusUserAttributes>
<nbi:username>test</nbi:username>
<nbi:domain>enterprise.root</nbi:domain>
<nbi:attribute>Eltex-User-Create-Date</nbi:attribute>
</nbi:RemoveRadiusUserAttributes>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RemoveRadiusUserAttributesResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>23</ax21:code>
<ax21:detail>Attribute 'Eltex-User-Create-Date' can not be edited</ax21:detail>
</ns:return>
</ns:RemoveRadiusUserAttributesResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
122 |
Нельзя удалять обязательные атрибуты |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nbi="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<nbi:RemoveRadiusUserAttributes>
<nbi:username>test</nbi:username>
<nbi:domain>enterprise.root</nbi:domain>
<nbi:attribute>Cleartext-Password</nbi:attribute>
</nbi:RemoveRadiusUserAttributes>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RemoveRadiusUserAttributesResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>122</ax21:code>
<ax21:detail>Can not remove mandatory attribute 'Cleartext-Password'</ax21:detail>
</ns:return>
</ns:RemoveRadiusUserAttributesResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
123 |
В учетной записи пользователя нет такого атрибута |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nbi="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<nbi:RemoveRadiusUserAttributes>
<nbi:username>test</nbi:username>
<nbi:domain>enterprise.root</nbi:domain>
<nbi:attribute>Called-Station-Id</nbi:attribute>
<nbi:attribute>Calling-Station-Id</nbi:attribute>
</nbi:RemoveRadiusUserAttributes>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RemoveRadiusUserAttributesResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>123</ax21:code>
<ax21:detail>No attribute 'Called-Station-Id' in account</ax21:detail>
</ns:return>
</ns:RemoveRadiusUserAttributesResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
11 |
Данного аккаунта не существует |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nbi="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<nbi:RemoveRadiusUserAttributes>
<nbi:username>test</nbi:username>
<nbi:domain>enterprise.root</nbi:domain>
<nbi:attribute>Called-Station-Id</nbi:attribute>
</nbi:RemoveRadiusUserAttributes>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RemoveRadiusUserAttributesResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>11</ax21:code>
<ax21:detail>No user 'test[enterprise.root]' in RADIUS server</ax21:detail>
</ns:return>
</ns:RemoveRadiusUserAttributesResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
20 |
Имя пользователя некорректно. |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nbi="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<nbi:RemoveRadiusUserAttributes>
<nbi:username></nbi:username>
<nbi:domain></nbi:domain>
</nbi:RemoveRadiusUserAttributes>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RemoveRadiusUserAttributesResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>20</ax21:code>
<ax21:detail>Incorrect field 'username'</ax21:detail>
</ns:return>
</ns:RemoveRadiusUserAttributesResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
0 |
Успешно |
Запрос
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:nbi="http://nbi.radius.eltex.org">
<soapenv:Header/>
<soapenv:Body>
<nbi:RemoveRadiusUserAttributes>
<nbi:username>test</nbi:username>
<nbi:domain>enterprise.root</nbi:domain>
<nbi:attribute>Called-Station-Id</nbi:attribute>
<nbi:attribute>Calling-Station-Id</nbi:attribute>
</nbi:RemoveRadiusUserAttributes>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:RemoveRadiusUserAttributesResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>0</ax21:code>
<ax21:detail/>
</ns:return>
</ns:RemoveRadiusUserAttributesResponse>
</soapenv:Body>
</soapenv:Envelope>
Вернуться к списку команд
Версия 1.21-2344
Дата публикации 22-12-2021 05:34:48