[imp] How to force plain authentication ?

Olivier Le Lain olivier.lelain at xrce.xerox.com
Wed Sep 16 10:15:50 UTC 2009


On 15/09/2009 15:48, Jan Schneider wrote:
> Zitat von Olivier Le Lain <olivier.lelain at xrce.xerox.com>:
>
>> Hello,
>>
>> I can't succeed in loging on to my new Imap server with imp.
>> It's a cyrus one with allows gssapi (kerberos) PLAIN and LOGIN 
>> authentication.
>> If I remove gssapi from sasl_mech_list: in /etc/imapd.conf , 
>> everything works fine (imp users  can connect).
>> But if I set it back, imp login fails and imp/test.php gives me indeed :
>>
>> /
>>     * Trying protocol imap/notls, Port 143:
>>
>>           ERROR - The server returned the following error message:
>>
>>           Kerberos error: No credentials cache found (try running 
>> kinit) for
>>           localhost.localdomain/
>>
>> It looks like imp doesn't try to switch back to plain or login 
>> authentication.
>>
>> This is also the behaviour of cyradm. It refuses to login me if I 
>> don't have a valid kerberos ticket by default, but  I can force 
>> LOGIN. See :
>>
>> /cyradm -u olivier imapserver
>> cyradm: cannot authenticate to server with  as olivier/
>>
>> /cyradm -auth  LOGIN -u olivier imapserver/
>> /IMAP Password: /
>>
>> Is there a way to do the same with Imp, ie force the "-auth LOGIN" 
>> equivalent somewhere in the conf ?
>
> No, because authentication is done by the c-client library, not by IMP 
> directly.
>
> Jan.
>
I tried to recompile (a huge pain) this library without kerberos 
support, with no success.
Anyway, the doc made me realize that it doesn't use kerberos with SSL.
So creating a fake certificate and adding imap/tls/novalidate-cert in 
servers.php did the trick. (I should have begin with that ;))
Thanks.



More information about the imp mailing list