search

LDAP Authentication Plugin

Introduction

This plugin enables centralized authentication using LDAP. Instead of managing passwords locally in Typemill, users can log in using their existing directory credentials. This is useful for centralized user management in organizations.

The core features are:

The plugin is designed to work with both OpenLDAP and Active Directory setups.

Typical Scenario

A common setup looks like this:

During login:

Requirements

Plugin Settings

Example Configuration

OpenLDAP

Host: ldap://127.0.0.1
Port: 389
Bind DN: cn=admin,dc=example,dc=com
Bind Password: ********
Base DN: ou=users,dc=example,dc=com
User Filter: (uid={username})
Username Attribute: uid
Email Attribute: mail
StartTLS: false

Active Directory

Host: ldap://ad.example.com
Port: 389
Bind DN: cn=ldap-reader,dc=example,dc=com
Bind Password: ********
Base DN: dc=example,dc=com
User Filter: (sAMAccountName={username})
Username Attribute: sAMAccountName
Email Attribute: mail
StartTLS: true

Limitations

Troubleshooting

User not found

ldapsearch -x -b "ou=users,dc=example,dc=com" "(uid=testuser)"

Login fails

ldapwhoami -x -D "uid=testuser,ou=users,dc=example,dc=com"

Connection issues