LDAP connector is a plug-in designed to support login via LDAP or Active Directory, including LDAPS and StartTLS.
./answer build --with github.com/apache/answer-plugins/connector-ldap
Name - Display name for the connector shown on the login pageServer - LDAP server URL, e.g. ldaps://ldap.example.com:636 or ldap://ldap.example.com:389Base DN - Base DN to search for users, e.g. dc=example,dc=comBind DN - DN of the service account used to bind and search the directoryBind Password - Password for the bind DNUser Attribute - LDAP attribute holding the username, e.g. uid for OpenLDAP or sAMAccountName for Active DirectoryTLS CA Certificate Path - Optional path to a custom CA certificate, used to verify the LDAP server's certificate (e.g. for a private/internal CA)If the server URL starts with ldaps://, the connection is established over TLS directly. Otherwise, a plain connection is opened and upgraded via StartTLS.
Users must have a mail attribute set in LDAP, since it is required to create/match the Answer account on login.