Re: How to start-up NTML support for libetpan?
2eg1ste2 2eg1ste2 <[email protected]> Wed, 9 Sep 2009 00:29:06 +0800
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
--===============2333203678733343159== Content-Type: multipart/alternative; boundary=0016e646a2d225979804731377fc --0016e646a2d225979804731377fc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi DINH! Thank you for your reply I do as you told me.Libsasl.dll and saslNTLM.dll are complied and mailpop3_auth works fine. Then i send "LIST" command but the server response:"-ERR Logon failure: unknown user name or bad password" Do you have any idea about this problem? Is that I need to send the username/password? 2009/9/6 DINH Vi=EAt Ho=E0 <[email protected]> > the enum POP3_AUTH_TYPE_SASL_* are deprecated. > > you have to use this function : > > int mailpop3_auth(mailpop3 * f, const char * auth_type, > const char * server_fqdn, > const char * local_ip_port, > const char * remote_ip_port, > const char * login, const char * auth_name, > const char * password, const char * realm); > > and use "NTLM" as auth_type. I don't know very much about NTLM > authentication. > I think that for : > - server_fqdn, you can set the name of the server. > - local_ip_port, you can try NULL or ip-address:port > - remote_ip_port, you can try NULL or ip-address:port > - login and auth_name should be identical > - you can try NULL or domain name for realm > > On Sat, Sep 5, 2009 at 11:15 AM, 2eg1ste2 2eg1ste2<[email protected]> > wrote: > > I can not find NTML option In pop3driver_types.h at all, thank you!! > > > > /* this is the type of POP3 authentication */ > > > > enum { > > POP3_AUTH_TYPE_PLAIN, /* plain text authentication */ > > POP3_AUTH_TYPE_APOP, /* APOP authentication */ > > POP3_AUTH_TYPE_TRY_APOP, /* first, try APOP, if it fails, > > try plain text */ > > POP3_AUTH_TYPE_SASL_ANONYMOUS, /* SASL anonymous */ > > POP3_AUTH_TYPE_SASL_CRAM_MD5, /* SASL CRAM MD5 */ > > POP3_AUTH_TYPE_SASL_KERBEROS_V4, /* SASL KERBEROS V4 */ > > POP3_AUTH_TYPE_SASL_PLAIN, /* SASL plain */ > > POP3_AUTH_TYPE_SASL_SCRAM_MD5, /* SASL SCRAM MD5 */ > > POP3_AUTH_TYPE_SASL_GSSAPI, /* SASL GSSAPI */ > > POP3_AUTH_TYPE_SASL_DIGEST_MD5 /* SASL digest MD5 */ > > }; > > > > > -------------------------------------------------------------------------= ----- > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus > > on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Libetpan-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/libetpan-users > > > > > > > > -- > DINH Vi=EAt Ho=E0 > --0016e646a2d225979804731377fc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div> <div>Hi DINH!</div> <div>Thank you for your reply</div> <div>=A0</div> <div>I=A0do as you told me.Libsasl.dll and saslNTLM.dll are complied and ma= ilpop3_auth works fine.</div> <div>=A0</div> <div>Then i send "LIST" command but the=A0server=A0response:"= ;-ERR Logon failure: unknown user name or bad password"=A0</div> <div>=A0</div> <div>Do you have any idea about this problem? Is that I need to send=A0the = username/password?</div> <div><br><br>=A0</div></div> <div class=3D"gmail_quote">2009/9/6 DINH Vi=EAt Ho=E0 <span dir=3D"ltr"><= ;<a href=3D"mailto:[email protected]" target=3D"_blank">dinh.viet.hoa= @gmail.com</a>></span><br> <blockquote style=3D"BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex= ; PADDING-LEFT: 1ex" class=3D"gmail_quote">the enum POP3_AUTH_TYPE_SASL_* a= re deprecated.<br><br>you have to use this function :<br><br>int mailpop3_a= uth(mailpop3 * f, const char * auth_type,<br> =A0 =A0const char * server_fqdn,<br>=A0 =A0const char * local_ip_port,<br>= =A0 =A0const char * remote_ip_port,<br>=A0 =A0const char * login, const cha= r * auth_name,<br>=A0 =A0const char * password, const char * realm);<br><br= >and use "NTLM" as auth_type. I don't know very much about NT= LM authentication.<br> I think that for :<br>- server_fqdn, you can set the name of the server.<br= >- local_ip_port, you can try NULL or ip-address:port<br>- remote_ip_port, = you can try NULL or ip-address:port<br>- login and auth_name should be iden= tical<br> - you can try NULL or domain name for realm<br> <div> <div></div> <div><br>On Sat, Sep 5, 2009 at 11:15 AM, 2eg1ste2 2eg1ste2<<a href=3D"m= ailto:[email protected]" target=3D"_blank">[email protected]</a>> wrot= e:<br>> I can not find NTML option In pop3driver_types.h=A0at all, thank= you!!<br> ><br>> /* this is the type of POP3 authentication */<br>><br>> = enum {<br>> =A0 POP3_AUTH_TYPE_PLAIN,=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 /* plain text authentication */<br>> =A0 POP3_AUTH_TYPE_APOP,=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* APOP authentication */<br> > =A0 POP3_AUTH_TYPE_TRY_APOP,=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* first, try = APOP, if it fails,<br>> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 try plai= n text */<br>> =A0 POP3_AUTH_TYPE_SASL_ANONYMOUS,=A0=A0=A0 /* SASL anony= mous */<br>> =A0 POP3_AUTH_TYPE_SASL_CRAM_MD5,=A0=A0=A0=A0 /* SASL CRAM = MD5 */<br> > =A0 POP3_AUTH_TYPE_SASL_KERBEROS_V4,=A0 /* SASL KERBEROS V4 */<br>>= =A0 POP3_AUTH_TYPE_SASL_PLAIN,=A0=A0=A0=A0=A0=A0=A0 /* SASL plain */<br>&g= t; =A0 POP3_AUTH_TYPE_SASL_SCRAM_MD5,=A0=A0=A0 /* SASL SCRAM MD5 */<br>>= =A0 POP3_AUTH_TYPE_SASL_GSSAPI,=A0=A0=A0=A0=A0=A0 /* SASL GSSAPI */<br> > =A0 POP3_AUTH_TYPE_SASL_DIGEST_MD5=A0=A0=A0 /* SASL digest MD5 */<br>&= gt; };<br>><br></div></div>> ----------------------------------------= --------------------------------------<br>> Let Crystal Reports handle t= he reporting - Free Crystal Reports 2008 30-Day<br> > trial. Simplify your report design, integration and deployment - and f= ocus<br>> on<br>> what you do best, core application coding. Discover= what's new with<br>> Crystal Reports now. =A0<a href=3D"http://p.sf= .net/sfu/bobj-july" target=3D"_blank">http://p.sf.net/sfu/bobj-july</a><br> > _______________________________________________<br>> Libetpan-users= mailing list<br>> <a href=3D"mailto:[email protected]= t" target=3D"_blank">[email protected]</a><br>> <a hr= ef=3D"https://lists.sourceforge.net/lists/listinfo/libetpan-users" target= =3D"_blank">https://lists.sourceforge.net/lists/listinfo/libetpan-users</a>= <br> ><br>><br><br><br><br>--<br><font color=3D"#888888">DINH Vi=EAt Ho=E0= <br></font></blockquote></div><br> --0016e646a2d225979804731377fc-- --===============2333203678733343159== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july --===============2333203678733343159== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Libetpan-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libetpan-users --===============2333203678733343159==--