summaryrefslogtreecommitdiff
path: root/security/cy2-saml
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2009-09-13 19:57:13 +0000
committermanu <manu@pkgsrc.org>2009-09-13 19:57:13 +0000
commit2e44f9c6c9ee292ce9060871886c01afd66401e0 (patch)
tree4ee14c132256dbe8ccac5660861a07785f993f23 /security/cy2-saml
parentf0e05d046e056f93fdf67658dacf04ef484acfae (diff)
downloadpkgsrc-2e44f9c6c9ee292ce9060871886c01afd66401e0.tar.gz
SASL is a method for adding authentication support to connection-based
protocols. To use SASL, a protocol includes a command for identifying and authenticating a user to a server and for optionally negotiating protection of subsequent protocol interactions. If its use is negotiated, a security layer is inserted between the protocol and the connection. PAM provides a way to develop programs that are independent of authentication scheme. These programs need "authentication modules" to be attached to them at run-time in order to work. Which authentication module is to be attached is dependent upon the local system setup and is at the discretion of the local system administrator. This package contains a SASL plugin and a PAM module that perform a crude check on a SAML authentication assertion. The assertion signature and date are verified, and access is granted on behalf ot the user taked for a onfigurable attribute. The only protection against replay attacks is the assertion validity dates checks, this authentication is therefore secure only if the SAML authentication assertion remains secret. The assertion has the same role as a web cookie used for authentication.
Diffstat (limited to 'security/cy2-saml')
-rw-r--r--security/cy2-saml/DESCR24
-rw-r--r--security/cy2-saml/Makefile18
-rw-r--r--security/cy2-saml/PLIST3
3 files changed, 45 insertions, 0 deletions
diff --git a/security/cy2-saml/DESCR b/security/cy2-saml/DESCR
new file mode 100644
index 00000000000..a11f8f68d21
--- /dev/null
+++ b/security/cy2-saml/DESCR
@@ -0,0 +1,24 @@
+SASL is a method for adding authentication support to connection-based
+protocols. To use SASL, a protocol includes a command for identifying and
+authenticating a user to a server and for optionally negotiating protection
+of subsequent protocol interactions. If its use is negotiated, a security
+layer is inserted between the protocol and the connection.
+
+This package contains a SASL plugin that perform a crude check on a SAML
+authentication assertion. The assertion signature and date are verified,
+and access is granted on behalf ot the user taked for a onfigurable
+attribute.
+
+The only protection against replay attacks is the assertion validity dates
+checks, this authentication is therefore secure only if the SAML
+authentication assertion remains secret. The assertion has the same role
+as a web cookie used for authentication.
+
+Here is a PHP example of LDAP binding using www/ap2-auth-mellon:
+ $saml_msg = $_SERVER["MELLON_SAML_RESPONSE"];
+ $userid = $_SERVER["REMOTE_USER"];
+ if (ldap_sasl_bind($ds, NULL, $saml_msg, "SAML",
+ NULL, $userid, NULL, "none") == FALSE) {
+ printf("ldap_sasl_bind() failed: %s", ldap_error($ds));
+ exit;
+ }
diff --git a/security/cy2-saml/Makefile b/security/cy2-saml/Makefile
new file mode 100644
index 00000000000..58b0f22a7df
--- /dev/null
+++ b/security/cy2-saml/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/09/13 19:57:36 manu Exp $
+#
+
+PKGNAME= ${DISTNAME:S/crudesaml-/cy2-saml-/}
+COMMENT= Crude SAML assertion validator for bridging WebSSO and SASL
+
+PLUGINDIR= ${PREFIX}/lib/sasl2
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PLUGINDIR}
+ cd ${WRKSRC} && ${SHLIBTOOL} --mode=install \
+ ${INSTALL_PROGRAM} libsaml.la ${DESTDIR}${PLUGINDIR}
+ ${INSTALL_MAN} ${WRKSRC}/cy2_saml.5 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+
+.include "../../security/crudesaml/Makefile.common"
diff --git a/security/cy2-saml/PLIST b/security/cy2-saml/PLIST
new file mode 100644
index 00000000000..50ef2819b14
--- /dev/null
+++ b/security/cy2-saml/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/09/13 19:57:36 manu Exp $
+lib/sasl2/libsaml.la
+man/man5/cy2_saml.5