In my centos 6.5 /dovecot :
I decided to set u%=mail  (mail-adddress in ADS) ex.: mailu...@tplk.loc. To read the user and credentials I craeted the user ldap in my samba4 ads.
So my dovecot-ldap.conf.ext,
 
 
 
hosts = myhost:389
dn = cn=ldap,cn=users,dc=tplk,dc=loc
dnpass = ******
auth_bind = yes

ldap_version = 3
base = cn=Users,dc=tplk,dc=loc
scope = subtree
user_filter = (mail=%u)
pass_filter = (mail=%u)
pass_attrs = mail=%u,= userPassword=password
 
And working on the fly. You just have to fill out mail when you setup your ads users with RSAT.
 
 
Gesendet: Dienstag, 23. September 2014 um 00:12 Uhr
Von: gillecaluim <rob...@gillecaluim.com>
An: users@sogo.nu
Betreff: [SOGo] dovecot installation
I've followed the openchange cookbook and have samba4/openchange & sogo
installed.
Now working on integrating Dovecot 2.0.9 on a Centos 6.5 server and would
appreciate anyones help who has this working.

Problem 1:
if dn= cn=Administrator,dc=ourhome,dc=net with dnpass = ***** ---------------I
get NT_STATUS_LOGON_FAILURE
but dn = "administra...@ourhome.net" with dnpass = **** works
I guess I shouldn't complain but why doesn't the first one work?

Problem 2:
can't seem to get a working set of usr_attrs/user_filter,pass_attrs/
pass_filter to authenticate

dovecot-ldap.conf :
uris = ldap://localhost:389
dn = "administra...@ourhome.net"
dnpass = ****
tls = no
ldap_version = 3
base = cn=Users,dc=ourhome,dc=net
scope = subtree
user_filter = (&(objectClass=user)(sAMAccountName=%u))
user_attrs = sAMAccountName=user,userPassword=password,=mail=maildir:/var/
vmail/%Ld/%n, =home=/var$
pass_filter = (&(objectClass=user)(sAMAccountName=%u))
pass_attrs = sAMAccountName=user,userPassword=password

dovecont.message log output:
2014-09-22 14:44:50 auth: Debug: Loading modules from directory: /usr/lib64/
dovecot/auth
2014-09-22 14:44:50 auth: Debug: Module loaded: /usr/lib64/dovecot/auth/
libauthdb_ldap.so
2014-09-22 14:44:50 auth: Debug: Module loaded: /usr/lib64/dovecot/auth/
libdriver_mysql.so
2014-09-22 14:44:50 auth: Debug: Module loaded: /usr/lib64/dovecot/auth/
libdriver_pgsql.so
2014-09-22 14:44:50 auth: Debug: Module loaded: /usr/lib64/dovecot/auth/
libdriver_sqlite.so
2014-09-22 14:44:50 auth: Debug: Module loaded: /usr/lib64/dovecot/auth/
libmech_gssapi.so
2014-09-22 14:44:50 auth: Debug: auth client connected (pid=5316)
2014-09-22 14:45:00 auth: Debug: client in: AUTH 1 PLAIN
service=imap secured lip=127.0.0.1 rip=127.0.0.1 lport=143
rport=35148 resp=AEpvaG5Eb2UASm9obkRvZQ==
2014-09-22 14:45:00 auth: Debug: ldap(JohnDoe,127.0.0.1): pass search:
base=cn=Users,dc=ourhome,dc=net scope=subtree filter=(&(objectClass=user)
(sAMAccountName=JohnDoe)) fields=sAMAccountName,userPassword
2014-09-22 14:45:00 auth: Debug: ldap(JohnDoe,127.0.0.1): result:
sAMAccountName(user)=JohnDoe
2014-09-22 14:45:00 auth: Info: ldap(JohnDoe,127.0.0.1): No password returned
(and no nopassword)
2014-09-22 14:45:00 auth: Debug: Loading modules from directory: /usr/lib64/
dovecot/auth
2014-09-22 14:45:00 auth: Debug: Module loaded: /usr/lib64/dovecot/auth/
libauthdb_ldap.so
2014-09-22 14:45:00 auth: Debug: Module loaded: /usr/lib64/dovecot/auth/
libdriver_mysql.so
2014-09-22 14:45:00 auth: Debug: Module loaded: /usr/lib64/dovecot/auth/
libdriver_pgsql.so
2014-09-22 14:45:00 auth: Debug: Module loaded: /usr/lib64/dovecot/auth/
libdriver_sqlite.so
2014-09-22 14:45:00 auth: Debug: Module loaded: /usr/lib64/dovecot/auth/
libmech_gssapi.so
2014-09-22 14:45:00 auth: Debug: pam(JohnDoe,127.0.0.1): lookup
service=dovecot
2014-09-22 14:45:00 auth: Debug: pam(JohnDoe,127.0.0.1): #1/1 style=1
msg=Password:
2014-09-22 14:45:02 auth: Info: pam(JohnDoe,127.0.0.1): unknown user
2014-09-22 14:45:04 auth: Debug: client out: FAIL 1 user=JohnDoe
--
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to