diff options
author | Brenton Earl <brent@exitstatusone.com> | 2016-12-16 04:52:40 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-12-16 05:17:54 +0700 |
commit | 186f2e01938b79989e662425664b3ccdae5604c2 (patch) | |
tree | d181a34c101e58b2c2351c1ac40edee42f1bdfd4 /libraries | |
parent | 2f037162df2af028a9f8a0392ebc8b9ee5b7227b (diff) |
libraries/python-ntlm: Switch to i586.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/python-ntlm/DOCUMENTATION | 56 | ||||
-rw-r--r-- | libraries/python-ntlm/python-ntlm.SlackBuild | 8 |
2 files changed, 31 insertions, 33 deletions
diff --git a/libraries/python-ntlm/DOCUMENTATION b/libraries/python-ntlm/DOCUMENTATION index 4d68dc29cab74..06837e4d6f8bf 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 7da4da552cfe5..7ad4ae7408d98 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 <brent@exitstatusone.com> +# Copyright 2015-2016 Brenton Earl <brent@exitstatusone.com> # 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" |