Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/libsaslc Add example configuration file ...



details:   https://anonhg.NetBSD.org/src/rev/e8aeb7629342
branches:  trunk
changeset: 762346:e8aeb7629342
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 20 02:12:31 2011 +0000

description:
Add example configuration file from Anon Ymous and a README file from me.

diffstat:

 crypto/external/bsd/libsaslc/Makefile            |   4 ++--
 crypto/external/bsd/libsaslc/etc/ANONYMOUS.conf  |   8 ++++++++
 crypto/external/bsd/libsaslc/etc/CRAM-MD5.conf   |   9 +++++++++
 crypto/external/bsd/libsaslc/etc/DIGEST-MD5.conf |  17 +++++++++++++++++
 crypto/external/bsd/libsaslc/etc/EXTERNAL.conf   |   8 ++++++++
 crypto/external/bsd/libsaslc/etc/GSSAPI.conf     |  11 +++++++++++
 crypto/external/bsd/libsaslc/etc/LOGIN.conf      |   9 +++++++++
 crypto/external/bsd/libsaslc/etc/Makefile        |  22 ++++++++++++++++++++++
 crypto/external/bsd/libsaslc/etc/PLAIN.conf      |   9 +++++++++
 crypto/external/bsd/libsaslc/etc/README          |  22 ++++++++++++++++++++++
 crypto/external/bsd/libsaslc/etc/saslc.conf      |   5 +++++
 11 files changed, 122 insertions(+), 2 deletions(-)

diffs (171 lines):

diff -r 348a1314b359 -r e8aeb7629342 crypto/external/bsd/libsaslc/Makefile
--- a/crypto/external/bsd/libsaslc/Makefile     Sun Feb 20 01:59:46 2011 +0000
+++ b/crypto/external/bsd/libsaslc/Makefile     Sun Feb 20 02:12:31 2011 +0000
@@ -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>
diff -r 348a1314b359 -r e8aeb7629342 crypto/external/bsd/libsaslc/etc/ANONYMOUS.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/libsaslc/etc/ANONYMOUS.conf   Sun Feb 20 02:12:31 2011 +0000
@@ -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"
diff -r 348a1314b359 -r e8aeb7629342 crypto/external/bsd/libsaslc/etc/CRAM-MD5.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/libsaslc/etc/CRAM-MD5.conf    Sun Feb 20 02:12:31 2011 +0000
@@ -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
diff -r 348a1314b359 -r e8aeb7629342 crypto/external/bsd/libsaslc/etc/DIGEST-MD5.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/libsaslc/etc/DIGEST-MD5.conf  Sun Feb 20 02:12:31 2011 +0000
@@ -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
diff -r 348a1314b359 -r e8aeb7629342 crypto/external/bsd/libsaslc/etc/EXTERNAL.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/libsaslc/etc/EXTERNAL.conf    Sun Feb 20 02:12:31 2011 +0000
@@ -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
diff -r 348a1314b359 -r e8aeb7629342 crypto/external/bsd/libsaslc/etc/GSSAPI.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/libsaslc/etc/GSSAPI.conf      Sun Feb 20 02:12:31 2011 +0000
@@ -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
diff -r 348a1314b359 -r e8aeb7629342 crypto/external/bsd/libsaslc/etc/LOGIN.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/libsaslc/etc/LOGIN.conf       Sun Feb 20 02:12:31 2011 +0000
@@ -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
diff -r 348a1314b359 -r e8aeb7629342 crypto/external/bsd/libsaslc/etc/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/libsaslc/etc/Makefile Sun Feb 20 02:12:31 2011 +0000
@@ -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
diff -r 348a1314b359 -r e8aeb7629342 crypto/external/bsd/libsaslc/etc/PLAIN.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/libsaslc/etc/PLAIN.conf       Sun Feb 20 02:12:31 2011 +0000
@@ -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
diff -r 348a1314b359 -r e8aeb7629342 crypto/external/bsd/libsaslc/etc/README
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/libsaslc/etc/README   Sun Feb 20 02:12:31 2011 +0000
@@ -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).
diff -r 348a1314b359 -r e8aeb7629342 crypto/external/bsd/libsaslc/etc/saslc.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/libsaslc/etc/saslc.conf       Sun Feb 20 02:12:31 2011 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: saslc.conf,v 1.1 2011/02/20 02:12:31 christos Exp $
+#
+# key          value
+
+# DEBUG                "yes"           # enable debugging



Home | Main Index | Thread Index | Old Index