Dovecot Active Directory Authentication: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
auth_bind_userdn = %u | auth_bind_userdn = %u | ||
auth_bind = yes | auth_bind = yes | ||
__EOF__ | __EOF__ | ||
Change passdb; userdb untouched | |||
# Authenticates by AD server | |||
passdb { | passdb { | ||
driver = ldap | driver = ldap | ||
args = /etc/dovecot/dovecot-ldap.conf.ext | args = /etc/dovecot/dovecot-ldap.conf.ext | ||
} | } | ||
# Retrieves user home directory, mail directory, uid, and gid | |||
userdb { | userdb { | ||
driver = | driver = sql | ||
args = | args = /etc/dovecot/dovecot-sql.conf.ext | ||
} | } | ||
# systemctl restart dovecot | # systemctl restart dovecot | ||
[[Qmail_Dovecot_Authentication|Configure QMT Dovecot authorization]] | [[Qmail_Dovecot_Authentication|Configure QMT Dovecot authorization]] |
Latest revision as of 16:43, 26 January 2025
Assumes working AD server
# cd /etc/dovecot # cat > dovecot-ldap.conf.ext << __EOF__ hosts = ad.domain.tld ldap_version = 3 base = dc=domain,dc=tld auth_bind_userdn = %u auth_bind = yes __EOF__
Change passdb; userdb untouched
# Authenticates by AD server passdb { driver = ldap args = /etc/dovecot/dovecot-ldap.conf.ext } # Retrieves user home directory, mail directory, uid, and gid userdb { driver = sql args = /etc/dovecot/dovecot-sql.conf.ext } # systemctl restart dovecot