maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Porting ntlmaps to the N900 (https://talk.maemo.org/showthread.php?t=50009)

ChadiM 2010-04-14 16:20

Porting ntlmaps to the N900
 
Can anybody please port ntlmaps to the N900?

For the information:
(http://ntlmaps.sourceforge.net/)
Quote:

WHAT IS 'NTLM Authorization Proxy Server'?
'NTLM Authorization Proxy Server' (APS) is a proxy software that allows you to authenticate via an MS Proxy Server using the proprietary NTLM protocol. Since version 0.9.5 APS has an ability to behave as a standalone proxy server and authenticate http clients at web servers using NTLM method. It can change arbitrary values in your client's request header so that those requests will look like they were created by MS IE. It is written in Python v1.5.2 language
So this daemon (running as python scripts) does the authentication part to the proxy because most Maemo 5 applications don't support proxy authentication. It listens to 127.0.0.1 at a certain port and is connected to whenever authentication is required.

I use ntlmaps on ubuntu on my laptop, I also tried it on easy debian on N900 and it worked fine, but I would prefer if it was run natively.

So if anyone can port ntlmaps, that'd be amazing.

Thank you for reading.

Chadi.

MohammadAG 2010-04-14 17:08

Re: Porting ntlmaps to the N900
 
If it's written in Python I can't see why it fails on the N900.

ChadiM 2010-04-14 18:21

Re: Porting ntlmaps to the N900
 
I didn't say it failed, I just don't know how to build applications for this phone :/

avidscavenger 2010-05-17 02:51

Re: Porting ntlmaps to the N900
 
There is no building required as it's pure python. Just download the .deb from a debian repository (eg here: http://ftp.us.debian.org/debian/pool...0.1-11_all.deb) and install it with dpkg. The dependencies are all in the maemo repositories.

You will have a problem shutting down the daemon because busybox doesn't like 'pidof -x' but you can either manually shut it down with pkill or (no doubt) patch /etc/init.d/ntlmaps.

However, and maybe this is where you can help me, ntlmaps doesn't authenticate properly with the upstream proxy for me. Neither under easy debian file nor under native maemo. I've played around with the configuration until I have a headache but nothing seems to work. If I enter the username and password in the proxy description (ie (http_proxy=http://user:pass@127.0.0.1:8080) then it works fine. But if I rely on ntlmaps to do the upstream authentication (which is the whole reason I am using it) then it fails. The log files give me no clue except that the upstream proxy is returning ERR_AUTH_FAILED.


All times are GMT. The time now is 04:41.

vBulletin® Version 3.8.8