Sun Feb 20 02:12:31 2011 UTC ()
Add example configuration file from Anon Ymous and a README file from me.


(christos)
diff -r1.1.1.1 -r1.2 src/crypto/external/bsd/libsaslc/Makefile
diff -r0 -r1.1 src/crypto/external/bsd/libsaslc/etc/ANONYMOUS.conf
diff -r0 -r1.1 src/crypto/external/bsd/libsaslc/etc/CRAM-MD5.conf
diff -r0 -r1.1 src/crypto/external/bsd/libsaslc/etc/DIGEST-MD5.conf
diff -r0 -r1.1 src/crypto/external/bsd/libsaslc/etc/EXTERNAL.conf
diff -r0 -r1.1 src/crypto/external/bsd/libsaslc/etc/GSSAPI.conf
diff -r0 -r1.1 src/crypto/external/bsd/libsaslc/etc/LOGIN.conf
diff -r0 -r1.1 src/crypto/external/bsd/libsaslc/etc/Makefile
diff -r0 -r1.1 src/crypto/external/bsd/libsaslc/etc/PLAIN.conf
diff -r0 -r1.1 src/crypto/external/bsd/libsaslc/etc/README
diff -r0 -r1.1 src/crypto/external/bsd/libsaslc/etc/saslc.conf

cvs diff -r1.1.1.1 -r1.2 src/crypto/external/bsd/libsaslc/Makefile (expand / switch to unified diff)

--- src/crypto/external/bsd/libsaslc/Makefile 2010/11/27 21:23:57 1.1.1.1
+++ src/crypto/external/bsd/libsaslc/Makefile 2011/02/20 02:12:31 1.2
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1# $NetBSD: Makefile,v 1.1.1.1 2010/11/27 21:23:57 agc Exp $ 1# $NetBSD: Makefile,v 1.2 2011/02/20 02:12:31 christos Exp $
2 2
3SUBDIR+= lib 3SUBDIR+= etc lib
4 4
5.include <bsd.subdir.mk> 5.include <bsd.subdir.mk>

File Added: src/crypto/external/bsd/libsaslc/etc/Attic/ANONYMOUS.conf
# $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"

File Added: src/crypto/external/bsd/libsaslc/etc/Attic/CRAM-MD5.conf
# $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

File Added: src/crypto/external/bsd/libsaslc/etc/Attic/DIGEST-MD5.conf
# $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

File Added: src/crypto/external/bsd/libsaslc/etc/Attic/EXTERNAL.conf
# $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

File Added: src/crypto/external/bsd/libsaslc/etc/Attic/GSSAPI.conf
# $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

File Added: src/crypto/external/bsd/libsaslc/etc/Attic/LOGIN.conf
# $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

File Added: src/crypto/external/bsd/libsaslc/etc/Makefile
# $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

File Added: src/crypto/external/bsd/libsaslc/etc/Attic/PLAIN.conf
# $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

File Added: src/crypto/external/bsd/libsaslc/etc/README
$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).

File Added: src/crypto/external/bsd/libsaslc/etc/saslc.conf
# $NetBSD: saslc.conf,v 1.1 2011/02/20 02:12:31 christos Exp $
#
# key		value

# DEBUG		"yes"		# enable debugging