get_web_login_auth() returns the auth servers <system><webgui><authmode> names, in order. With none named, it is the Local Database alone. Each server says what it asks for:
password for local, ldap and voucher;
password_otp for totp and ldap-totp;
external for radius;
unknown for any other type.
A name no server has is skipped, as AuthenticationFactory::authenticate skips it. Names are not trimmed, and "Local API" is skipped too.
get_ssh_server_auth() reads <system><ssh> the way openssh_configure_do writes sshd_config:
server_enabled from enabled;
password and challenge-response login together from passwordauth;
root login from permitrootlogin.
Each is tested for presence, as isset. A key is always on. password_sources lists the same servers, because OPNsense's System service runs that list for sshd, login, su and sudo.
Both read config.xml over /api/core/backup/download/this, the download get_config uses. No API controller reads these settings.
Tests: tests/unit/test_login_auth.py (17); the full suite passes (643).
For NetOrk/netork#662 (decided 2026-11-28: OPNsense is the next driver-specific read). It uses napalm-device-types 4.50.0's shapes (NAPALM/napalm-device-types#140).
- `get_web_login_auth()` returns the auth servers `<system><webgui><authmode>` names, in order. With none named, it is the Local Database alone. Each server says what it asks for:
- `password` for `local`, `ldap` and `voucher`;
- `password_otp` for `totp` and `ldap-totp`;
- `external` for `radius`;
- `unknown` for any other type.
A name no server has is skipped, as `AuthenticationFactory::authenticate` skips it. Names are not trimmed, and "Local API" is skipped too.
- `get_ssh_server_auth()` reads `<system><ssh>` the way `openssh_configure_do` writes sshd_config:
- `server_enabled` from `enabled`;
- password and challenge-response login together from `passwordauth`;
- root login from `permitrootlogin`.
Each is tested for presence, as `isset`. A key is always on. `password_sources` lists the same servers, because OPNsense's `System` service runs that list for `sshd`, `login`, `su` and `sudo`.
- Both read config.xml over `/api/core/backup/download/this`, the download `get_config` uses. No API controller reads these settings.
Tests: `tests/unit/test_login_auth.py` (17); the full suite passes (643).
get_web_login_auth() names the auth servers <system><webgui><authmode> tries,
in order (the Local Database when it names none), each with what it asks for:
password for local, ldap and voucher, password_otp for totp and ldap-totp,
external for radius, unknown otherwise. A name no server has is skipped, as
OPNsense skips it. get_ssh_server_auth() reads <system><ssh> as
openssh_configure_do writes sshd_config: on only with enabled, password and
challenge-response login with passwordauth, root with permitrootlogin, a key
always. An SSH password goes through the same servers (password_sources).
Needs napalm-device-types 4.50.0.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
For NetOrk/netork#662 (decided 2026-11-28: OPNsense is the next driver-specific read). It uses napalm-device-types 4.50.0's shapes (NAPALM/napalm-device-types#140).
get_web_login_auth()returns the auth servers<system><webgui><authmode>names, in order. With none named, it is the Local Database alone. Each server says what it asks for:passwordforlocal,ldapandvoucher;password_otpfortotpandldap-totp;externalforradius;unknownfor any other type.A name no server has is skipped, as
AuthenticationFactory::authenticateskips it. Names are not trimmed, and "Local API" is skipped too.get_ssh_server_auth()reads<system><ssh>the wayopenssh_configure_dowrites sshd_config:server_enabledfromenabled;passwordauth;permitrootlogin.Each is tested for presence, as
isset. A key is always on.password_sourceslists the same servers, because OPNsense'sSystemservice runs that list forsshd,login,suandsudo.Both read config.xml over
/api/core/backup/download/this, the downloadget_configuses. No API controller reads these settings.Tests:
tests/unit/test_login_auth.py(17); the full suite passes (643).