git: 68bae7d080ca - main - www/mod_lookup_identity: Add new Port

Jochen Neumeister <[email protected]> Thu, 06 Aug 2026 16:42:50 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by joneum:

URL: https://cgit.FreeBSD.org/ports/commit/?id=68bae7d080cafd0a2221b8e1f4ca65d5d1aed9d2

commit 68bae7d080cafd0a2221b8e1f4ca65d5d1aed9d2
Author:     Jochen Neumeister <[email protected]>
AuthorDate: 2026-08-06 16:40:45 +0000
Commit:     Jochen Neumeister <[email protected]>
CommitDate: 2026-08-06 16:42:39 +0000

    www/mod_lookup_identity: Add new Port
    
    mod_lookup_identity retrieves additional information about users
    authenticated by the Apache HTTP Server.  It queries the SSSD
    InfoPipe service over D-Bus and stores user attributes and group
    membership in request notes or environment variables for use by
    web applications.
    
    WWW: https://github.com/adelton/mod_lookup_identity
    
    Sponsored by:   Netzkommune GmbH
    
    Required for: FreeIPA server port
---
 www/Makefile                                       |  1 +
 www/mod_lookup_identity/Makefile                   | 35 ++++++++++++++++++++++
 www/mod_lookup_identity/distinfo                   |  3 ++
 .../files/240_mod_lookup_identity.conf.sample.in   | 17 +++++++++++
 www/mod_lookup_identity/pkg-descr                  |  6 ++++
 www/mod_lookup_identity/pkg-plist                  |  2 ++
 6 files changed, 64 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 605ca4aa14fe..5460687910d7 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -447,6 +447,7 @@
     SUBDIR += mod_jk
     SUBDIR += mod_limitipconn2
     SUBDIR += mod_log_sql
+    SUBDIR += mod_lookup_identity
     SUBDIR += mod_maxminddb
     SUBDIR += mod_memcache
     SUBDIR += mod_memcache_block
diff --git a/www/mod_lookup_identity/Makefile b/www/mod_lookup_identity/Makefile
new file mode 100644
index 000000000000..c10878bc85a0
--- /dev/null
+++ b/www/mod_lookup_identity/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	mod_lookup_identity
+DISTVERSIONPREFIX=	mod_lookup_identity-
+DISTVERSION=	1.0.0
+CATEGORIES=	www
+PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
+
+MAINTAINER=	[email protected]
+COMMENT=	Apache module for retrieving user identity information from SSSD
+WWW=		https://github.com/adelton/mod_lookup_identity
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libdbus-1.so:devel/dbus
+
+USES=		apache pkgconfig
+USE_GITHUB=	yes
+GH_ACCOUNT=	adelton
+
+CFLAGS+=	-Wall -pedantic -std=c99
+
+AP_FAST_BUILD=	yes
+AP_EXTRAS=	$$(${LOCALBASE}/bin/pkgconf --cflags dbus-1) \
+		$$(${LOCALBASE}/bin/pkgconf --libs dbus-1) \
+		-Wc,"${CFLAGS}"
+
+APMOD_FILE=	240_${PORTNAME}.conf.sample
+SUB_FILES=	${APMOD_FILE}
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
+	${INSTALL_DATA} ${WRKDIR}/${APMOD_FILE} \
+		${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
+
+.include <bsd.port.mk>
diff --git a/www/mod_lookup_identity/distinfo b/www/mod_lookup_identity/distinfo
new file mode 100644
index 000000000000..a3f761a4030b
--- /dev/null
+++ b/www/mod_lookup_identity/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1785830979
+SHA256 (adelton-mod_lookup_identity-mod_lookup_identity-1.0.0_GH0.tar.gz) = cd7b707006088d1fd528339639ea724679b299091da78fc48b5bc5c89ac28c1f
+SIZE (adelton-mod_lookup_identity-mod_lookup_identity-1.0.0_GH0.tar.gz) = 15249
diff --git a/www/mod_lookup_identity/files/240_mod_lookup_identity.conf.sample.in b/www/mod_lookup_identity/files/240_mod_lookup_identity.conf.sample.in
new file mode 100644
index 000000000000..9ee41454daa0
--- /dev/null
+++ b/www/mod_lookup_identity/files/240_mod_lookup_identity.conf.sample.in
@@ -0,0 +1,17 @@
+## vim: set filetype=apache:
+##
+## Disabled sample configuration for mod_lookup_identity.
+## Applications such as FreeIPA may load this module from their own
+## Apache configuration.
+##
+
+#LoadModule lookup_identity_module %%APACHEMODDIR%%/mod_lookup_identity.so
+
+#<Location /login>
+#  LookupUserAttr mail REMOTE_USER_EMAIL " "
+#  LookupUserAttr givenname REMOTE_USER_FIRSTNAME
+#  LookupUserAttr sn REMOTE_USER_LASTNAME
+#  LookupUserAttrIter custom REMOTE_USER_CUSTOM
+#  LookupUserGroups REMOTE_USER_GROUPS ":"
+#  LookupUserGroupsIter REMOTE_USER_GROUP
+#</Location>
diff --git a/www/mod_lookup_identity/pkg-descr b/www/mod_lookup_identity/pkg-descr
new file mode 100644
index 000000000000..75bc52f4621c
--- /dev/null
+++ b/www/mod_lookup_identity/pkg-descr
@@ -0,0 +1,6 @@
+mod_lookup_identity retrieves additional information about users authenticated
+by the Apache HTTP Server. It queries the SSSD InfoPipe service over D-Bus and
+stores user attributes and group membership in request notes or environment
+variables for use by web applications.
+
+The module can also map client certificates to user identities through SSSD.
diff --git a/www/mod_lookup_identity/pkg-plist b/www/mod_lookup_identity/pkg-plist
new file mode 100644
index 000000000000..e85d0a097507
--- /dev/null
+++ b/www/mod_lookup_identity/pkg-plist
@@ -0,0 +1,2 @@
+@sample %%APACHEETCDIR%%/modules.d/240_mod_lookup_identity.conf.sample
+%%APACHEMODDIR%%/mod_lookup_identity.so