Re: libetpan and SASL
"DINH Viêt Hoà" <[email protected]> Mon, 30 Jul 2007 10:20:29 +0200
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
On 7/30/07, Horia Olaru <[email protected]> wrote: > > Thank you for the information. Just to be sure I got it clearly. I want to > use pop3 and imap from the driver level and want to use SASL. Let's take the > pop3 (because imap is analogous from what I've seen): > > pop3_mailstorage_init calls pop3_mailstorage_init_sasl with NULL arguments > for sasl authentication and thus falls back to plaintext. In order to use > SASL authentication I should call pop3_mailstorage_init_sasl direcly > providing the argumets for the SASL authentication myself. Am I correct in > assuming this? If so, then it should be the same for imap. > > Also, you said that, in terms of SASL, libetpan supports whatever Cyrus-SASL > supports. In the pop3driver_types.h as well as in imapdriver_types.h at > driver level, there are two enums with POP3_AUTH_TYPE_ and respectively > IMAP_AUTH_TYPE_ which contain varous types of SASL authentication. Those are deprecated. I should document this in the headers. Use plain text or whatever value. That was there before really implementing SASL. > I would > like to point out to you that among these types there is none corresponding > NTLM which according to the Cyrus-SASL website is supported by their > library. This is just one example and there may also be various other > supporte authentication types I have not mentioned here that are not > included in the enums. From what I can tell, either I am not using the > correct enums for auth types or these need revising. Of course I am talking > strictly of the version of libetpan 0.49 and in more recent source files, > this may not be the case. You have to use a string to describe SASL authentication mechanism. -- DINH Viêt Hoà ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/