create_auth_server
Set up LDAP or RADIUS authentication servers on pfSense with configurable host, port, and protocol settings.
Instructions
Create a new authentication server (LDAP or RADIUS)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Hostname or IP address of the auth server | |
| name | Yes | Descriptive name for this auth server | |
| port | No | Port number (default: 389 for LDAP, 636 for LDAPS, 1812 for RADIUS) | |
| type | Yes | Server type - "ldap" or "radius" | |
| scope | No | LDAP search scope ("one" for one level, "subtree" for entire subtree) | |
| authcn | No | LDAP authentication container(s) (e.g., "CN=Users;DC=example,DC=com") | |
| basedn | No | LDAP base DN for searches (e.g., "dc=example,dc=com") | |
| transport | No | Transport protocol for LDAP ("tcp", "ssl", "starttls") | |
| ldap_binddn | No | LDAP bind DN for authenticated binds | |
| ldap_bindpw | No | LDAP bind password | |
| radius_secret | No | RADIUS shared secret | |
| ldap_attr_user | No | LDAP username attribute (e.g., "uid" or "samAccountName") | |
| radius_timeout | No | RADIUS timeout in seconds | |
| ldap_attr_group | No | LDAP group attribute (e.g., "cn") | |
| radius_protocol | No | RADIUS protocol ("MSCHAPv2", "MSCHAPv1", "CHAP_MD5", "PAP") | |
| ldap_attr_member | No | LDAP group member attribute (e.g., "member" or "memberOf") | |
| radius_acct_port | No | RADIUS accounting port (default: 1813) | |
| radius_auth_port | No | RADIUS authentication port (default: 1812) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||