From 186f2e01938b79989e662425664b3ccdae5604c2 Mon Sep 17 00:00:00 2001 From: Brenton Earl Date: Fri, 16 Dec 2016 04:52:40 +0700 Subject: libraries/python-ntlm: Switch to i586. Signed-off-by: Willy Sudiarto Raharjo --- libraries/python-ntlm/DOCUMENTATION | 56 ++++++++++++++-------------- libraries/python-ntlm/python-ntlm.SlackBuild | 8 ++-- 2 files changed, 31 insertions(+), 33 deletions(-) (limited to 'libraries/python-ntlm') diff --git a/libraries/python-ntlm/DOCUMENTATION b/libraries/python-ntlm/DOCUMENTATION index 4d68dc29ca..06837e4d6f 100644 --- a/libraries/python-ntlm/DOCUMENTATION +++ b/libraries/python-ntlm/DOCUMENTATION @@ -66,37 +66,35 @@ opener = urllib2.build_opener(proxy_handler, auth_NTLM, auth_digest, auth_basic) urllib2.install_opener(opener) -# retrieve the result +# retrieve the result response = urllib2.urlopen(url) print(response.read()) ``` ## Limitations - * A request using the `HTTPNtlmAuthHandler` has no HTTP status - * handling, for example: redirects are not handled by the opener, you - * must check and handle the response yourself. - - # Resources - - ## Inspired by - * [http://sourceforge.net/projects/ntlmaps/ NTLM Authorization Proxy - * Server] - (Dmitri Rozmanov kindly allowed his code to be redistributed under - the LGPL) - - The NTLM Authorization Proxy Server can be used to make applications - that do not support NTLM proxies use them anyway: "Opens up IIS - Proxy Servers using NTLM to non-Microsoft browsers, etc" - - In contrast the python-ntlm library is used to make it possible for - python code to retrieve content from an NTLM protected server. - - ## References - * [MS-NLMP]: - * [http://download.microsoft.com/download/a/e/6/ae6e4142-aa58-45c6-8dcf-a657e5900cd3/%5BMS-NLMP%5D.pdf - * NT LAN Manager (NTLM) Authentication Protocol Specification] - * [MS-NTHT]: - * [http://download.microsoft.com/download/a/e/6/ae6e4142-aa58-45c6-8dcf-a657e5900cd3/%5BMS-NTHT%5D.pdf - * NTLM Over HTTP Protocol Specification] - * [http://www.blackhat.com/presentations/bh-asia-04/bh-jp-04-pdfs/bh-jp-04-seki.pdf - * Optimized Attack for NTLM2 Session Response] +* A request using the `HTTPNtlmAuthHandler` has no HTTP status handling, for + example: redirects are not handled by the opener, you must check and + handle the response yourself. + +# Resources + +## Inspired by +* [http://sourceforge.net/projects/ntlmaps/ NTLM Authorization Proxy Server] +(Dmitri Rozmanov kindly allowed his code to be redistributed under the LGPL) + +The NTLM Authorization Proxy Server can be used to make applications that do +not support NTLM proxies use them anyway: "Opens up IIS Proxy Servers using +NTLM to non-Microsoft browsers, etc" + +In contrast the python-ntlm library is used to make it possible for python +code to retrieve content from an NTLM protected server. + +## References +* [MS-NLMP]: NT LAN Manager (NTLM) Authentication Protocol Specification +http://download.microsoft.com/download/a/e/6/ae6e4142-aa58-45c6-8dcf-a657e5900cd3/%5BMS-NLMP%5D.pdf + +* [MS-NTHT]: NTLM Over HTTP Protocol Specification +http://download.microsoft.com/download/a/e/6/ae6e4142-aa58-45c6-8dcf-a657e5900cd3/%5BMS-NTHT%5D.pdf + +* Optimized Attack for NTLM2 Session Response +http://www.blackhat.com/presentations/bh-asia-04/bh-jp-04-pdfs/bh-jp-04-seki.pdf diff --git a/libraries/python-ntlm/python-ntlm.SlackBuild b/libraries/python-ntlm/python-ntlm.SlackBuild index 7da4da552c..7ad4ae7408 100644 --- a/libraries/python-ntlm/python-ntlm.SlackBuild +++ b/libraries/python-ntlm/python-ntlm.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python-ntlm -# Copyright 2015 Brenton Earl +# Copyright 2015-2016 Brenton Earl # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -29,7 +29,7 @@ TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" -- cgit v1.2.3-65-gdbad