summaryrefslogtreecommitdiff
path: root/www/ap-auth-ntlm
diff options
context:
space:
mode:
authorsborrill <sborrill@pkgsrc.org>2008-10-17 19:23:25 +0000
committersborrill <sborrill@pkgsrc.org>2008-10-17 19:23:25 +0000
commita8ffde84d3195d4c6d88ae60a91dd605c5a2f030 (patch)
tree0b27a575745b61a7646acd7d8f1bb2e943fbd28b /www/ap-auth-ntlm
parent574de7354cf00bba84424cb78d6ad8b4d9a208fd (diff)
downloadpkgsrc-a8ffde84d3195d4c6d88ae60a91dd605c5a2f030.tar.gz
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.
Diffstat (limited to 'www/ap-auth-ntlm')
-rw-r--r--www/ap-auth-ntlm/DESCR8
-rw-r--r--www/ap-auth-ntlm/MESSAGE13
-rw-r--r--www/ap-auth-ntlm/Makefile33
-rw-r--r--www/ap-auth-ntlm/PLIST4
-rw-r--r--www/ap-auth-ntlm/distinfo8
-rw-r--r--www/ap-auth-ntlm/patches/patch-ntlmssp.inc.c8
-rw-r--r--www/ap-auth-ntlm/patches/patch-smbencrypt.inc.c13
-rw-r--r--www/ap-auth-ntlm/patches/patch-smblib.inc.c23
8 files changed, 110 insertions, 0 deletions
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 <arpa/inet.h>
+ #include <dirent.h>
+ #include <string.h>
++#ifndef __NetBSD__
+ #include <sys/vfs.h>
++#endif
+ #include <netinet/in.h>
+
+ #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 <stdio.h>
+ #include <malloc.h>
+
+-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 <signal.h>
+
+-static SMB_State_Types SMBlib_State;
++SMB_State_Types SMBlib_State;
+
+ /* Initialize the SMBlib package */
+ static int