Dovecot against samba4 with LDAP

Rowland Penny repenny241155 at gmail.com
Thu Dec 24 16:38:07 UTC 2015


On 24/12/15 16:03, bogdan_bartos wrote:
> I am trying like this:
>
> hosts           = localhost:389
> ldap_version    = 3
> auth_bind       = yes
> dn              = service.ldap at ads.mydomain.org
> dnpass          = blahblah
> base            = cn=users,dc=ads,dc=mydomain,dc=org
> scope           = subtree
> deref           = never
> user_filter     =
> (&(mail=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
> pass_filter     =
> (&(mail=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
> pass_attrs      = userPassword=password
> default_pass_scheme = CRYPT
> user_attrs      =
> =home=/var/mail/virtual/%Ld/%Ln/,=mail=maildir:/var/mail/virtual/%Ld/%Ln/
>
> And...I get this:
>
> [root at ads dovecot]# doveadm auth test -x service=imaps bogdan
> Password:
> passdb: bogdan auth failed
> extra fields:
>    user=bogdan
>
> My user is located in the OU=MAIN right under the root structure. My virtual
> mailbox is in /var/mail/virtual/ads.mydomain.org/bogdan in the case above
>
>
>
OK, change this:

base = cn=users,dc=ads,dc=mydomain,dc=org

To:

base = ou=main,dc=ads,dc=mydomain,dc=org

Rowland




More information about the samba-technical mailing list