David Sitsky
2006-08-31 07:43:27 UTC
Hi,
I need to develop some code which will connect to a GroupWise IMAP
server. GroupWise has a special mode for "trusted applications", where
once you are authenticated, you can login as any user without entering
in a password.
This is used for developing virus-scanners and other software which
requires access to all the email in a GroupWise mail server.
I have developed a GroupWise-specific SASL provider and have integrated
it into JavaMail, by setting the appropriate properties in a JavaMail
session, and adding this provider to the security framework.
I can see it is getting called when I am trying to connect to the
GroupWise server.
The problem I am facing is as follows. Here is an example IMAP
conversation with my GroupWise server:
S: * OK GroupWise IMAP4rev1 Server Ready
C: A010 AUTHENTICATE XGWTRUSTEDAPP
S: +
C: XGWTRUSTEDAPP ZmJpADQ5NjRBNjAxMTgxNjAwMDBCNjAwRDIwMDdDMDA
4NTAwNDk2NEE2MDIxODE2MDAwMEI2MDBEMjAwN0MwMDg1MDAA
S: A010 OK XGWTRUSTEDAPP authentication successful
The client response data after XGWTRUSTEDAPP is the base64 encoding of
the special GroupWise "application ID + key".
What is currently causing a problem is the GroupWise IMAP server needs
the "XGWTRUSTEDAPP " string before this base 64 data in the challenge
response.
Looking at the code in IMAPSaslAuthenticator.java, it rightly base64
encodes the response, but doesn't provide any way for me to insert the
"XGWTRUSTEDAPP " string before this base64 data.
Is there any way I can achieve this? Is the GroupWise
challenge/response mechanism here not SASL compliant? Is there a better
way for me to achieve this?
Thanks for any help or suggestions.
Cheers,
David
--
Cheers,
David
This message is intended only for the named recipient. If you are
not the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
information is strictly prohibited.
Nuix Australia Pty Ltd
Suite 79
89 Jones St
Ultimo NSW 2007
Phone: (02) 9280-0699
Fax: (02) 9212-6902
===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
I need to develop some code which will connect to a GroupWise IMAP
server. GroupWise has a special mode for "trusted applications", where
once you are authenticated, you can login as any user without entering
in a password.
This is used for developing virus-scanners and other software which
requires access to all the email in a GroupWise mail server.
I have developed a GroupWise-specific SASL provider and have integrated
it into JavaMail, by setting the appropriate properties in a JavaMail
session, and adding this provider to the security framework.
I can see it is getting called when I am trying to connect to the
GroupWise server.
The problem I am facing is as follows. Here is an example IMAP
conversation with my GroupWise server:
S: * OK GroupWise IMAP4rev1 Server Ready
C: A010 AUTHENTICATE XGWTRUSTEDAPP
S: +
C: XGWTRUSTEDAPP ZmJpADQ5NjRBNjAxMTgxNjAwMDBCNjAwRDIwMDdDMDA
4NTAwNDk2NEE2MDIxODE2MDAwMEI2MDBEMjAwN0MwMDg1MDAA
S: A010 OK XGWTRUSTEDAPP authentication successful
The client response data after XGWTRUSTEDAPP is the base64 encoding of
the special GroupWise "application ID + key".
What is currently causing a problem is the GroupWise IMAP server needs
the "XGWTRUSTEDAPP " string before this base 64 data in the challenge
response.
Looking at the code in IMAPSaslAuthenticator.java, it rightly base64
encodes the response, but doesn't provide any way for me to insert the
"XGWTRUSTEDAPP " string before this base64 data.
Is there any way I can achieve this? Is the GroupWise
challenge/response mechanism here not SASL compliant? Is there a better
way for me to achieve this?
Thanks for any help or suggestions.
Cheers,
David
--
Cheers,
David
This message is intended only for the named recipient. If you are
not the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
information is strictly prohibited.
Nuix Australia Pty Ltd
Suite 79
89 Jones St
Ultimo NSW 2007
Phone: (02) 9280-0699
Fax: (02) 9212-6902
===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".