Am 25.05.2013 09:20, schrieb MyName IsLive:
Based on my config as i used pam and ldap(local.conf) do i need to use
winbind and nsswitch for authenticating with ad?
Looking at your config you do not need pam and likewise winbind/nsswitch
if you only want do use your samba users with dovecot.
It seems samba4 does not return an uidNumber. You can test that if you run
>kinit [user]
>ldapsearch cn=[user]
and look for uidNumber in the output. Maybe adding acl:read=false to
your smb.conf will help you to get that number returned, it was
neccessary with earlier versions of samba4.
On my side i use different ldap profiles for passdb and userdb lookups
and i use one system user (vmail:999) for all mails which makes it
easier to handle shared folders later because the access rights can be
configured only via imap acl's. Also I hardcoded all the home and mail
path's in my config.
but anyway here are the relevant parts.
dovecot.conf
--------------------------------------
mail_home = /home/vmail/%u
mail_location = maildir:/home/vmail/%u/mail
mail_uid = 999
mail_gid = 999
first_valid_uid = 999
first_valid_gid = 999
namespace inbox {
inbox = yes
location = maildir:/home/vmail/%u/mail
prefix =
separator = /
type = private
}
passdb {
driver = ldap
args = /etc/dovecot/dovecot-ldap-passdb.conf.ext
}
userdb {
driver = ldap
args = /etc/dovecot/dovecot-ldap-userdb.conf.ext
}
--------------------------------------
dovecot-ldap-passdb.conf.ext
--------------------------------------
hosts = localhost
auth_bind = yes
auth_bind_userdn = cn=%u,cn=Users,dc=gsg,dc=local
ldap_version = 3
base = cn=Users,dc=gsg,dc=local
pass_filter = (&(objectClass=person)(cn=%u)(mail=*))
--------------------------------------
dovecot-ldap-userdb.conf.ext
--------------------------------------
hosts = localhost
dn = cn=ldap,cn=Users,dc=gsg,dc=local
dnpass = [password]
ldap_version = 3
base = cn=Users,dc=gsg,dc=local
user_attrs =
=uid=999,=gid=999,=home=/home/vmail/%u,=mail=/home/vmail/%u/mail,=master_user=%u
user_filter = (&(objectClass=person)(cn=%u)(mail=*))
# Attributes and filter to get a list of all users
iterate_attrs = cn=user
iterate_filter = (objectClass=person)
--------------------------------------
------------------------------------------------------------------------
De : mourik jan heupink
Envoyé : 24/05/2013 21:33
À : [email protected]
Objet : Re: [SOGo] dovecot problem with sogo!
Perhaps this will help:
http://wiki2.dovecot.org/UserIds
In my config, with virtual users, it is set to vmail
MJ
On 05/24/2013 09:24 PM, MyName IsLive wrote:
> like i configured dovecot + sogo and samba4 configuration you think
> mail_uid will solve the problem ?
> What should mail_uid set to ?
>
>
>
> > Date: Fri, 24 May 2013 13:32:43 -0400
> > From: [email protected]
> > To: [email protected]
> > Subject: Re: [SOGo] dovecot problem with sogo!
> >
> > Hi,
> > On 13-05-24 11:55 AM, MyName IsLive wrote:
> > > 2013-05-23 10:37:17 imap-login: Info: Login: user=<majidfazel>,
> method=PLAIN,
> > > rip=127.0.0.1, lip=127.0.0.1, mpid=11924, secured
> > > 2013-05-23 10:37:17 imap(majidfazel): Error: user majidfazel:
> Couldn't drop
> > > privileges: User is missing UID (see mail_uid setting)
> > > 2013-05-23 10:37:17 imap(majidfazel): Error: Internal error
> occurred. Refer to
> > > server log for more information.
> >
> > Dovecot is misconfigured, you'll need to set mail_uid as the erreor
> message says.
> > --
> > [email protected]
> > https://inverse.ca/sogo/lists
--
[email protected]
https://inverse.ca/sogo/lists
--
[email protected]
https://inverse.ca/sogo/lists