]> arthur.barton.de Git - netatalk.git/commitdiff
Consistently set default UAMs to DHX,DHX2. From HAT.
authorfranklahm <franklahm>
Thu, 30 Apr 2009 09:35:06 +0000 (09:35 +0000)
committerfranklahm <franklahm>
Thu, 30 Apr 2009 09:35:06 +0000 (09:35 +0000)
config/afpd.conf.tmpl
config/netatalk.conf
config/netatalk.conf.cobalt
distrib/debian/logcheck/ignore.d.server
distrib/initscripts/rc.atalk.debian.tmpl
doc/DEVELOPER
doc/FAQ
etc/afpd/afp_options.c
man/man5/afpd.conf.5.tmpl

index 37922ddd3efd2f5497d6c9a35e48e5b200de2ad1..983f7c4aa15a9324f7e439c3c116ddda6ee89131 100644 (file)
@@ -57,7 +57,7 @@
 #     -uampath <path>  Use this path to look for User Authentication Modules.
 #                     (default: :UAMS_PATH:)
 #     -uamlist <a,b,c> Comma-separated list of UAMs. (default:
-#                     uams_guest.so,uams_clrtxt.so,uams_dhx.so) 
+#                     uams_dhx.so,uams_dhx2.so) 
 #
 #                     some commonly available UAMs:
 #                      uams_guest.so: Allow guest logins
 #                                  Allow Diffie-Hellman eXchange
 #                                  (DHX) for authentication.
 #
+#                     uams_dhx2.so: (uams_dhx2_pam.so or uams_dhx2_passwd.so)
+#                                   Allow Diffie-Hellman eXchange 2
+#                                   (DHX2) for authentication.
+#
 #   Password Options:
 #     -[no]savepassword   [Don't] Allow clients to save password locally
 #     -passwdfile <path>  Use this path to store Randnum
 #              "special" -notcp -defaultvol <path> -systemvol <path>
 #
 # default:
-# - -transall -uamlist uams_clrtxt.so,uams_dhx.so -nosavepassword
+# - -transall -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword
index b2760c0ae6a4e0a8da7357efcd62862536d679ed..545a4640952e30f52a10c4d82ea9acde51795be8 100644 (file)
@@ -20,10 +20,11 @@ ATALK_NAME=`echo ${HOSTNAME}|cut -d. -f1`
 ATALK_MAC_CHARSET='MAC_ROMAN'
 ATALK_UNIX_CHARSET='LOCALE'
 
-# specify this if you don't want guest, clrtxt, and dhx
-# available options: uams_guest.so, uams_clrtxt.so, uams_dhx.so, 
+# specify this if you don't want dhx and dhx2
+# available options: uams_guest.so, uams_clrtxt.so, 
+#                    uams_dhx.so, uams_dhx2.so, 
 #                   uams_randnum.so
-#AFPD_UAMLIST="-U uams_clrtxt.so,uams_dhx.so"
+#AFPD_UAMLIST="-U uams_dhx.so,uams_dhx2.so"
 
 # Change this to set the id of the guest user
 AFPD_GUEST=nobody
index cf5ab6ac189e13213eb4bf8647840b1d80a55b90..3be97d4ebf924d5de881c31f3a74625b71429eb0 100644 (file)
@@ -6,10 +6,11 @@ AFPD_MAX_CLIENTS=100
 #ATALK_ZONE=@zone
 ATALK_NAME=`hostname|sed 's/\..*$//'`
 
-# specify this if you don't want guest, clrtxt, and dhx
-# available options: uams_guest.so, uams_clrtxt.so, uams_dhx.so, 
+# specify this if you don't want dhx and dhx2
+# available options: uams_guest.so, uams_clrtxt.so, 
+#                    uams_dhx.so, uams_dhx2.so, 
 #                   uams_randnum.so
-AFPD_UAMLIST="-U uams_clrtxt.so,uams_dhx.so"
+AFPD_UAMLIST="-U uams_dhx.so,uams_dhx2.so"
 
 # Change this to set the id of the guest user
 AFPD_GUEST=nobody
index 3e3ce37e529f3805d48e86fe8ccb34a8a3020255..bf7b562a9c265bf6cf637d886a58f09839dbce64 100644 (file)
@@ -1,4 +1,4 @@
-afpd\[.*\]: ((dhx|cleartext) )?login: [[:alnum:]]+
+afpd\[.*\]: ((dhx|dhx2) )?login: [[:alnum:]]+
 afpd\[.*\]: (server_child\[[[:digit:]]+\] [[:digit:]]+ )?(done|exited 1)
 afpd\[.*\]: [\.[:alnum:]]+ read, [\.[:alnum:]]+ written
 afpd\[.*\]: .*: Broken pipe
@@ -18,6 +18,7 @@ afpd\[.*\]: logout [[:alnum:]]+
 afpd\[.*\]: registering [[:alnum:]]+ \(uid [[:digit:]]+\) on [\.[:digit:]]+ as /.+/net[\.[:digit:]]+node[[:digit:]]+
 afpd\[.*\]: session from [\.:[:digit:]]+ on [\.:[:digit:]]+
 afpd\[.*\]: uams_dhx_pam.c :PAM: PAM (Auth OK!|Success -- Success)
+afpd\[.*\]: uams_dhx2_pam.c :PAM: PAM (Auth OK!|Success -- Success)
 afpd\[.*\]: using codepage directory: /etc/netatalk/nls/maccode\.[\.[:alnum:]-]+
 atalkd\[.*\]: .*: Network is unreachable
 atalkd\[.*\]: zip gnireply from [\.[:digit:]]+ \(.* [[:digit:]]\)
index 8fbcb88092d28225d5d06c2019716c2312661f79..625442f0ef32e74896f9ff2393390c3086a5f7a6 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Author:       Thomas Kaiser <Thomas.Kaiser@phg-online.de>
 #
-# Version:      $Id: rc.atalk.debian.tmpl,v 1.1.4.1 2004-10-27 13:31:04 tkaiser Exp $
+# Version:      $Id: rc.atalk.debian.tmpl,v 1.1.4.2 2009-04-30 09:35:06 franklahm Exp $
 
 set -e
 
@@ -17,7 +17,7 @@ SCRIPTNAME=/etc/init.d/$NAME
 test -x :SBINDIR:/atalkd || exit 0
 
 # Set defaults. Please change these options in :ETCDIR:/netatalk.conf.
-AFPD_UAMLIST="-U uams_dhx.so,uams_clrtxt.so"
+AFPD_UAMLIST="-U uams_dhx.so"
 AFPD_GUEST=nobody
 AFPD_MAX_CLIENTS=50
 ATALK_ZONE=
index 9e308de722ca27b9399ce401b8adda49cd3908b8..82d702d32a4d607e3052346462a2a43f046dcb1b 100644 (file)
@@ -108,7 +108,7 @@ Program: (see the GNU mirrors) /gnu/automake/automake-1.5.tar.gz
 
 Optional
 ========
-5. OpenSSL
+5. OpenSSL and/or Libgcrypt
 The OpenSSL Project is a collaborative effort to develop a robust,
 commercial-grade, full-featured, and Open Source toolkit implementing
 the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS
@@ -118,6 +118,12 @@ This is required to enable DHX login support.
 
 Get everything at http://www.openssl.org/ 
 
+The Libgcrypt is a general purpose cryptographic library based on
+the code from GnuPG.
+This is required to enable DHX2 login support.
+
+Get everything at http://directory.fsf.org/project/libgcrypt/
+
 6. TCP Wrappers 
 Wietse Venema's network logger, also known as TCPD or LOG_TCP. These
 programs log the client host name of incoming telnet, ftp, rsh,
diff --git a/doc/FAQ b/doc/FAQ
index 0c3d80658fb0ff1cd7e1076abf4e7ffca1e0c91c..ea085e6e65679efb4769d2a345650441eb1e0f94 100644 (file)
--- a/doc/FAQ
+++ b/doc/FAQ
@@ -1,5 +1,5 @@
 Netatalk Frequently Asked Questions
-($Id: FAQ,v 1.12 2003-02-24 23:33:14 srittau Exp $)
+($Id: FAQ,v 1.12.8.1 2009-04-30 09:35:06 franklahm Exp $)
 
 -----------------------------------------------------------------------------
 
@@ -616,6 +616,20 @@ A:   Most of the security for Netatalk must be derived from the
 
            http://www.openssl.org/ 
 
+       --with-libgcrypt-dir=[PATH]: specify path to Libgcrypt installation.
+
+         NOTE: This is dependent on the same directory layout as the
+         source distribution of Libgcrypt. That is: include/ and
+        lib/ to be on the same level.
+         This is required to enable DHX2 login support, which
+         will encrypt all of the passwords being sent across the 
+         connection. (Some old Mac clients don't support this, check
+         this FAQ for the section on AppleShare clients.)
+         Check to see if your Unix has Libgcrypt already, or
+         get everything at:
+
+           http://directory.fsf.org/project/libgcrypt/
+
     Be aware that on the volumes that are shared, some of the 
     special folders (.AppleDesktop, "Network Trash Folder") get
     assigned. A lot of these get created as world-writable (because that's
index 878c6b49a104a05721cec370823abd21978fe299..59d0066f879f9335afb25e0328748039e0e4c863 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: afp_options.c,v 1.30.2.2.2.11.2.1 2004-12-07 18:22:38 bfernhomberg Exp $
+ * $Id: afp_options.c,v 1.30.2.2.2.11.2.2 2009-04-30 09:35:06 franklahm Exp $
  *
  * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
@@ -159,7 +159,7 @@ void afp_options_init(struct afp_options *options)
     options->systemvol.name = _PATH_AFPDSYSVOL;
     options->configfile = _PATH_AFPDCONF;
     options->uampath = _PATH_AFPDUAMPATH;
-    options->uamlist = "uams_clrtxt.so,uams_dhx.so";
+    options->uamlist = "uams_dhx.so,uams_dhx2.so";
     options->guest = "nobody";
     options->loginmesg = "";
     options->transports = AFPTRANS_ALL;
index a749d86ae9813cca2f1958dcf2363f74cf407bc3..35d4c308fd5d4b7fb0f927debd5cfa6c091c6ff0 100644 (file)
@@ -79,7 +79,7 @@ file\&.
 .PP
 \-uamlist \fI[uams list]\fR
 .RS 4
-Comma separated list of UAMs\&. (The default is uams_clrtxt\&.so,uams_dhx\&.so)\&.
+Comma separated list of UAMs\&. (The default is uams_dhx\&.so,uams_dhx2\&.so)\&.
 .sp
 The most commonly used UAMs are:
 .PP
@@ -106,6 +106,11 @@ uams_dhx\&.so
 (uams_dhx_pam\&.so or uams_dhx_passwd\&.so) Allow Diffie\-Hellman eXchange (DHX) for authentication\&.
 .RE
 .PP
+uams_dhx2\&.so
+.RS 4
+(uams_dhx2_pam\&.so or uams_dhx2_passwd\&.so) Allow Diffie\-Hellman eXchange 2 (DHX2) for authentication\&.
+.RE
+.PP
 uam_gss\&.so
 .RS 4
 Allow Kerberos V for authentication (optional)
@@ -439,7 +444,7 @@ Specify the number of tickles to send before timing out a connection\&. The defa
 .RS 4
 .\}
 .nf
-\- \-transall \-uamlist uams_clrtxt\&.so,uams_dhx\&.so
+\- \-transall \-uamlist uams_dhx\&.so,uams_dhx2\&.so
 .fi
 .if n \{\
 .RE
@@ -463,7 +468,7 @@ Specify the number of tickles to send before timing out a connection\&. The defa
 .RS 4
 .\}
 .nf
-\- \-transall \-uamlist uams_clrtxt\&.so,uams_dhx\&.so,uams_guest\&.so,uams_gss\&.so \e 
+\- \-transall \-uamlist uams_clrtxt\&.so,uams_dhx\&.so,uams_dhx2\&.so,uams_guest\&.so,uams_gss\&.so \e 
 \-k5service afpserver \-k5keytab /path/to/afpserver\&.keytab \e 
 \-k5realm YOUR\&.REALM \-fqdn your\&.fqdn\&.namel:548
 .fi
@@ -478,7 +483,7 @@ Specify the number of tickles to send before timing out a connection\&. The defa
 .\}
 .nf
 "Guest Server" \-uamlist uams_guest\&.so \-loginmesg "Welcome guest!"
-"User Server" \-uamlist uams_dhx\&.so \-port 12000
+"User Server" \-uamlist uams_dhx2\&.so \-port 12000
 "special" \-notcp \-defaultvol <path> \-systemvol <path>
 .fi
 .if n \{\