1 (edited by langthangdaydo 2015-08-24 16:58:24)

Topic: Problem LDAP Query With AD In Dovecot

======== Required information ====
- iRedMail version: 0.9.2
- Linux/BSD distribution name and version: CentOS 6.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====
Log

[root@demo ~]# telnet localhost 143
Trying ::1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
. login test@mail.demo 123456
. NO [AUTHENTICATIONFAILED] Authentication failed.

* BAD Error in IMAP command received by server.

Hi all
I have done LDAP query with AD in Postfix
I have problem with LDAP Query AD In Dovecot
When i used command telnet to verify AD query, It Authentication failed.

Config file in dovecot-ldap.conf look like below

hosts           = nvs-ad.mail.demo:389
ldap_version    = 3
auth_bind       = yes
dn              = vmail
dnpass          = 123456
base            = cn=users,dc=mail,dc=demo
scope           = subtree
deref           = never
user_filter     = (&(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_filter     = (&(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_attrs      = userPassword=password
default_pass_scheme = CRYPT
user_attrs      = =home=/var/vmail/vmail1/%Ld/%Ln/Maildir/,=mail=maildir:/var/vmail/vmail1/%Ld/%Ln/Maildir/

Can you help me, Please

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.