Using OpenLDAP with ergo
Please see the Main documentation here. This article is a quick-start, the main docs go into greater detail adding more options and capabilities.
For simple user auth prepare a ldap-config.yaml with the following settings
host: "127.0.0.1"
port: 389
timeout: 30s
# uncomment for TLS / LDAPS:
# use-ssl: true
bind-dn: "uid=%s,ou=people,dc=example,dc=org"
Then add the compiled ergo-ldap program to your Ergo folder and make sure it can be executed by the same user your Ergo IRCd runs as.
Follow the instructions in the main Ergo config file’s accounts section on how to execute an external auth program.
Make sure SASL auth is enabled and then restart Ergo to enable LDAP linked SASL auth.