* UPD: afpd: umask for home folders is no longer taken from startup umask.
* UPD: afpd: dont and permissions with parent folder when creating new
directories on "upriv" volumes.
+* UPD: afpd: use 'afpserver@fqdn' instead of 'afpserver/fqdn@realm'.
+ Prevents a crash in older GNU GSSAPI libs on eg. CentOS 5.x.
Changes in 2.1.1
================
#
# perm -> default permission value
# OR with the client requested perm
+# Use with options:upriv
# dperm -> default permission value for directories
# OR with the client requested perm
+# Use with options:upriv
# fperm -> default permission value for files
# OR with the client requested perm
+# Use with options:upriv
# umask -> set perm mask
+# Use with options:upriv
# dbpath:path -> store the database stuff in the following path.
# cnidserver:server[:port]
# -> Query this servername or IP address
static void log_principal(gss_name_t server_name)
{
-#ifdef DEBUG1
+#if 0
+ /* FIXME: must call gss_canonicalize_name before gss_export_name */
OM_uint32 major_status = 0, minor_status = 0;
gss_buffer_desc exported_name;
static int get_afpd_principal(void *obj, gss_name_t *server_name)
{
OM_uint32 major_status = 0, minor_status = 0;
- char *realm, *fqdn, *service, *principal, *p;
- size_t realmlen=0, fqdnlen=0, servicelen=0;
+ char *fqdn, *service, *principal, *p;
+ size_t fqdnlen=0, servicelen=0;
size_t principal_length;
gss_buffer_desc s_princ_buffer;
/* get all the required information from afpd */
- if (uam_afpserver_option(obj, UAM_OPTION_KRB5REALM, (void*) &realm, &realmlen) < 0)
- return 1;
- LOG(log_debug, logtype_uams, "get_afpd_principal: REALM: %s", realm);
-
if (uam_afpserver_option(obj, UAM_OPTION_FQDN, (void*) &fqdn, &fqdnlen) < 0)
return 1;
LOG(log_debug, logtype_uams, "get_afpd_principal: fqdn: %s", fqdn);
LOG(log_debug, logtype_uams, "get_afpd_principal: service: %s", service);
/* we need all the info, log error and return if one's missing */
- if (!service || !servicelen || !fqdn || !fqdnlen || !realm || !realmlen) {
+ if (!service || !servicelen || !fqdn || !fqdnlen) {
LOG(log_error, logtype_uams,
"get_afpd_principal: could not retrieve required information from afpd.");
return 1;
}
/* allocate memory to hold the temporary principal string */
- principal_length = servicelen + 1 + fqdnlen + 1 + realmlen + 1;
+ principal_length = servicelen + 1 + fqdnlen + 1;
if ( NULL == (principal = (char*) malloc( principal_length)) ) {
LOG(log_error, logtype_uams,
"get_afpd_principal: out of memory allocating %u bytes",
/*
* Build the principal string.
- * Format: 'service/fqdn@realm'
+ * Format: 'service@fqdn'
*/
strlcpy( principal, service, principal_length);
- strlcat( principal, "/", principal_length);
+ strlcat( principal, "@", principal_length);
/*
* The fqdn we get from afpd may contain a port.
* We need to strip the port from fqdn for principal.
*/
- p = strchr(fqdn, ':');
- if (p)
+ if ((p = strchr(fqdn, ':')))
*p = '\0';
+
strlcat( principal, fqdn, principal_length);
if (p)
*p = ':';
- strlcat( principal, "@", principal_length);
- strlcat( principal, realm, principal_length);
-
/*
* Import our principal into the gssapi internal representation
* stored in server_name.
LOG(log_debug, logtype_uams, "get_afpd_principal: importing principal `%s'", principal);
major_status = gss_import_name( &minor_status,
&s_princ_buffer,
- GSS_C_NO_OID,
+ GSS_C_NT_HOSTBASED_SERVICE,
server_name );
/*
'\" t
.\" Title: achfile
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 26 Feb 1998
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: ad
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 01 Sep 2009
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: aecho
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 17 Dec 1991
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: afile
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 26 Feb 1998
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: afppasswd
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 22 Aug 2004
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: apple_cp
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 22 Aug 2004
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: apple_dump
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 31 Mar 2010
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: apple_mv
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 22 Aug 2004
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: apple_rm
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 22 Aug 2004
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: asip-status.pl
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 22 Aug 2004
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: dbd
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 23 Dec 2009
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: getzones
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 17 Dec 1991
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: megatron
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 8 Jan 1992
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: nbp
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 24 June 2004
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: netatalk-config
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 09 June 2001
.\" Manual: The Netatalk Project
.\" Source: Netatalk 2.1
'\" t
.\" Title: pap
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 6 May 2002
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: psorder
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 17 Dec 1991
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: uniconv
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 24 Jun 2004
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: atalk_aton
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 12 Jan 1994
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: nbp_name
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 12 Jan 1994
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: atalk
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 17 Dec 1991
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: AppleVolumes.default
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 22 Apr 2010
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
.PP
umask:\fI[mode]\fR
.RS 4
-set perm mask\&.
+set perm mask\&. Use with
+\fBoptions:upriv\fR\&.
.RE
.PP
preexec:\fI[command]\fR
'\" t
.\" Title: afp_ldap.conf
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 28 November 2009
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: afp_signature.conf
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 29 March 2010
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: afpd.conf
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 23 December 2009
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: atalkd.conf
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 22 September 2000
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: netatalk.conf
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 9 Jun 2009
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: papd.conf
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 06 Sep 2004
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: afp_acls
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 02 Feb 2009
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: afpd
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 21 Apr 2010
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: atalkd
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 06 Sep 2004
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: cnid_dbd
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 21 Mar 2009
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: cnid_metad
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 23 Dec 2009
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
daemon processes started\&.
.RE
.PP
-\fB\-u\fR\fI group\fR
+\fB\-g\fR\fI group\fR
.RS 4
Switch to the groupid of
\fIgroup\fR
'\" t
.\" Title: papd
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 06 September 2004
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
When printing clients run MacOS 10\&.2 or above, take care that PPDs do not make use of
\fB*cupsFilter:\fR
comments unless the appropriate filters are installed at the client\'s side, too (remember: Starting with 10\&.2 Apple chose to integrate CUPS into MacOS X)\&. For in\-depth information on how CUPS uses PPDs see chapter 3\&.4 in
-\m[blue]\fB http://tinyurl\&.com/zbxn\fR\m[]\&\s-2\u[2]\d\s+2)\&.
+\m[blue]\fBhttp://tinyurl\&.com/zbxn\fR\m[]\&\s-2\u[2]\d\s+2)\&.
.SH "SEE ALSO"
.PP
\fBlpr\fR(1),\fBlprm\fR(1),\fBprintcap\fR(5),\fBlpc\fR(8),\fBlpd\fR(8),
'\" t
.\" Title: papstatus
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 17 Dec 1991
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: psf
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 17 Dec 1991
.\" Manual: Netatalk 2.1
.\" Source: Netatalk 2.1
'\" t
.\" Title: timelord
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 27 Jun 2001
.\" Manual: The Netatalk Project
.\" Source: Netatalk 2.1