feat(login-auth): how people log in to the firewall, from config.xml (NetOrk/netork#662)
driver / lint (pull_request) Successful in 15s
driver / standard (pull_request) Failing after 18s
driver / types (pull_request) Successful in 58s
driver / test (3.13) (pull_request) Successful in 1m1s
driver / test (3.12) (pull_request) Successful in 1m10s
driver / lowest (pull_request) Successful in 32s
driver / build (pull_request) Successful in 31s
driver / security (pull_request) Successful in 1m2s
CI / driver (pull_request) Failing after 2m21s
driver / publish (pull_request) Skipped

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.
This commit is contained in:
Christian Manivong committed 2026-11-28 08:03:18 +01:00
1 parent 6c1aaf1690
commit 6c612a427b
6 files changed
+405 -1

No files matched your search

+2
View File
@@ -71,6 +71,7 @@ from napalm_opnsense.kea_reservations import (
subnet_containing,
)
from napalm_opnsense.listening import parse_socket_statistics, wireguard_listen_ports
from napalm_opnsense.login_auth import OPNsenseLoginAuthMixin
from napalm_opnsense.ospf_mixin import OPNsenseOspfMixin
from napalm_opnsense.ping_mixin import OPNsensePingMixin
from napalm_opnsense.port_forwards import alias_index, port_forwards, wan_interfaces
@@ -109,6 +110,7 @@ def _search_rows(data: Any, search: str) -> list[dict[str, Any]]:
class OPNsenseDriver(
OPNsenseConfigRevisionsMixin,
OPNsenseLoginAuthMixin,
OPNsenseTimeSyncMixin,
OPNsenseScheduledJobsMixin,
OPNsenseSshSettingsMixin,