From 8b72bcfd9985075ac78182ce1e472a64fd1d38ec Mon Sep 17 00:00:00 2001 From: sborrill Date: Fri, 17 Oct 2008 19:23:25 +0000 Subject: NTLM is an authentication protocol used by Microsoft Internet Informations Server(tm) and Microsoft Internet Explorer(tm). While it is not really secure, it offers background authentication (the workstation logon credentials of users are passed through to the web server). This feature is widely used in intranets based on these Microsoft products. This module is implementing NTLM authentication for Apache on Unix platforms. It is available free of charges under the BSD License. --- www/ap-auth-ntlm/DESCR | 8 ++++++ www/ap-auth-ntlm/MESSAGE | 13 ++++++++++ www/ap-auth-ntlm/Makefile | 33 +++++++++++++++++++++++++ www/ap-auth-ntlm/PLIST | 4 +++ www/ap-auth-ntlm/distinfo | 8 ++++++ www/ap-auth-ntlm/patches/patch-ntlmssp.inc.c | 8 ++++++ www/ap-auth-ntlm/patches/patch-smbencrypt.inc.c | 13 ++++++++++ www/ap-auth-ntlm/patches/patch-smblib.inc.c | 23 +++++++++++++++++ 8 files changed, 110 insertions(+) create mode 100644 www/ap-auth-ntlm/DESCR create mode 100644 www/ap-auth-ntlm/MESSAGE create mode 100644 www/ap-auth-ntlm/Makefile create mode 100644 www/ap-auth-ntlm/PLIST create mode 100644 www/ap-auth-ntlm/distinfo create mode 100644 www/ap-auth-ntlm/patches/patch-ntlmssp.inc.c create mode 100644 www/ap-auth-ntlm/patches/patch-smbencrypt.inc.c create mode 100644 www/ap-auth-ntlm/patches/patch-smblib.inc.c (limited to 'www/ap-auth-ntlm') diff --git a/www/ap-auth-ntlm/DESCR b/www/ap-auth-ntlm/DESCR new file mode 100644 index 00000000000..caf744bde0a --- /dev/null +++ b/www/ap-auth-ntlm/DESCR @@ -0,0 +1,8 @@ +NTLM is an authentication protocol used by Microsoft Internet Informations +Server(tm) and Microsoft Internet Explorer(tm). While it is not really +secure, it offers background authentication (the workstation logon +credentials of users are passed through to the web server). This feature is +widely used in intranets based on these Microsoft products. + +This module is implementing NTLM authentication for Apache on Unix +platforms. It is available free of charges under the BSD License. diff --git a/www/ap-auth-ntlm/MESSAGE b/www/ap-auth-ntlm/MESSAGE new file mode 100644 index 00000000000..2a82ca63c46 --- /dev/null +++ b/www/ap-auth-ntlm/MESSAGE @@ -0,0 +1,13 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2008/10/17 19:23:25 sborrill Exp $ + +In order to use this module in your Apache installation, you need to +add the following to your httpd.conf file: + + LoadModule ${MODULE_NAME} lib/httpd/mod_ntlm.so + +An example httpd.conf fragment can be found in: + + ${EGDIR}/ntlm.conf + +=========================================================================== diff --git a/www/ap-auth-ntlm/Makefile b/www/ap-auth-ntlm/Makefile new file mode 100644 index 00000000000..58f21223328 --- /dev/null +++ b/www/ap-auth-ntlm/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/10/17 19:23:25 sborrill Exp $ +# + +DISTNAME= ntlm1 +PKGNAME= ${APACHE_PKG_PREFIX}-auth-ntlm-${DISTVERS} +CATEGORIES= www +MASTER_SITES= http://www.jamiekerwick.co.uk/modntlm/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://modntlm.sourceforge.com/ +COMMENT= Apache module for NTLM authentication + +PKG_APACHE_ACCEPTED= apache13 + +.include "../../mk/apache.mk" + +APACHE_MODULE_NAME= mod_ntlm.${MODULE_EXT} + +WRKSRC= ${WRKDIR} + +DISTVERS= 0.5 +MODULE_EXT= so +MESSAGE_SUBST+= MODULE_NAME=ntlm_module +MESSAGE_SUBST+= EGDIR=${EGDIR} + +EGDIR= ${PREFIX}/share/examples/mod_ntlm + +post-install: + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/ntlm.conf ${EGDIR} + +.include "../../www/apache/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/ap-auth-ntlm/PLIST b/www/ap-auth-ntlm/PLIST new file mode 100644 index 00000000000..ace25b815a3 --- /dev/null +++ b/www/ap-auth-ntlm/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/10/17 19:23:25 sborrill Exp $ +lib/httpd/mod_ntlm.so +share/examples/mod_ntlm/ntlm.conf +@dirrm share/examples/mod_ntlm diff --git a/www/ap-auth-ntlm/distinfo b/www/ap-auth-ntlm/distinfo new file mode 100644 index 00000000000..e136df690e6 --- /dev/null +++ b/www/ap-auth-ntlm/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/10/17 19:23:25 sborrill Exp $ + +SHA1 (ntlm1.tar.gz) = f1fb13c664125c8d543069d3357a740cbb76a154 +RMD160 (ntlm1.tar.gz) = 768ff7e0fb381c1b6642d6d1a739c209f17f26fd +Size (ntlm1.tar.gz) = 79318 bytes +SHA1 (patch-ntlmssp.inc.c) = 9a92d9a86996933269998b48e52a0c66489f2d65 +SHA1 (patch-smbencrypt.inc.c) = 55c74559a05f9d7dfab6df006dea74fdcb1fe49a +SHA1 (patch-smblib.inc.c) = 90c4c795a7d4619650e565d3055cf2a0447b7d70 diff --git a/www/ap-auth-ntlm/patches/patch-ntlmssp.inc.c b/www/ap-auth-ntlm/patches/patch-ntlmssp.inc.c new file mode 100644 index 00000000000..a88f3b1e1db --- /dev/null +++ b/www/ap-auth-ntlm/patches/patch-ntlmssp.inc.c @@ -0,0 +1,8 @@ +$NetBSD: patch-ntlmssp.inc.c,v 1.1.1.1 2008/10/17 19:23:25 sborrill Exp $ +--- ntlmssp.inc.c.orig 2004-02-19 15:24:08.000000000 +0000 ++++ ntlmssp.inc.c 2008-10-17 17:53:34.000000000 +0100 +@@ -1,3 +1,4 @@ ++#include "httpd/httpd.h" + /* + * $Id: patch-ntlmssp.inc.c,v 1.1.1.1 2008/10/17 19:23:25 sborrill Exp $ + * diff --git a/www/ap-auth-ntlm/patches/patch-smbencrypt.inc.c b/www/ap-auth-ntlm/patches/patch-smbencrypt.inc.c new file mode 100644 index 00000000000..373a65b9942 --- /dev/null +++ b/www/ap-auth-ntlm/patches/patch-smbencrypt.inc.c @@ -0,0 +1,13 @@ +$NetBSD: patch-smbencrypt.inc.c,v 1.1.1.1 2008/10/17 19:23:25 sborrill Exp $ +--- smbval/smbencrypt.inc.c.orig 2003-06-05 20:21:26.000000000 +0100 ++++ smbval/smbencrypt.inc.c 2008-10-17 17:47:37.000000000 +0100 +@@ -19,7 +19,9 @@ + #include + #include + #include ++#ifndef __NetBSD__ + #include ++#endif + #include + + #include "smblib-priv.h" diff --git a/www/ap-auth-ntlm/patches/patch-smblib.inc.c b/www/ap-auth-ntlm/patches/patch-smblib.inc.c new file mode 100644 index 00000000000..bb488366aa1 --- /dev/null +++ b/www/ap-auth-ntlm/patches/patch-smblib.inc.c @@ -0,0 +1,23 @@ +$NetBSD: patch-smblib.inc.c,v 1.1.1.1 2008/10/17 19:23:25 sborrill Exp $ +--- smbval/smblib.inc.c.orig 2004-02-19 15:24:46.000000000 +0000 ++++ smbval/smblib.inc.c 2008-10-17 17:50:39.000000000 +0100 +@@ -22,8 +22,8 @@ + #include + #include + +-static int SMBlib_errno; +-static int SMBlib_SMB_Error; ++int SMBlib_errno; ++int SMBlib_SMB_Error; + #define SMBLIB_ERRNO + #define uchar unsigned char + #include "smblib-priv.h" +@@ -33,7 +33,7 @@ + + #include + +-static SMB_State_Types SMBlib_State; ++SMB_State_Types SMBlib_State; + + /* Initialize the SMBlib package */ + static int -- cgit v1.2.3