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
This Module should allow configuring access methods to OPNsense GUI (LDAP, Radius, Voucher) under System -> Access -> Server.
Minimum Viable Product (MVP)
module: system_access_serversshort_description: Configure access methods used for authentication on the Webguidescription:
- This Module allows you to configure different access methods (ex: LDAP) to secure the Web frontend of the OPNsense firewall. options:
description:
description: "Descriptive name of your access server"required: truetype: strtype:
description: "The access type you want to configure"required: truedefault: LDAPchoices:
- LDAP
- LDAP + Timebased One Time Password
- Local + Timebased One Time Password
- Radius
- Vouchertype: listelements: strhostname:
description: "Hostname or IP address of your access server instance"required: truetype: strport:
description: "Port of your access server instance."required: truedefault: 389type: inttransport:
description: "Transport protocol to use to connect to your server. When choosing StartTLS or SSL, please configure the required private CAs in System -> Trust "required: truedefault: TCP - Standardchoices:
- TCP - Standard
- StarTLS
- SSL - Encryptedtype: listelements: strprotocol_version:
description: "Select protocol version"default: 3choices:
- 3
- 2type: listelements: intbind_credentials:
description: "Bind user and credentials specified with two keys user_dn and password"choices:
- user_dn: <CN=Binduser,OU=Staff,O=Company,DC=example,DC=com>
- password: <password for bind user>type: dictsearch_scope:
description: "The scope of how many levels the Base DN get searched for users."required: truedefault: "One Level"choices:
- One Level
- Entire Subtreetype: listelements: strauthentication_containers:
description: "Semicolon-separated list of distinguished names DC= components."required: truetype: strextended_query:
description: "Extended LDAP Query to map additional attributes."type: strinitial_template:
description: "Select if using OpenLDAP, Microsoft AD or Novell eDirectory"required: truedefault: "OpenLDAP"choices:
- OpenLDAP
- Microsoft AD
- Novell eDirectorytype: listelements: struser_naming_attribute:
description: "LDAP attribute to map usernames."required: truedefault: "cn"type: strread_properties:
description: " Normally the authentication only tries to bind to the remote server, when this option is enabled also the objects properties are fetched, can be practical for debugging purposes. "default: falsetype: boolsynchronize_groups:
description: "Synchronize groups specified by memberOf or class attribute after login, this option requires to enable read properties. Groups will be extracted from the first CN= section and will only be considered when already existing in OPNsense. Group memberships will be persisted in OPNsense."default: falsetype: boolconstraint_groups:
description: " Constraint allowed groups to those selected in the container section. This may offer additional security in cases where users are able to inject memberOf attributes in different trees. "default: falsetype: boollimit_groups:
description: " Limit the groups which may be used by this authenticator, keep empty to consider all local groups in OPNsense. When groups are selected, you can assign unassigned groups to the user manually "default: "Nothing selected type: list elements: string automatic_user_creation: description: "To be used in combination with synchronize groups, allow the authenticator to create new local users after successful login with group memberships returned for the user. "default: falsetype: boolmatch_case_insensitive:
description: " Allow mixed case input when gathering local user settings. "default: falsetype: boolstate:
description: "Whether to add or update (`present`) or remove (`absent`) an server access configuration. type: str choices: - present - absent elements: str
Examples
Example1: Adding an ldap access server (simple)
---
- name: Configure ldap authentication server without a bind-userpuzzle.opnsense.system_access_servers:
description: "My ldap server"hostname: "ldap.example.com"base_dn: "dc=example,dc=com"authentication_container: "ou=sysadmins,dc=example,dc=com"
Example2: Adding an ldap access server using ldaps and a binduser
---
- name: Configure ldaps authentication server with a bind-userpuzzle.opnsense.system_access_servers:
description: "My ldap secured server"hostname: "ldap.example.com"port: 636transport: "SSL - Encrypted"bind_credentials:
user_dn: "uid=mybinduser,ou=bindusers,dc=example,dc=com"password: "secret123"base_dn: "dc=example,dc=com"authentication_container: "ou=sysadmins,dc=example,dc=com"
Additional Notes (Optional)
* Be aware that this module request currently only takes the LDAP access type into consideration.
The options of the module will change depending on the type selection. This can be verified in the Webgui
when selecting a different Type. For completion the choices are listed in the option `type` but the fields only
reflect the options required for the LDAP access Type.
* You have to activate the option "read_properties" in order to configure the options synchronize_groups,
constraint_groups or automatic_user_creation (tested on webgui)
The text was updated successfully, but these errors were encountered:
Module Description
This Module should allow configuring access methods to OPNsense GUI (LDAP, Radius, Voucher) under System -> Access -> Server.
Minimum Viable Product (MVP)
Examples
Example1: Adding an ldap access server (simple)
Example2: Adding an ldap access server using ldaps and a binduser
Additional Notes (Optional)
The text was updated successfully, but these errors were encountered: