Name

CatalogUser — specify catalog-specific usernames to use when accessing files with absolute pathnames

SYNOPSIS

catalog_name username

DESCRIPTION

The directive specifies catalogs and the corresponding usernames which will be used in accessing files with absolute pathnames. Actually, the file access itself is still performed under the Interchange server username, but the CatalogUser values are used for a "would-be" kind of check.

This directive is only honored when NoAbsolute is enabled. Then, the situation is as follows:

  • Interchange allows the file to be read or written if the absolute pathname points somewhere in the catalog directory (CATROOT) or TemplateDir.

  • Interchange allows the file to be read if the appropriate catalog's CatalogUser is file owner, or belongs to a user group that can read the file. (The same analogy is used for write access).

DIRECTIVE TYPE AND DEFAULT VALUE

Global directive

EXAMPLES

Example: Defining CatalogUser

CatalogUser  foundation  joe
CatalogUser  reports     jane

NOTES

AVAILABILITY

CatalogUser is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 395

['CatalogUser',     'hash',       ''],

Source: lib/Vend/Config.pm
Line 3188 (context shows lines 3188-3205)

sub parse_hash {
my($item,$settings) = @_;
if (! $settings) {
  return $HashDefaultBlank{$item} ? '' : {};
}

my $c;

if(defined $C) {
  $c = $C->{$item} || {};
}
else {
  no strict 'refs';
  $c = ${"Global::$item"} || {};
}

return hash_string($settings,$c);
}

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!