Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2013 00:18:21 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r312460 - in head/security: . php-openid-ldap php-openid-ldap/files
Message-ID:  <201302180018.r1I0IL7a034371@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Mon Feb 18 00:18:20 2013
New Revision: 312460
URL: http://svnweb.freebsd.org/changeset/ports/312460

Log:
  An open source PHP-based OpenID identity provider using LDAP as
  backend.
  
  OpenID-LDAP is a small, fairly lightweight, standalone, multi user
  Identity Provider for OpenID authentication.  It comprises a few PHP
  scripts that can be used by one individual to run their own personal
  OpenID IdP.
  
  This program requires no external libraries, and has very minimal
  requirements.  It should run on any PHP server (v4.2+), and can
  support OpenID in 'Smart Mode.'  This program caches all data using
  built-in PHP session handling, so it requires no database, and no
  explicit write access to the file system.
  
  OpenID-LDAP is NOT compatible with Suhosin or other hardened PHP
  systems.
  
  WWW: http://www.openid-ldap.org/
  
  PR:		ports/175258
  Submitted by:	Matthew X. Economou <xenophon+freebsd@irtnog.org>

Added:
  head/security/php-openid-ldap/
  head/security/php-openid-ldap/Makefile   (contents, props changed)
  head/security/php-openid-ldap/distinfo   (contents, props changed)
  head/security/php-openid-ldap/files/
  head/security/php-openid-ldap/files/pkg-message.in   (contents, props changed)
  head/security/php-openid-ldap/pkg-descr   (contents, props changed)
Modified:
  head/security/Makefile

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Sun Feb 17 23:43:47 2013	(r312459)
+++ head/security/Makefile	Mon Feb 18 00:18:20 2013	(r312460)
@@ -677,6 +677,7 @@
     SUBDIR += pgpin
     SUBDIR += php-Auth_OpenID
     SUBDIR += php-Auth_OpenID2
+    SUBDIR += php-openid-ldap
     SUBDIR += php-suhosin
     SUBDIR += php5-filter
     SUBDIR += php5-hash

Added: head/security/php-openid-ldap/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/php-openid-ldap/Makefile	Mon Feb 18 00:18:20 2013	(r312460)
@@ -0,0 +1,70 @@
+# Created by: Matthew X. Economou <xenophon+freebsd@irtnog.org>
+# $FreeBSD$
+
+PORTNAME=	openid-ldap
+PORTVERSION=	0.8.9
+CATEGORIES=	security www
+MASTER_SITES=	http://www.openid-ldap.org/releases/
+PKGNAMEPREFIX=	php${PHP_VER}-
+EXTRACT_SUFX=	-noarc.tar.gz
+
+MAINTAINER=	xenophon+freebsd@irtnog.org
+COMMENT=	PHP-based OpenID identity provider using LDAP as backend
+
+LICENSE=	GPLv2
+
+OPTIONS_DEFINE=	DOCS
+
+DEFAULT_PHP_VER=53
+IGNORE_WITH_PHP=5
+USE_PHP=	bcmath ldap session
+
+PKGMESSAGE=	${WRKDIR}/pkg-message
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-noarc
+NO_BUILD=	yes
+NO_INSTALL=	yes
+
+SUB_FILES+=	pkg-message
+
+PLIST_FILES=	%%WWWDIR%%/style.css \
+		%%WWWDIR%%/images/openid-logo.gif \
+		%%WWWDIR%%/images/openid.gif \
+		%%WWWDIR%%/images/logo.gif \
+		%%WWWDIR%%/images/openid.ico \
+		%%WWWDIR%%/images/user.gif \
+		%%WWWDIR%%/images/openid.png \
+		%%WWWDIR%%/images/seatbelt/icon-high.png \
+		%%WWWDIR%%/images/seatbelt/icon-gray.png \
+		%%WWWDIR%%/images/seatbelt/icon-logo.png \
+		%%WWWDIR%%/engine.php \
+		%%WWWDIR%%/showme.php \
+		%%WWWDIR%%/index.php \
+		%%WWWDIR%%/ldap.php
+PLIST_DIRS=	%%WWWDIR%%/images/seatbelt \
+		%%WWWDIR%%/images \
+		%%WWWDIR%%
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+PLIST_FILES+=	%%DOCSDIR%%/INSTALL \
+		%%DOCSDIR%%/FAQ \
+		%%DOCSDIR%%/LICENSE \
+		%%DOCSDIR%%/CHANGELOG \
+		%%DOCSDIR%%/htaccess \
+		%%DOCSDIR%%/README
+PLIST_DIRS+=	%%DOCSDIR%%
+.endif
+
+post-install:
+	${MKDIR} ${WWWDIR}
+	(cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} "*.php *.css images" ${WWWDIR})
+	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
+	${CHMOD} o= ${WWWDIR}/ldap.php
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${DOCSDIR}
+	(cd ${INSTALL_WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
+.endif
+	@${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>

Added: head/security/php-openid-ldap/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/php-openid-ldap/distinfo	Mon Feb 18 00:18:20 2013	(r312460)
@@ -0,0 +1,2 @@
+SHA256 (openid-ldap-0.8.9-noarc.tar.gz) = a3dfe816fceaa27d96aa93bc34bbb29a2c5ebc562cc2d6b6a32cbb3b36f70a9a
+SIZE (openid-ldap-0.8.9-noarc.tar.gz) = 46793

Added: head/security/php-openid-ldap/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/php-openid-ldap/files/pkg-message.in	Mon Feb 18 00:18:20 2013	(r312460)
@@ -0,0 +1,43 @@
+**********************************************************************
+The OpenID-LDAP identity provider has been installed in the directory
+%%WWWDIR%%.
+
+    SECURITY WARNING: OpenID-LDAP uses HTTP Basic Authentication,
+    which means that users' passwords are transmitted in the clear
+    (unencrypted) between the web browser and the web server.  By
+    default, OpenID-LDAP requires the use of an SSL connection and
+    will fail with an error message if the web server doesn't use SSL.
+
+You must configure OpenID-LDAP to work with your directory server by
+editing the file %%WWWDIR%%/ldap.php.
+
+You must add the appropriate configuration directives to your web
+server configuration file.  A typical configuration for Apache HTTPD
+2.2 installed from the FreeBSD port would involve adding the following
+lines to %%LOCALBASE%%/etc/apache22/Includes/openid-ldap.conf:
+
+    AddType application/x-httpd-php .php
+
+    Alias /openid-ldap %%WWWDIR%%
+
+    <IfModule dir_module>
+      DirectoryIndex index.php
+    </IfModule>
+
+    <Directory %%WWWDIR%%>
+      Options Indexes
+      AllowOverride All
+      Order allow,deny
+      Allow from all
+    </Directory>
+
+    <IfModule rewrite_module>
+      RewriteEngine on
+      RewriteCond %{REQUEST_URI} !^/openid-ldap/(.+)\.php(.*)$
+       RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /openid-ldap/([A-Za-z0-9]+)\?(.*)\ HTTP/
+        RewriteRule ^/(.*)$ http://%{SERVER_NAME}/openid-ldap/index.php?user=%1&%2 [proxy]
+      RewriteCond %{REQUEST_URI} !^/openid-ldap/(.+)\.php(.*)$
+        RewriteRule ^/([A-Za-z0-9]+)$ http://%{SERVER_NAME}/openid-ldap/index.php?user=$1 [proxy]
+    </IfModule>
+
+**********************************************************************

Added: head/security/php-openid-ldap/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/php-openid-ldap/pkg-descr	Mon Feb 18 00:18:20 2013	(r312460)
@@ -0,0 +1,18 @@
+An open source PHP-based OpenID identity provider using LDAP as
+backend.
+
+OpenID-LDAP is a small, fairly lightweight, standalone, multi user
+Identity Provider for OpenID authentication.  It comprises a few PHP
+scripts that can be used by one individual to run their own personal
+OpenID IdP.
+
+This program requires no external libraries, and has very minimal
+requirements.  It should run on any PHP server (v4.2+), and can
+support OpenID in 'Smart Mode.'  This program caches all data using
+built-in PHP session handling, so it requires no database, and no
+explicit write access to the file system.
+
+OpenID-LDAP is NOT compatible with Suhosin or other hardened PHP
+systems.
+
+WWW: http://www.openid-ldap.org/



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