Use “cntlm” as proxy tunnel to overcome NTLM authorization from linux

By neokrates, written on June 14, 2009

article

View Counter:
  • 219 views
Rate it
  • 1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.5 out of 5)
    Loading ... Loading ...
Ad
Poll
  • What computer language you specialize in?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext
Most popular search terms:

The problem is: you are using Linux but also need the Windows Based authorization to access the Internet or other kind of resource.

Make a Tunnel

One way to solve it is to use the NTLM tunnel for Linux. It handles the NTLM authorization and lets you through. There are some versions available. In my experience, cntlm is much faster then more known sibling ntlmaps.

Here is one bash Script to start the NTLM Tunnel

Preconditions:
[star] you have installed CNTLM. You can get it here: http://cntlm.sourceforge.net/ or use the package manager like “synaptic”. If installed, “CNTLM” command from your shell should work.

[!] Don’t forget to substitute USER, DOMAIN, PASSWORD, PORT, NTLM_HOST and NTLM_PORT with your values. You should find out what is your user authorization in the windows domain.

#!/bin/bash

USER="UwarovD"
DOMAIN="do100a"
PASSWORD="my_secret"
PORT="3129"
NTLM_HOST="10.2.50.75"
NTLM_PORT="9090"

echo
echo "Einfaches script zum starten der NTLM tunnel"
echo "USER=        $USER"
echo "DOMAIN=      $DOMAIN"
echo "PASSWORD=    $PASSWORD"
echo "PORT=        $PORT"
echo "NTLM_HOST=   $NTLM_HOST"
echo "NTLM_PORT=   $NTLM_PORT"
echo "Running: cntlm -g -v -u $USER@$DOMAIN -p $PASSWORD -l $PORT $NTLM_HOST:$NTLM_PORT"
echo

cntlm -g -v -u $USER@$DOMAIN -p $PASSWORD -l $PORT $NTLM_HOST:$NTLM_PORT
 


TAGS

RELATED
Pages
Posts
    nope :(

SOCIAL
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Blogosphere News
  • E-mail this story to a friend!
  • Furl
  • LinkArena
  • Live
  • MisterWong
  • Print this article!
  • StumbleUpon
  • Technorati
  • Webnews.de
  • YahooMyWeb

INCOMING SEARCH TERMS


2 Responses to “Use “cntlm” as proxy tunnel to overcome NTLM authorization from linux”

  1. My apoogizes for the short review, but wanted to let you know I appreciate your blog and the information you provide. Their is some excellentinfo that have been written here. Where can I go to subscribe to the blog?

    Like or Dislike: Thumb up 0 Thumb down 0

Leave a Reply