Hello,
 
 So my dovecot/samba4 configuration is working with this params:
All user which have  a entry in ADS "mail" can autheticate against dovecot/samba4
Be shure the dummy-user password to autheticate will not expire.
In my case the user is ldap
dovecot-ldap.conf.ext
 
 
 
hosts = mysamba4host:389
dn = cn=ldap,cn=users,dc=my,dc=domain
dnpass = my-ldap-password
auth_bind = yes
ldap_version = 3
base = cn=Users,dc=my,dc=domain
scope = subtree
user_filter = (mail=%u)
pass_filter = (mail=%u)
pass_attrs = mail=%u,= userPassword=password
 
The test it this way!-My users need to login with [email protected]
 
[root@s4slave dovecot]# doveadm auth test -x service=imap -x rip=192.168.135.253  [email protected]
Password:
passdb: [email protected] auth succeeded
extra fields:
  [email protected]
  %[email protected]
   userPassword=password
It the test succeds your up and running.
 
 
 
Good luck
Daniel
 
Gesendet: Mittwoch, 19. November 2014 um 12:50 Uhr
Von: "Jan Kraljič" <[email protected]>
An: [email protected]
Betreff: [SOGo] Dovecot LDAP config with samba 4
Hi all,
 
I am trying to play with Dovecot to connect to Samba 4 LDAP so I would later use SOGo over that but seem that I have some issue woth config.

I am playing with different configs, this is the last one:

user_filter = (mail=%u)
pass_attrs = uid=user,userPassword=password
pass_filter = (mail=%u)

 
Error: result:  uid missing; userPassword missing
 
Looks like Samba 4 does not have "uid"?
 
Any "good" configuration for Dovecot?
 
Thx,
Jan

Reply via email to