Module Name: src
Committed By: christos
Date: Sun Feb 20 02:12:31 UTC 2011
Modified Files:
src/crypto/external/bsd/libsaslc: Makefile
Added Files:
src/crypto/external/bsd/libsaslc/etc: ANONYMOUS.conf CRAM-MD5.conf
DIGEST-MD5.conf EXTERNAL.conf GSSAPI.conf LOGIN.conf Makefile
PLAIN.conf README saslc.conf
Log Message:
Add example configuration file from Anon Ymous and a README file from me.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/crypto/external/bsd/libsaslc/Makefile
cvs rdiff -u -r0 -r1.1 src/crypto/external/bsd/libsaslc/etc/ANONYMOUS.conf \
src/crypto/external/bsd/libsaslc/etc/CRAM-MD5.conf \
src/crypto/external/bsd/libsaslc/etc/DIGEST-MD5.conf \
src/crypto/external/bsd/libsaslc/etc/EXTERNAL.conf \
src/crypto/external/bsd/libsaslc/etc/GSSAPI.conf \
src/crypto/external/bsd/libsaslc/etc/LOGIN.conf \
src/crypto/external/bsd/libsaslc/etc/Makefile \
src/crypto/external/bsd/libsaslc/etc/PLAIN.conf \
src/crypto/external/bsd/libsaslc/etc/README \
src/crypto/external/bsd/libsaslc/etc/saslc.conf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/libsaslc/Makefile
diff -u src/crypto/external/bsd/libsaslc/Makefile:1.1.1.1 src/crypto/external/bsd/libsaslc/Makefile:1.2
--- src/crypto/external/bsd/libsaslc/Makefile:1.1.1.1 Sat Nov 27 16:23:57 2010
+++ src/crypto/external/bsd/libsaslc/Makefile Sat Feb 19 21:12:31 2011
@@ -1,5 +1,5 @@
-# $NetBSD: Makefile,v 1.1.1.1 2010/11/27 21:23:57 agc Exp $
+# $NetBSD: Makefile,v 1.2 2011/02/20 02:12:31 christos Exp $
-SUBDIR+= lib
+SUBDIR+= etc lib
.include <bsd.subdir.mk>
Added files:
Index: src/crypto/external/bsd/libsaslc/etc/ANONYMOUS.conf
diff -u /dev/null src/crypto/external/bsd/libsaslc/etc/ANONYMOUS.conf:1.1
--- /dev/null Sat Feb 19 21:12:31 2011
+++ src/crypto/external/bsd/libsaslc/etc/ANONYMOUS.conf Sat Feb 19 21:12:31 2011
@@ -0,0 +1,8 @@
+# $NetBSD: ANONYMOUS.conf,v 1.1 2011/02/20 02:12:31 christos Exp $
+#
+# The properties used by this mechanism are listed below. Usually no
+# settings are needed.
+#
+# key value
+
+# AUTHCID "authentication ID"
Index: src/crypto/external/bsd/libsaslc/etc/CRAM-MD5.conf
diff -u /dev/null src/crypto/external/bsd/libsaslc/etc/CRAM-MD5.conf:1.1
--- /dev/null Sat Feb 19 21:12:31 2011
+++ src/crypto/external/bsd/libsaslc/etc/CRAM-MD5.conf Sat Feb 19 21:12:31 2011
@@ -0,0 +1,9 @@
+# $NetBSD: CRAM-MD5.conf,v 1.1 2011/02/20 02:12:31 christos Exp $
+#
+# The properties used by this mechanism are listed below. Usually no
+# settings are needed.
+#
+# key value
+
+# AUTHCID "username" # usually passed by the caller
+# PASSWD "password" # usually passed by the caller
Index: src/crypto/external/bsd/libsaslc/etc/DIGEST-MD5.conf
diff -u /dev/null src/crypto/external/bsd/libsaslc/etc/DIGEST-MD5.conf:1.1
--- /dev/null Sat Feb 19 21:12:31 2011
+++ src/crypto/external/bsd/libsaslc/etc/DIGEST-MD5.conf Sat Feb 19 21:12:31 2011
@@ -0,0 +1,17 @@
+# $NetBSD: DIGEST-MD5.conf,v 1.1 2011/02/20 02:12:31 christos Exp $
+#
+# The properties used by this mechanism are listed below. Usually no
+# settings are needed.
+#
+# key value
+
+# AUTHCID "username" # usually passed by the caller
+# AUTHZID "authorization ID" # typically not used
+# CIPHERMASK "3des,aes,des,rc4,rc4-40,rc4-56" # optional
+# HOSTNAME "hostname" # usually passed by the caller
+# MAXBUF 0x10000 # optional
+# PASSWD "password" # usually passed by the caller
+# QOPMASK "auth,auth-int,auth-conf" # optional
+# REALM "[hostname:]realm[,...]" # for multiple realms
+# SERVICE "service to use, e.g., SMTP" # usually passed by the caller
+# SERVNAME "[hostname:]serv-name[,...]" # typically not used
Index: src/crypto/external/bsd/libsaslc/etc/EXTERNAL.conf
diff -u /dev/null src/crypto/external/bsd/libsaslc/etc/EXTERNAL.conf:1.1
--- /dev/null Sat Feb 19 21:12:31 2011
+++ src/crypto/external/bsd/libsaslc/etc/EXTERNAL.conf Sat Feb 19 21:12:31 2011
@@ -0,0 +1,8 @@
+# $NetBSD: EXTERNAL.conf,v 1.1 2011/02/20 02:12:31 christos Exp $
+#
+# The properties used by this mechanism are listed below. Usually no
+# settings are needed.
+#
+# key value
+
+# AUTHZID "authorization ID" # the server may need this
Index: src/crypto/external/bsd/libsaslc/etc/GSSAPI.conf
diff -u /dev/null src/crypto/external/bsd/libsaslc/etc/GSSAPI.conf:1.1
--- /dev/null Sat Feb 19 21:12:31 2011
+++ src/crypto/external/bsd/libsaslc/etc/GSSAPI.conf Sat Feb 19 21:12:31 2011
@@ -0,0 +1,11 @@
+# $NetBSD: GSSAPI.conf,v 1.1 2011/02/20 02:12:31 christos Exp $
+#
+# The properties used by this mechanism are listed below. Usually no
+# settings are needed.
+#
+# key value
+
+# AUTHCID "username" # usually passed by the caller
+# HOSTNAME "hostname" # usually passed by the caller
+# QOPMASK "auth,auth-int,auth-conf" # optional
+# SERVICE "service to use, e.g., SMTP" # usually passed by the caller
Index: src/crypto/external/bsd/libsaslc/etc/LOGIN.conf
diff -u /dev/null src/crypto/external/bsd/libsaslc/etc/LOGIN.conf:1.1
--- /dev/null Sat Feb 19 21:12:31 2011
+++ src/crypto/external/bsd/libsaslc/etc/LOGIN.conf Sat Feb 19 21:12:31 2011
@@ -0,0 +1,9 @@
+# $NetBSD: LOGIN.conf,v 1.1 2011/02/20 02:12:31 christos Exp $
+#
+# The properties used by this mechanism are listed below. Usually no
+# settings are needed.
+#
+# key value
+
+# AUTHCID "username" # usually passed by the caller
+# PASSWD "password" # usually passed by the caller
Index: src/crypto/external/bsd/libsaslc/etc/Makefile
diff -u /dev/null src/crypto/external/bsd/libsaslc/etc/Makefile:1.1
--- /dev/null Sat Feb 19 21:12:31 2011
+++ src/crypto/external/bsd/libsaslc/etc/Makefile Sat Feb 19 21:12:31 2011
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2011/02/20 02:12:31 christos Exp $
+
+.include <bsd.own.mk>
+
+CFG_DIR=/usr/share/examples/libsaslc
+
+CFG_FILE= saslc.conf
+CFG_FILE+= README
+CFG_MECH=
+CFG_MECH+= ANONYMOUS.conf
+CFG_MECH+= CRAM-MD5.conf
+CFG_MECH+= DIGEST-MD5.conf
+CFG_MECH+= EXTERNAL.conf
+CFG_MECH+= GSSAPI.conf
+CFG_MECH+= LOGIN.conf
+CFG_MECH+= PLAIN.conf
+
+install:
+ ${INSTALL_FILE} -d -o root -g wheel -m 444 \
+ ${CFG_FILE} ${DESTDIR}${CFG_DIR}
+ ${INSTALL_FILE} -d -o root -g wheel -m 444 \
+ ${CFG_MECH} ${DESTDIR}${CFG_DIR}/mech
Index: src/crypto/external/bsd/libsaslc/etc/PLAIN.conf
diff -u /dev/null src/crypto/external/bsd/libsaslc/etc/PLAIN.conf:1.1
--- /dev/null Sat Feb 19 21:12:31 2011
+++ src/crypto/external/bsd/libsaslc/etc/PLAIN.conf Sat Feb 19 21:12:31 2011
@@ -0,0 +1,9 @@
+# $NetBSD: PLAIN.conf,v 1.1 2011/02/20 02:12:31 christos Exp $
+#
+# The properties used by this mechanism are listed below. Usually no
+# settings are needed.
+#
+# key value
+
+# AUTHCID "username" # usually passed by the caller
+# PASSWD "password" # usually passed by the caller
Index: src/crypto/external/bsd/libsaslc/etc/README
diff -u /dev/null src/crypto/external/bsd/libsaslc/etc/README:1.1
--- /dev/null Sat Feb 19 21:12:31 2011
+++ src/crypto/external/bsd/libsaslc/etc/README Sat Feb 19 21:12:31 2011
@@ -0,0 +1,22 @@
+$NetBSD: README,v 1.1 2011/02/20 02:12:31 christos Exp $
+
+These are example configuration files that are supposed to be installed
+in /etc/saslc.d/ and are used to configure saslc globally as well as its
+different authentication mechanisms.
+
+The tree hierarchy looks like:
+
+Default and global configuration files:
+
+ /etc/saslc.d/saslc/saslc.conf
+ /etc/saslc.d/saslc/mechs/{ANONYMOUS,CRAM-MD5,DIGEST-MD5}.conf
+ /etc/saslc.d/saslc/mechs/{EXTERNAL,GSSAPI,LOGIN,PLAIN}.conf
+
+Custom configuration files for <program> (for example postfix):
+
+ /etc/saslc.d/<program>/saslc.conf
+ /etc/saslc.d/<program>/mechs/{ANONYMOUS,CRAM-MD5,DIGEST-MD5}.conf
+ /etc/saslc.d/<program>/mechs/{EXTERNAL,GSSAPI,LOGIN,PLAIN}.conf
+
+Remember that some of the files contain sensitive information and should
+be installed with the proper permissions (0600).
Index: src/crypto/external/bsd/libsaslc/etc/saslc.conf
diff -u /dev/null src/crypto/external/bsd/libsaslc/etc/saslc.conf:1.1
--- /dev/null Sat Feb 19 21:12:31 2011
+++ src/crypto/external/bsd/libsaslc/etc/saslc.conf Sat Feb 19 21:12:31 2011
@@ -0,0 +1,5 @@
+# $NetBSD: saslc.conf,v 1.1 2011/02/20 02:12:31 christos Exp $
+#
+# key value
+
+# DEBUG "yes" # enable debugging