ports/95752: [NEW PORT] mail/squirrelmail-login_auth-plugin: auto login based on HTTP auth
Stefan Bethke
stb at lassitu.de
Fri Apr 14 16:20:26 UTC 2006
>Number: 95752
>Category: ports
>Synopsis: [NEW PORT] mail/squirrelmail-login_auth-plugin: auto login based on HTTP auth
>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: Fri Apr 14 16:20:25 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Stefan Bethke
>Release: 6.1-PRE
>Organization:
-
>Environment:
>Description:
If you keep SquirrelMail behind a password-protected directory on your web
server and if PHP has access to the username and password, this plugin will
bypass the login screen and use the provided username/password.
If this plugin enabled and the information isn't present, it doesn't crash
or produce error messages. It just doesn't automatically log you in. If the
user/pass information does not work for the IMAP server, this still displays
the login form, just in case the web server password and IMAP password are
not synchronized.
WWW: http://www.squirrelmail.org/plugin_view.php?id=34
>How-To-Repeat:
>Fix:
# 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:
#
# mail/squirrelmail-login_auth-plugin
# mail/squirrelmail-login_auth-plugin/pkg-plist
# mail/squirrelmail-login_auth-plugin/pkg-descr
# mail/squirrelmail-login_auth-plugin/distinfo
# mail/squirrelmail-login_auth-plugin/Makefile
#
echo c - mail/squirrelmail-login_auth-plugin
mkdir -p mail/squirrelmail-login_auth-plugin > /dev/null 2>&1
echo x - mail/squirrelmail-login_auth-plugin/pkg-plist
sed 's/^X//' >mail/squirrelmail-login_auth-plugin/pkg-plist << 'END-of-mail/squirrelmail-login_auth-plugin/pkg-plist'
X at unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin login_auth; fi
X%%SQUIRRELDIR%%/plugins/login_auth/COPYING
X%%SQUIRRELDIR%%/plugins/login_auth/INSTALL
X%%SQUIRRELDIR%%/plugins/login_auth/README
X%%SQUIRRELDIR%%/plugins/login_auth/functions.php
X%%SQUIRRELDIR%%/plugins/login_auth/index.php
X%%SQUIRRELDIR%%/plugins/login_auth/setup.php
X%%SQUIRRELDIR%%/plugins/login_auth/version
X at dirrm %%SQUIRRELDIR%%/plugins/login_auth/
X at exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin login_auth; fi
END-of-mail/squirrelmail-login_auth-plugin/pkg-plist
echo x - mail/squirrelmail-login_auth-plugin/pkg-descr
sed 's/^X//' >mail/squirrelmail-login_auth-plugin/pkg-descr << 'END-of-mail/squirrelmail-login_auth-plugin/pkg-descr'
XIf you keep SquirrelMail behind a password-protected directory on your web
Xserver and if PHP has access to the username and password, this plugin will
Xbypass the login screen and use the provided username/password.
X
XIf this plugin enabled and the information isn't present, it doesn't crash
Xor produce error messages. It just doesn't automatically log you in. If the
Xuser/pass information does not work for the IMAP server, this still displays
Xthe login form, just in case the web server password and IMAP password are
Xnot synchronized.
X
XWWW: http://www.squirrelmail.org/plugin_view.php?id=34
END-of-mail/squirrelmail-login_auth-plugin/pkg-descr
echo x - mail/squirrelmail-login_auth-plugin/distinfo
sed 's/^X//' >mail/squirrelmail-login_auth-plugin/distinfo << 'END-of-mail/squirrelmail-login_auth-plugin/distinfo'
XMD5 (squirrelmail/login_auth-2.0-1.4.0.tar.gz) = cec2ad5fa53c29e82f58239afe8c2ec2
XSHA256 (squirrelmail/login_auth-2.0-1.4.0.tar.gz) = 619eb5e423234e1a6ce7545605f28e0064147730503897f3fc2109f25a7f8e84
XSIZE (squirrelmail/login_auth-2.0-1.4.0.tar.gz) = 10319
END-of-mail/squirrelmail-login_auth-plugin/distinfo
echo x - mail/squirrelmail-login_auth-plugin/Makefile
sed 's/^X//' >mail/squirrelmail-login_auth-plugin/Makefile << 'END-of-mail/squirrelmail-login_auth-plugin/Makefile'
X# New ports collection makefile for: squirrelmail-wetteronline-plugin
X# Date created: 14 April 2006
X# Whom: Stefan Bethke <stb at lassitu.de>
X#
X# $FreeBSD$
X
XPORTNAME= squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
XPORTVERSION= 2.0
XCATEGORIES= mail www
XMASTER_SITES= http://www.squirrelmail.org/plugins/ \
X http://alkoholix.tallence.de/www.squirrelmail.org/plugins/
XDISTNAME= ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.4.0
XDIST_SUBDIR= squirrelmail
X
XMAINTAINER= stb at lassitu.de
XCOMMENT= Automatically log in user based on HTTP authentication
X
XRUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail
X
XSQUIRREL_PLUGIN_NAME= login_auth
X
X.ifdef SQUIRRELDIR
XPLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR}
XSUB_LIST+= "SQUIRRELDIR=${SQUIRRELDIR}"
X.else
X. ifndef WITHOUT_WWWDIR
XSQUIRRELDIR= ${PREFIX}/www/squirrelmail
XPLIST_SUB+= SQUIRRELDIR=www/squirrelmail
XSUB_LIST+= "SQUIRRELDIR=www/squirrelmail"
X. else
XSQUIRRELDIR= ${PREFIX}/squirrelmail
XPLIST_SUB+= SQUIRRELDIR=squirrelmail
XSUB_LIST+= "SQUIRRELDIR=squirrelmail"
X. endif
X.endif
X
XNO_BUILD= yes
XNO_WRKSUBDIR= yes
XUSE_PERL5_BUILD= yes
XUSE_PHP= yes
XWANT_PHP_WEB= yes
X
Xpre-everything::
X @${ECHO} ""
X.ifndef WITHOUT_ACTIVATE
X @${ECHO} "Activating plug-in in SquirrelMail after installation."
X @${ECHO} "If you don't want to automatically activate the plug-in set"
X @${ECHO} "WITHOUT_ACTIVATE=yes"
X.else
X @${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
X @${ECHO} "If you want to automatically activate the plug-in unset"
X @${ECHO} "WITHOUT_ACTIVATE"
X.endif
X @${ECHO} ""
X
Xdo-install:
X ${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
X ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
X
Xpost-install:
X.ifndef WITHOUT_ACTIVATE
X.if exists( ${SQUIRRELDIR}/config/config.php )
X @${ECHO} "Activating plug-in in SquirrelMail"
X ${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
X.endif
X.else
X @${ECHO} "To activate the plug-in in SquirrelMail use"
X @${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
X.endif
X @${ECHO} ""
X
X.include <bsd.port.mk>
END-of-mail/squirrelmail-login_auth-plugin/Makefile
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list