Re: [Evolution-hackers] OWA with "SessionGuard" [OT]



On Mon, 2006-10-16 at 18:25 +0530, Ritesh Khadgaray wrote:
> Off track, check out http://www.omesc.com/ for evolution-brutus .

Could Brutus be used for accessing Exchange services using just Camel?

I'm interested in extracting the Camel-only parts of a Camel provider
for distribution in tinymail (which is LGPL).

I understand others are probably also interested in the Exchange
calendaring and contact pieces and features, but initially I'm not
interested in any such code or API.

I was planning to take a look at evolution-exchange(/camel) but if
Brutus is a better solution (if you can convince me), I'm not afraid of
picking that.

Note that a requirement is that it has to compile and work on multiple
architectures. Including ARM. It's memory consumption shouldn't be
extremely bad (if it reuses the CamelFolderSummary pieces, the mmap
technique can probably be adapted in the Brutus Camel implementation,
just like what I did for the other Camel providers a few weeks ago).

I have already completed this little-patch for evolution-exchange. I
haven't yet tested it.

Support for Exchange isn't a top priority, but its most certainly a nice
to have feature to bring to mobile devices and embedded appliances
(which is the focus group of tinymail at this moment).

Let me know what you think?


> On Sun, 2006-10-15 at 15:17 -0700, R. Tate wrote:
> > Sorry if this question has already been addressed ... I can't seem to search the list archives.
> > 
> > My company has (I think) Exchange 2000 OWA enabled, running with (I think) "SessionGuard" (http://www.messagingsolutions.com/SessionGuard.htm).  I
> > can use a browser to login and do OWA, but the exchange-connector
> > doesn't work.  I'm using the following packages, built from source:
> > 
> > evolution-2.8.1
> > evolution-data-server-1.8.1
> > evolution-exchange-2.8.1
> > 
> > 
> > When running "E2K_DEBUG=4 exchange-connector-setup", I get:
> > 
> > GET /exchange HTTP/1.1
> > E2k-Debug: 0x93f1c70 @ 1160875991
> > Host: 10.128.108.84
> > Accept-Language: en-US, en
> > Authorization: NTLM TlRMTVNTUAABAAAABoIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAA
> > User-Agent: Evolution/1.8.1
> > 
> > 302 Object Moved
> > E2k-Debug: 0x93f1c70 @ 1160875991
> > Set-Cookie: MWC0=FCFCFF69689FDCE9A2; path=/;
> > Set-Cookie: MWT0=B733A6D730EE22A1AE; path=/;
> > Date: Sun, 15 Oct 2006 01:33:15 GMT
> > Location: http://10.128.108.84/exchange?cmd=checksessioncookie
> > Server: Microsoft-IIS/5.0
> > 
> > GET /exchange?cmd=checksessioncookie/ HTTP/1.1
> > E2k-Debug: 0x93f1cd0 @ 1160875991
> > Host: 10.128.108.84
> > Accept-Language: en-US, en
> > Authorization: NTLM TlRMTVNTUAABAAAABoIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAA
> > User-Agent: Evolution/1.8.1
> > 
> > 302 Object Moved
> > E2k-Debug: 0x93f1cd0 @ 1160875991
> > Set-Cookie: MWC0=5D5D5E4E7E4B6F4989; path=/;
> > Set-Cookie: MWT0=BC2CADDC3BE529AA98; path=/;
> > Date: Sun, 15 Oct 2006 01:33:15 GMT
> > Location: http://10.128.108.84/exchweb/controls/dlgnosession.htm
> > Server: Microsoft-IIS/5.0
> > 
> > 
> > 
> > ... and the connection fails.
> > 
> > 
> > When using Firefox to connect to OWA, it works, and I see the following packets (captured with ethereal):
> > 
> > Hypertext Transfer Protocol
> >     GET /exchange/ HTTP/1.1\r\n
> >     Host: 10.128.108.84\r\n
> >     User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
> > \r\n
> >     Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/
> > png,*/*;q=0.5\r\n
> >     Accept-Language: en-us,en;q=0.5\r\n
> >     Accept-Encoding: gzip,deflate\r\n
> >     Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
> >     Keep-Alive: 300\r\n
> >     Connection: keep-alive\r\n
> >     Cookie: sessionid=ac39370e-b515-43d8-a877-7eea1b19bd1f,0x409; MWC0=CDC9C9AA8F8AA5D826; MWT0=88
> > 0199E8FECBBD9DF9\r\n
> >     \r\n
> > 
> > 
> > Then I type my credentials (mydomain\myusername and mypassword) into the basic auth popup.
> > 
> > Hypertext Transfer Protocol
> >     GET /exchange/ HTTP/1.1\r\n
> >     Host: 10.128.108.84\r\n
> >     User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
> > \r\n
> >     Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/
> > png,*/*;q=0.5\r\n
> >     Accept-Language: en-us,en;q=0.5\r\n
> >     Accept-Encoding: gzip,deflate\r\n
> >     Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
> >     Keep-Alive: 300\r\n
> >     Connection: keep-alive\r\n
> >     Cookie: sessionid=ac39370e-b515-43d8-a877-7eea1b19bd1f,0x409; MWC0=D3DFD0B1FA5193C6A1; MWT0=88
> > 0199E8FECBBD9DF9\r\n
> >     Authorization: Basic aW5nZW5peFxydGF0ZTE6eWVhcjIwMDY=\r\n
> >         Credentials: mydomain\myusername:mypassword
> >     \r\n
> > 
> > 
> > 
> > This works, so my next request gets the inbox page for my user account (MyFirstName.MyLastName) from OWA.
> > 
> > 
> > Hypertext Transfer Protocol
> >     GET /exchange/MyFirstName.MyLastName/Inbox/?Cmd=contents HTTP/1.1\r\n
> >     Host: 10.128.108.84\r\n
> >     User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
> > \r\n
> >     Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/
> > png,*/*;q=0.5\r\n
> >     Accept-Language: en-us,en;q=0.5\r\n
> >     Accept-Encoding: gzip,deflate\r\n
> >     Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
> >     Keep-Alive: 300\r\n
> >     Connection: keep-alive\r\n
> >     Referer: http://10.128.108.84/exchange/\r\n
> >     Cookie: sessionid=bab7f8c0-318e-43a2-9869-2e1a654d8eff,0x409; MWC0=DEDFDDDCAF87F9CBA2; MWT0=2A
> > 1E3B4A5C6D2D3F55\r\n
> >     Authorization: Basic aW5nZW5peFxydGF0ZTE6eWVhcjIwMDY=\r\n
> >         Credentials: mydomain\myusername:mypassword
> > 
> >     \r\n
> > 
> > 
> > I've
> > tried poking around in e2k-context.c and a few other files trying to
> > hack in some cookies to see if I can get anything to work ... no luck.
> > 
> > I have also tried to create a file at /etc/ximian/connector.conf with some connection options, but it doesn't seem to help.
> > 
> > Any tips?
> > 
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > Evolution-hackers mailing list
> > Evolution-hackers gnome org
> > http://mail.gnome.org/mailman/listinfo/evolution-hackers
-- 
Philip Van Hoof, software developer
home: me at pvanhoof dot be
gnome: pvanhoof at gnome dot org
work: vanhoof at x-tend dot be
blog: http://pvanhoof.be/blog




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]