Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Oct 2003 21:34:22 +0200
From:      Clement Laforet <sheepkiller@cultdeadsheep.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        "Laforet <sheepkiller"@cultdeadsheep.org
Subject:   ports/58250: [new port] www/mod_ntlm2: Implements NTLM authentication for Apache 2.0.x.
Message-ID:  <20031019193453.CCF8D43F75@mx1.FreeBSD.org>
Resent-Message-ID: <200310191940.h9JJe9JD021050@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         58250
>Category:       ports
>Synopsis:       [new port] www/mod_ntlm2: Implements NTLM authentication for Apache 2.0.x.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 19 12:40:09 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Clement Laforet
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
cotds.org
>Environment:
System: FreeBSD lucifer.cultdeadsheep.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Mon Sep 22 08:20:10 CEST 2003 clement@lucifer.cultdeadsheep.org:/usr/obj/usr/src/sys/LUCIFER i386


	
>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 2.0.x.

	WWW: http://modntlm.sourceforge.net/

>How-To-Repeat:
	N/A.
>Fix:

	

--- mod_ntlm2.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mod_ntlm2
#	mod_ntlm2/files
#	mod_ntlm2/files/patch-smbval::smbencrypt.inc.c
#	mod_ntlm2/files/patch-Makefile
#	mod_ntlm2/Makefile
#	mod_ntlm2/distinfo
#	mod_ntlm2/pkg-descr
#	mod_ntlm2/pkg-plist
#
echo c - mod_ntlm2
mkdir -p mod_ntlm2 > /dev/null 2>&1
echo c - mod_ntlm2/files
mkdir -p mod_ntlm2/files > /dev/null 2>&1
echo x - mod_ntlm2/files/patch-smbval::smbencrypt.inc.c
sed 's/^X//' >mod_ntlm2/files/patch-smbval::smbencrypt.inc.c << 'END-of-mod_ntlm2/files/patch-smbval::smbencrypt.inc.c'
X--- smbval/smbencrypt.inc.c.orig	Sun Oct 19 13:03:11 2003
X+++ smbval/smbencrypt.inc.c	Sun Oct 19 13:03:21 2003
X@@ -19,7 +19,6 @@
X #include <arpa/inet.h>
X #include <dirent.h>
X #include <string.h>
X-#include <sys/vfs.h>
X #include <netinet/in.h>
X 
X #include "smblib-priv.h"
END-of-mod_ntlm2/files/patch-smbval::smbencrypt.inc.c
echo x - mod_ntlm2/files/patch-Makefile
sed 's/^X//' >mod_ntlm2/files/patch-Makefile << 'END-of-mod_ntlm2/files/patch-Makefile'
X--- Makefile.orig	Sun Oct 19 13:43:12 2003
X+++ Makefile	Sun Oct 19 13:43:26 2003
X@@ -5,8 +5,8 @@
X ## $Id: Makefile,v 1.3.4.1 2003/02/25 11:25:42 casz Exp $
X 
X #   the used tools
X-APXS=apxs
X-APACHECTL=/etc/rc.d/apache
X+#APXS=apxs
X+#APACHECTL=/etc/rc.d/apache
X 
X #   the default target
X all: mod_ntlm.so
X@@ -17,7 +17,7 @@
X 
X #   install the shared object file into Apache 
X install: all
X-	$(APXS) -i -a -n 'ntlm' mod_ntlm.so
X+	$(APXS) -i -A -n 'ntlm' mod_ntlm.so
X 
X #   cleanup
X clean:
END-of-mod_ntlm2/files/patch-Makefile
echo x - mod_ntlm2/Makefile
sed 's/^X//' >mod_ntlm2/Makefile << 'END-of-mod_ntlm2/Makefile'
X# New ports collection makefile for:	mod_ntlm2
X# Date created:				Sun Oct 19
X# Whom:					Clement Laforet <sheepkiller@cultdeadsheep.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_ntlm2
XPORTVERSION=	0.1
XCATEGORIES=	www
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	modntlm
XEXTRACT_SUFX=	.tgz
XDIST_SUBDIR=	apache
X
XMAINTAINER=	sheepkiller@cultdeadsheep.org
XCOMMENT=	Implements NTLM authentication for Apache 2.0.x
X
XBUILD_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
XRUN_DEPENDS=	${BUILD_DEPENDS}
XLIB_DEPENDS=	ntlm.0:${PORTSDIR}/security/libntlm
X
XUSE_REINPLACE=	yes
XAPXS?=		${LOCALBASE}/sbin/apxs
XMAKE_ARGS=	APXS=${APXS}
X
Xpost-patch:
X	@${GREP} -lR "<malloc.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
X		's|<malloc\.h>|<stdlib.h>|g'
X
Xpost-install:
X.if !(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/Documentation/mod_ntlm.html ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-mod_ntlm2/Makefile
echo x - mod_ntlm2/distinfo
sed 's/^X//' >mod_ntlm2/distinfo << 'END-of-mod_ntlm2/distinfo'
XMD5 (apache/mod_ntlm2-0.1.tgz) = 8abe4f235af6825f723412e187cac96b
END-of-mod_ntlm2/distinfo
echo x - mod_ntlm2/pkg-descr
sed 's/^X//' >mod_ntlm2/pkg-descr << 'END-of-mod_ntlm2/pkg-descr'
XNTLM is an authentication protocol used by Microsoft Internet Informations 
XServer(tm) and Microsoft Internet Explorer(tm). While it is not really secure, 
Xit offers background authentication (the workstation logon credentials of users 
Xare passed through to the web server). This feature is widely used in intranets 
Xbased on these Microsoft products.
XThis module is implementing NTLM authentication for Apache 2.0.x.
X
XWWW: http://modntlm.sourceforge.net/
END-of-mod_ntlm2/pkg-descr
echo x - mod_ntlm2/pkg-plist
sed 's/^X//' >mod_ntlm2/pkg-plist << 'END-of-mod_ntlm2/pkg-plist'
Xlibexec/apache2/mod_ntlm.so
X@exec %D/sbin/apxs -e -a -n ntlm %D/%f
X%%PORTDOCS%%%%DOCSDIR%%/mod_ntlm.html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@unexec echo "===>  If you do not plan on reinstalling mod_ntlm2, you must manually remove"; echo "===>  references to it in httpd.conf."
END-of-mod_ntlm2/pkg-plist
exit
--- mod_ntlm2.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031019193453.CCF8D43F75>