Authentication problem with API client - help pls

Best practice information from Scalix users relating to integration of Scalix with other products.

Moderator: ScalixSupport

ph1949rst
Posts: 23
Joined: Sat Oct 04, 2008 5:10 am

Authentication problem with API client - help pls

Postby ph1949rst » Fri Jan 23, 2009 9:28 am

I am writing an API client for Scalix, working from the API Guide,
and I am having a problem that I don't understand with Authentication.
The client starts by sending the message:

GET /api/userinfo HTTP/1.1\r\n
Host: pca.local:8080\r\n
Authorization: Basic cGV0ZXIgc2hhcnA6bGludXgK\r\n

where the authentication string is the Base64 version of

peter sharp:linux

This request is rejected by Scalix as an authentication failure.
I am using Wireshark to monitor network traffic, and between my initial
request message and the rejection response, I can see a pair of messages,
presumably from the Scalix 'logon server' to the IMAP server as follows:
First message:

A1 AUTHENTICATE PLAIN

Second message:
cGV0ZXIgc2hhcnAAcGV0ZXIgc2hhcnAAbGludXgK\r\n

but this decodes as

peter sharppeter sharplinux

So what's going on here ? It looks to me as if Scalix has decoded my
string, garbled it, and re-encoded it before passing it to IMAP, which
not surprisingly rejects it.

I'm running Scalix CE 11.4.2, on OpenSUSE 11.0, BTW.

Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 1 guest