pdimport - PAPI BasicAuth DB import utility

SYNOPSIS

 pdimport [-n] [-s sourcefile] database

DESCRIPTION

This is a simple utility for importing text files into a PAPI BasicAuth database.

ARGUMENTS

pdimport takes the following arguments:

-n
Re-generate the database from scratch.
-s sourcefile
Use the specified file as source. If not specified, standard input will be used.

SOURCE FILE FORMAT

Source files must contain a record per line. Lines starting with '#' are considered comments. Each record must have the format:

        CLASS::ID::PARAMS

Where:

CLASS
The class of resource: user, group, site
ID
The identifier of the resource inside the database
PARAMS
The parameters specific to the resource.

The format and parameters for the three recognized classes are:

  1. For users
        user::ID::PASSWORD::ALT::GROUPLIST::SITELIST
    PASSWORD
    Password for this user (it must be crypt() encoded)
  2. ALT
    Alternate name for this user
    GROUPLIST
    Comma-separated list of group IDs this user belongs to
    SITELIST
    Comma-separated list of site IDs this user has access to
  3. For groups:
        group::ID::ALT::SITELIST
    ALT
    Alternate name for the users in this group
  4. SITELIST
    Comma-separated list of site IDs this group has access to
  5. For sites:
        site::ID::DESC::POA::AUTHURI::TTL::SERVICE::LOCATION::ACCESSURI::ASSERTION
    DESC
    Textual description of the site
  6. POA
    PoA to be accessed
    AUTHURI
    URI for requesting tokens to the Point of Access (relative to the value of LOCATION)
    TTL
    Time to live for the tokens requested to the PoA for this site
    SERVICE
    Service identifier at the PoA for this site
    LOCATION
    Location at the PoA for this site
    ACCESSURI
    
    URI for initially accessing content protected by the PoA at this site (relative
    to the value of B<LOCATION>)
    ASSERTION
    Format of the assertion on user attributes to be sent to the PoA for this site.

SEE ALSO

pdexport

PAPI::BasicAuth