mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
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>
This commit is contained in:
parent
4a079256c0
commit
6f40746b84
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=312460
@ -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
|
||||
|
70
security/php-openid-ldap/Makefile
Normal file
70
security/php-openid-ldap/Makefile
Normal file
@ -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>
|
2
security/php-openid-ldap/distinfo
Normal file
2
security/php-openid-ldap/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (openid-ldap-0.8.9-noarc.tar.gz) = a3dfe816fceaa27d96aa93bc34bbb29a2c5ebc562cc2d6b6a32cbb3b36f70a9a
|
||||
SIZE (openid-ldap-0.8.9-noarc.tar.gz) = 46793
|
43
security/php-openid-ldap/files/pkg-message.in
Normal file
43
security/php-openid-ldap/files/pkg-message.in
Normal file
@ -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>
|
||||
|
||||
**********************************************************************
|
18
security/php-openid-ldap/pkg-descr
Normal file
18
security/php-openid-ldap/pkg-descr
Normal file
@ -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/
|
Loading…
Reference in New Issue
Block a user