Hey Ken,


Tuesday, July 24, 2001, 12:39:19 PM, you wrote:



KM> "Kevin J. Menard, Jr." wrote:
>> 
>> Hey David,
>> 
>> Wednesday, July 25, 2001, 12:02:50 AM, you wrote:
>> 
>> DF> I recreated your situation on my own system... but had no trouble...
>> 
>> DF> cyradm -u cyrus localhost
>> DF> Please enter your password: ********
>> DF> IMAP Password: ********    (Why it asks for two passwords I don't
>> DF> know... =] )
>> 
>> I could be wrong here, but the first pass through is for MD5 SASL passwords
>> or something.  If that doesn't work, it falls back to a plaintext protocol,
>> which would be sending a LOGIN command to the IMAP server directly.  I don't
>> know why the SASL passwd look up succeeds with LOGIN and not the other way,
>> but go figure :-P

KM> Close.  The first is for a failed PLAIN attempt, and the second is for
KM> IMAP LOGIN.  This is a bug in IMAP.pm that I fixed in CVS.  If you're
KM> interested, just comment (or remove) the following line:

KM> $opts{-mechanism} .= 'PLAIN';

KM> This line was forcing cyradm to try PLAIN even if the server didn't
KM> advertise it.

But this has no affect if other methods are advertised and used, correct?  I
mean, this is just appending PLAIN to the list already there, and AFAIK MD5
takes precedence over PLAIN.  Likewise, should probably kill the line that
says $opts{-mechanism} |= 'plain'; or something a little later on.  I don't
recall right now, and I don't have source in front of me.

KM> Ken

-- 
 Kevin

Reply via email to