Skip to content

📁 LDAP Authentication ​

Authenticate users against your LDAP or Active Directory server.

How It Works ​

When a user logs in:

  1. Nexterm searches for the user in your directory
  2. Tries to bind with their credentials
  3. Creates/updates their local account with LDAP attributes
  4. Issues a session token

Setup ​

Go to Settings → Authentication → Add LDAP.

LDAP Provider

FieldDescription
HostLDAP server hostname
Port389 (LDAP) or 636 (LDAPS)
Bind DNService account for searching
Bind PasswordService account password
Base DNWhere to search for users
User Search FilterHow to find users
Use TLSEnable for LDAPS

Examples ​

Active Directory ​

text
Host: dc01.corp.example.com
Port: 636
Bind DN: CN=svc_nexterm,CN=Users,DC=corp,DC=example,DC=com
Base DN: CN=Users,DC=corp,DC=example,DC=com
User Search Filter: (sAMAccountName={{username}})
Use TLS: enabled

OpenLDAP ​

text
Host: ldap.example.com
Port: 389
Bind DN: cn=readonly,dc=example,dc=com
Base DN: ou=users,dc=example,dc=com
User Search Filter: (uid={{username}})

Search Filters ​

The {{username}} placeholder gets replaced with the login input.

DirectoryFilter
Active Directory(sAMAccountName={{username}})
OpenLDAP(uid={{username}})
Email login(mail={{username}})

Attribute Mapping ​

Defaults work for most setups. Change in Advanced Settings if needed.

FieldDefault
Usernameuid
First NamegivenName
Last Namesn

For AD, change Username to sAMAccountName.

Testing ​

Click Test Connection after saving to verify the bind credentials work.

Test LDAP Connection

Troubleshooting ​

ECONNREFUSED - Server not reachable. Check host/port and firewall.

INVALID_CREDENTIALS - Wrong bind DN or password.

Users can't log in - Check Base DN and search filter. Try (&(objectClass=person)( uid={{username}})).

Distributed under the MIT License