Topic: Request [SASL Auth] for iRedMail Free / Pro
Tutorial
Managing users in the admin panel iRedMail
SASL Authorization via Active Directory
apt install sasl2-bin
adduser openldap sasl
systemctl enable saslauthd
saslauthd -v
nano /etc/saslauthd.conf
ldap_servers: ldap://dc.notdev.local
ldap_search_base: dc=notdev,dc=local
ldap_timeout: 10
ldap_filter: sAMAccountName=%U
ldap_bind_dn: notdev\iredmail
ldap_password: supa_password
ldap_deref: never
ldap_restart: yes
ldap_scope: sub
ldap_use_sasl: no
ldap_start_tls: no
ldap_version: 3
ldap_auth_method: bind
nano /etc/default/saslauthd
add
# Should saslauthd run automatically on startup? (default: no)
START=yes
edit
MECHANISMS="ldap"
nano /etc/ldap/sasl2/slapd.conf
pwcheck_method: saslauthd
saslauthd_path: /var/run/saslauthd/mux
service saslauthd restart
service slapd restart
service postfix restart
testsaslauthd -u test2@notdev.local -p 123123
EDIT user in OpenLDAP
userPassword {SASL}test2@notdev.local
Now authorization for this user will work through Active Directory
and all functions of the administrative panel will also work
Now I'm trying to do the same with the SQL version, but so far there is no result
Please add the ability to specify SASL in the password field
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.