I'm doing in-site migration of accounts from /etc/passwd to an LDAP directory. The migration should be progressive (not all users at the same time). I'm already able to check mail for accounts in /etc/passwd and accounts in LDAP. The problem is with mail delivery. I'm using Postfix + Dovecot-LDA. This is the error I get with every delivery -- dovecot: Oct 03 00:16:09 Info: auth(default): master in: USER 1 moya service=deliver dovecot: Oct 03 00:16:09 Info: auth(default): ldap(moya): user search: base=ou=users,dc=sld,dc=cu scope=subtree filter=(&(objectClass=posixAccount)(uid=moya)) fields=sldMailbox,uidNumber dovecot: Oct 03 00:16:09 Info: auth(default): master out: USER 1 moya home=/srv/vmail/m/moya/ uid=29174 gid=101 deliver(moya): Oct 03 00:16:09 Fatal: setuid(29174) failed: Operation not permitted -- 29174 is the uid for moya, is the same in /etc/passwd or in LDAP via posixAccount class. Any advise please? Regards, maykel
Maybe you need to setuid deliver? Aaaaaaaaaagur. El Wednesday 03 October 2007 06:18:47 Maykel Moya escribi?:> I'm doing in-site migration of accounts from /etc/passwd to an LDAP > directory. The migration should be progressive (not all users at the > same time). > > I'm already able to check mail for accounts in /etc/passwd and accounts > in LDAP. > > The problem is with mail delivery. I'm using Postfix + Dovecot-LDA. This > is the error I get with every delivery > > -- > dovecot: Oct 03 00:16:09 Info: auth(default): master in: USER 1 > moya service=deliver > dovecot: Oct 03 00:16:09 Info: auth(default): ldap(moya): user search: > base=ou=users,dc=sld,dc=cu scope=subtree > filter=(&(objectClass=posixAccount)(uid=moya)) > fields=sldMailbox,uidNumber > dovecot: Oct 03 00:16:09 Info: auth(default): master out: USER 1 > moya home=/srv/vmail/m/moya/ uid=29174 gid=101 > deliver(moya): Oct 03 00:16:09 Fatal: setuid(29174) failed: Operation > not permitted > -- > > 29174 is the uid for moya, is the same in /etc/passwd or in LDAP via > posixAccount class. > > Any advise please? > > Regards, > maykel-- Joseba Torre. CIDIR Bizkaia. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: <http://dovecot.org/pipermail/dovecot/attachments/20071003/996d2cca/attachment-0002.bin>
Patrick Ben Koetter
2007-Oct-03 10:07 UTC
[Dovecot] In-site migration from /etc/passwd to LDAP
* Joseba Torre <joseba.torre at ehu.es>:> Maybe you need to setuid deliver? > > Aaaaaaaaaagur. > > El Wednesday 03 October 2007 06:18:47 Maykel Moya escribi?: > > I'm doing in-site migration of accounts from /etc/passwd to an LDAP > > directory. The migration should be progressive (not all users at the > > same time). > > > > I'm already able to check mail for accounts in /etc/passwd and accounts > > in LDAP. > > > > The problem is with mail delivery. I'm using Postfix + Dovecot-LDA. This > > is the error I get with every delivery > > > > -- > > dovecot: Oct 03 00:16:09 Info: auth(default): master in: USER 1 > > moya service=deliver > > dovecot: Oct 03 00:16:09 Info: auth(default): ldap(moya): user search: > > base=ou=users,dc=sld,dc=cu scope=subtree > > filter=(&(objectClass=posixAccount)(uid=moya)) > > fields=sldMailbox,uidNumber > > dovecot: Oct 03 00:16:09 Info: auth(default): master out: USER 1 > > moya home=/srv/vmail/m/moya/ uid=29174 gid=101 > > deliver(moya): Oct 03 00:16:09 Fatal: setuid(29174) failed: Operation > > not permitted > > -- > > > > 29174 is the uid for moya, is the same in /etc/passwd or in LDAP via > > posixAccount class. > > > > Any advise please?When you migrate an account also migrate the UID and GID to the user that runs deliver. p at rick -- state of mind Agentur f?r Kommunikation, Design und Softwareentwicklung Patrick Koetter Tel: 089 45227227 Echinger Strasse 3 Fax: 089 45227226 85386 Eching Web: http://www.state-of-mind.de Amtsgericht M?nchen Partnerschaftsregister PR 563