HI All, Is there a way to do admin authentication for a normal user in dovecot IMAP ? I have a user using PAM to store password in /etc/shadow file. I need to authenticate the user in IMAP using that password. I tried using : - I tried all combinations as below [root at mail ~]# cat /etc/shadow| grep -i ajay ajay.lal:CM730q8foSA9A:13545:0:99999:7::: [root at mail ~]# telnet 0 143 Trying 0.0.0.0... Connected to 0 (0.0.0.0). Escape character is '^]'. * OK dovecot ready. a1 login ajay.lal CM730q8foSA9A a1 NO Authentication failed. a1 login ajay.lal "{crypt}CM730q8foSA9A" a1 NO Authentication failed. Also i tried [root at mail ~]# perl -MMIME::Base64 -e 'print encode_base64("\0ajay.lal\0{crypt}CM730q8foSA9A");' AGFqYXkubGFsAHtjcnlwdH1DTTczMHE4Zm9TQTlB [root at mail ~]# telnet 0 143 Trying 0.0.0.0... Connected to 0 (0.0.0.0). Escape character is '^]'. * OK dovecot ready. a1 AUTHENTICATE PLAIN + AGFqYXkubGFsAHtjcnlwdH1DTTczMHE4Zm9TQTlB a1 NO Authentication failed. My dovecot server does PLAIN authentication as can auth_mechanisms = plain Is there a way to do PLAIN auth with crypt password or any means of doing admin authentication on behalf of normal user ? Regards, Punit
On Thursday 07 May 2009 17:53:34 punit_j wrote:> a1 NO Authentication failed.what do the logs say?> My dovecot server does PLAIN authentication as can > auth_mechanisms = plain > > Is there a way to do PLAIN auth with crypt password or any means of doing > admin authentication on behalf of normal user ?see here and see if you have troubles http://wiki.dovecot.org/Authentication/MasterUsers Daniel
Hi Daniel, What version of dovecot supports this feature ? I am using dovecot-0.99.11-8.EL4 and gives error : - Starting Dovecot Imap: Fatal: Error in configuration file /etc/dovecot.conf line 495: Unknown setting: master_user_separator Here is what i added : auth_master_user_separator = * auth default { passdb passwd-file { args = /root/passwd.masterusers master = yes } passdb shadow { } userdb passwd { } } Regards, Punit
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 7 May 2009, punit_j wrote:> What version of dovecot supports this feature ? I am using dovecot-0.99.11-8.EL4 and gives error : -Unless the version number is a fake because of packaging reasons, this version is far too old and is no longer supported. Bye, - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBSgK3wXWSIuGy1ktrAQLmVgf/fo/WlmStYz2BqDWuBZ3eFKKDJgfTu5j4 oYke3TT9T3xejiPxYyun4K00suci2YjVREvlH4HS5c9aYLn7sY2vObMKwuXcpC8B vDXTt6dIIpFRx0J7cJpnoXvdhGP+TidwLbxmOyVyRJppEP+1K8/nov8mFjrPBTAH LZe2efhCbu45n9zhx6GLD8neTIB8TCfuV3qMISZoMhF5HfwrQrynXSoI/HMZ0Dw4 lLjJkI+2U7H5/DiTLDsbXOUD8Ae3SnOtvDrVCUfpUHLB7stdIG8sQB9co3Y41NE4 iWDK6QMHleFoJy6JbUW35Kh/QhXL1rJNyr+Xry3Pzm9cjDB0KuKpWA==tGD4 -----END PGP SIGNATURE-----