[jcifs] how to authenticate,
NTLM protected IMAP/POP3 server (Microsoft-exchange)
Michael B Allen
mba2000 at ioplex.com
Wed Jul 7 21:52:48 GMT 2004
Hemanth Kumar A said:
> I was trying to write a client program which will connect to NTLM enabled
> server like Microsoft exchange) using javamail.
> When I was trying to implement jcifs, I am able to authenticate with the
> following code
> NtlmPasswordAuthentication auth =
> new NtlmPasswordAuthentication("CORRECT.DOMAIN", "user1", "secret");
This does NTLM authentication with a CIFS server not POP3 or IMAP.
> But how can I correlate above jcifs mechanism into the following situation
> POP3Client pop = new POP3Client(); -
> pop.connect(); - This throws "connection refused" error(which is correct
> Please can some suggest me, how can achive NTLM authentication for
> IMAP/POP3 server from my client program using jcifs API.
JCIFS and NTLM authentication with POP3/IMAP are largely unrelated. You
have to do what is outlined here:
The jcifs/http/NtlmSsp.java code and friends might help.
More information about the jcifs