Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: SSPI authentication attempt has failed Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
JohnK
Newbie
Newbie


Joined: 09 July 2008
Online Status: Offline
Posts: 4
Posted: 09 July 2008 at 3:05pm | IP Logged Quote JohnK

Hi,

I am trying to use the IMAP component to connect to an IMAP4 service running on an exchange server. I am getting the following error:

Event Type:     Error
Event Source:     IMAP4SVC
Event Category:     Authentication
Event ID:     1069
Date:         & nbsp;7/9/2008
Time:         & nbsp;10:45:27 AM
User:         & nbsp;N/A
Computer:     MAIL03
Description:
SSPI authentication attempt from 192.168.10.112 has failed with error 0x8009030c.

Yet when I telnet in, and provide exactly identical credentials, I can log into the Imap service fine. Any ideas what I am doing wrong?

Thanks,

John
Back to Top View JohnK's Profile Search for other posts by JohnK
 
JohnK
Newbie
Newbie


Joined: 09 July 2008
Online Status: Offline
Posts: 4
Posted: 09 July 2008 at 3:20pm | IP Logged Quote JohnK

Here is the text from the log file:

[16:16:43.59] [INFO] Assembly version: 3.1.2.90.
[16:16:43.57] [INFO] Will resolve host "MAIL03".
[16:16:43.63] [INFO] Host "MAIL03" resolved to IP address(es) 192.168.10.10.
[16:16:43.63] [INFO] Will connect to host "MAIL03" on port 143.
[16:16:43.63] [INFO] Socket connected to IP address 192.168.10.10 on port 143.
[16:16:43.70] [RECV] * OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (mail03.Edm.Upside) ready.\r\n [Total 100 bytes received.]
[16:16:43.70] [INFO] Get the list of IMAP4 capabilities via CAPABILITY command.
[16:16:43.70] [SEND] MBN00000001 CAPABILITY\r\n
[16:16:43.73] [RECV] * CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM\r\n [Total 115 bytes received.]
[16:16:43.73] [RECV] MBN00000001 OK CAPABILITY completed.\r\n [Total 38 bytes received.]
[16:16:43.73] [INFO] Connected to mail service at host "MAIL03" on port 143 and ready.
[16:16:44.56] [INFO] Will login as "klapj@Edm.Upside".
[16:16:44.56] [INFO] Will try SASL NTLM authentication method.
[16:16:44.57] [SEND] MBN00000002 AUTHENTICATE NTLM\r\n
[16:16:44.57] [RECV] +\r\n [Total 3 bytes received.]
[16:16:44.68] [SEND] TlRMTVNTUAABAAAAAoIAAAAAAAAAAAAAAAAAAAAAAAA=\r\n
[16:16:44.70] [RECV] + TlRMTVNTUAACAAAAAAAAADgAAAACggACeQYPFfEKcmYAAAAAAAAAAAAAAAA4 AAAABQLODgAAAA8=\r\n [Total 80 bytes received.]
[16:16:45.01] [SEND] TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAAAwAAAAEAAQAHAAAAAA AAAAQwAAAAAAAABDAAAAAoIAAINxyIlEeR9VYyQcIxmcsj24J8UJmy6gXDwN 0HdUqT8xqvP5Eu3ZQuBs9zFW5uikEmtsYXBqQEVkbS5VcHNpZGU=\r\n
[16:16:45.04] [RECV] MBN00000002 NO Logon failure: unknown user name or bad password.\r\n [Total 66 bytes received.]
[16:16:45.17] [INFO] Error: The server has rejected authentication data sent by the client. The server responded: MBN00000002 NO Logon failure: unknown user name or bad password..


Using Microsoft Outlook with the same authentication information also works.
Back to Top View JohnK's Profile Search for other posts by JohnK
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 10 July 2008 at 5:40am | IP Logged Quote Andrew

Do you use NTLM authentication mode explicitly? If yes, what do you pass as accountName and password parameters of Imap.Login method? If you pass certain username and password, are you sure they're correct?

In other words, which of the below Imap.Login calls is similar to yours?

Code:
mailer.Login("klapj@Edm.Upside", "*****");


Code:
mailer.Login("klapj@Edm.Upside", "*****", AuthenticationMethods.SaslNtlm);


Code:
mailer.Login(null, null, AuthenticationMethods.SaslNtlm);


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
JohnK
Newbie
Newbie


Joined: 09 July 2008
Online Status: Offline
Posts: 4
Posted: 10 July 2008 at 7:29am | IP Logged Quote JohnK

I use the top method. I am 100% sure that the credentials I have supplied are correct, as they work with both telnet and when I setup an IMAP account through outlook.
Back to Top View JohnK's Profile Search for other posts by JohnK
 
JohnK
Newbie
Newbie


Joined: 09 July 2008
Online Status: Offline
Posts: 4
Posted: 10 July 2008 at 7:41am | IP Logged Quote JohnK

I tried all three login methods. When I don't specify the user/pass, it passes a blank string for the username. The third method, looking at the logs, appears to be the same as the first.
Back to Top View JohnK's Profile Search for other posts by JohnK
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 10 July 2008 at 8:11am | IP Logged Quote Alex

Probably, you tried regular authentication with other mail clients and via telnet. Try regular authentication with MailBee as well:
Code:

mailer.Login("klapj@Edm.Upside", "*****", AuthenticationMethods.Regular);


Using NTLM may require you to specify the domain name with the login name (and this is often the case of Exchange server).

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide