pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www NTLM is an authentication protocol used by Microso...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f80fe70c5a7
branches:  trunk
changeset: 548567:2f80fe70c5a7
user:      sborrill <sborrill%pkgsrc.org@localhost>
date:      Fri Oct 17 19:23:25 2008 +0000

description:
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:

 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 ++++++++++++++++
 www/ap2-auth-ntlm/DESCR                          |   8 +++++
 www/ap2-auth-ntlm/MESSAGE                        |  13 +++++++++
 www/ap2-auth-ntlm/Makefile                       |  34 ++++++++++++++++++++++++
 www/ap2-auth-ntlm/PLIST                          |   4 ++
 www/ap2-auth-ntlm/distinfo                       |   9 ++++++
 www/ap2-auth-ntlm/patches/patch-mod_ntlm.c       |  13 +++++++++
 www/ap2-auth-ntlm/patches/patch-ntlmssp.inc.c    |   8 +++++
 www/ap2-auth-ntlm/patches/patch-smbencrypt.inc.c |  13 +++++++++
 www/ap2-auth-ntlm/patches/patch-smblib.inc.c     |  23 ++++++++++++++++
 17 files changed, 235 insertions(+), 0 deletions(-)

diffs (truncated from 303 to 300 lines):

diff -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap-auth-ntlm/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-auth-ntlm/DESCR    Fri Oct 17 19:23:25 2008 +0000
@@ -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 -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap-auth-ntlm/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-auth-ntlm/MESSAGE  Fri Oct 17 19:23:25 2008 +0000
@@ -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 -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap-auth-ntlm/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-auth-ntlm/Makefile Fri Oct 17 19:23:25 2008 +0000
@@ -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@localhost
+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 -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap-auth-ntlm/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-auth-ntlm/PLIST    Fri Oct 17 19:23:25 2008 +0000
@@ -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 -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap-auth-ntlm/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-auth-ntlm/distinfo Fri Oct 17 19:23:25 2008 +0000
@@ -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 -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap-auth-ntlm/patches/patch-ntlmssp.inc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-auth-ntlm/patches/patch-ntlmssp.inc.c      Fri Oct 17 19:23:25 2008 +0000
@@ -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 -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap-auth-ntlm/patches/patch-smbencrypt.inc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-auth-ntlm/patches/patch-smbencrypt.inc.c   Fri Oct 17 19:23:25 2008 +0000
@@ -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 -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap-auth-ntlm/patches/patch-smblib.inc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-auth-ntlm/patches/patch-smblib.inc.c       Fri Oct 17 19:23:25 2008 +0000
@@ -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 
diff -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap2-auth-ntlm/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-ntlm/DESCR   Fri Oct 17 19:23:25 2008 +0000
@@ -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 -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap2-auth-ntlm/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-ntlm/MESSAGE Fri Oct 17 19:23:25 2008 +0000
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2008/10/17 19:24:10 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 -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap2-auth-ntlm/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-ntlm/Makefile        Fri Oct 17 19:23:25 2008 +0000
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/10/17 19:24:10 sborrill Exp $
+#
+
+DISTNAME=      ntlm2
+PKGNAME=       ${APACHE_PKG_PREFIX}-auth-ntlm-${DISTVERS}
+CATEGORIES=    www
+MASTER_SITES=  http://www.jamiekerwick.co.uk/modntlm/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://modntlm.sourceforge.com/
+COMMENT=       Apache module for NTLM authentication
+
+PKG_APACHE_ACCEPTED=   apache2 apache22
+
+.include "../../mk/apache.mk"
+
+APACHE_MODULE_NAME=    mod_ntlm.${MODULE_EXT}
+
+WRKSRC=                ${WRKDIR}
+
+DISTVERS=      0.2
+MODULE_EXT=    la
+
+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 -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap2-auth-ntlm/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-ntlm/PLIST   Fri Oct 17 19:23:25 2008 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/10/17 19:24:10 sborrill Exp $
+lib/httpd/mod_ntlm.so
+share/examples/mod_ntlm/ntlm.conf
+@dirrm share/examples/mod_ntlm
diff -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap2-auth-ntlm/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-ntlm/distinfo        Fri Oct 17 19:23:25 2008 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/10/17 19:24:10 sborrill Exp $
+
+SHA1 (ntlm2.tar.gz) = 02deae9b83a73410bab989245335d684f1288f5e
+RMD160 (ntlm2.tar.gz) = 5607b2e2b6420aa7534af0bb38fbf7a877ca616d
+Size (ntlm2.tar.gz) = 39380 bytes
+SHA1 (patch-mod_ntlm.c) = a5503e6bbcdaf9fe40522f44f78c20fd4160b60c
+SHA1 (patch-ntlmssp.inc.c) = f69298ef354a07f50e941ce63ab656e05a148e6b
+SHA1 (patch-smbencrypt.inc.c) = 55c74559a05f9d7dfab6df006dea74fdcb1fe49a
+SHA1 (patch-smblib.inc.c) = 90c4c795a7d4619650e565d3055cf2a0447b7d70
diff -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap2-auth-ntlm/patches/patch-mod_ntlm.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-ntlm/patches/patch-mod_ntlm.c        Fri Oct 17 19:23:25 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-mod_ntlm.c,v 1.1.1.1 2008/10/17 19:24:10 sborrill Exp $
+Add Apache 2.2 compatibility
+--- mod_ntlm.c.orig    2008-10-17 20:18:13.000000000 +0100
++++ mod_ntlm.c 2008-10-17 20:18:13.000000000 +0100
+@@ -671,7 +671,7 @@
+         return NULL;
+     }
+ 
+-    apr_pool_sub_make(&sp,p,NULL);
++    apr_pool_create_ex(&sp,p,NULL,NULL);
+ 
+     while (!(ap_cfg_getline(l, MAX_STRING_LEN, f))) {
+         if ((l[0] == '#') || (!l[0]))
diff -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap2-auth-ntlm/patches/patch-ntlmssp.inc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-ntlm/patches/patch-ntlmssp.inc.c     Fri Oct 17 19:23:25 2008 +0000
@@ -0,0 +1,8 @@
+$NetBSD: patch-ntlmssp.inc.c,v 1.1.1.1 2008/10/17 19:24:10 sborrill Exp $
+--- ntlmssp.inc.c.orig 2004-02-19 15:21:06.000000000 +0000
++++ ntlmssp.inc.c      2008-10-17 19:33:51.000000000 +0100
+@@ -1,3 +1,4 @@
++#include "httpd/httpd.h"
+ /*
+  * $Id: patch-ntlmssp.inc.c,v 1.1.1.1 2008/10/17 19:24:10 sborrill Exp $
+  *
diff -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap2-auth-ntlm/patches/patch-smbencrypt.inc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-ntlm/patches/patch-smbencrypt.inc.c  Fri Oct 17 19:23:25 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-smbencrypt.inc.c,v 1.1.1.1 2008/10/17 19:24:10 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 -r 9ce3392b1ccd -r 2f80fe70c5a7 www/ap2-auth-ntlm/patches/patch-smblib.inc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-ntlm/patches/patch-smblib.inc.c      Fri Oct 17 19:23:25 2008 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-smblib.inc.c,v 1.1.1.1 2008/10/17 19:24:10 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;



Home | Main Index | Thread Index | Old Index