authenticate_pgp1
Perform lprng authentication using pgp
Usage
authenticate_pgp [{-(S | C | F)}]
[-nuser]
[-Pprinter]
[-Rserveruser]
[-Ttempfile]
[-DVE]
Overview
The authenticate_pgp program performs the authentication transfer required by LPRng. This is described in detail in lpd(8).
The -S (Client) flag indicates that it is to authenticate a transfer to the server. It does this by generating a random string, signing and encrypting this using the serveruser's private key and the user's public key, and sending this to the client authenticator. The -C (Client) flag indicates that it is to authenticate a user using PGP. It gets the signed and encrypted message from the server, and either uses the PGP key supplied in the PGPPASS environment variable or asks the user for the key. The key can also be read from the ~user/.pgp/clientkey file. The message is decrypted by the client, and the authentication string is prepended to the message to be sent to the server. This is then signed with the user's private key and encrypted with the server's public key. The encrypted message is sent back to the server. The server authenticator then decrypts the message, checks to see if the key is identical to the one sent, and then uses the transferred message.
The -F (forwarding) flag is used when the authenticator is performing server to server authentication. The process is the same as server to server authentication.
To aid in sending and receiving messages, the readfilecount and removeoneline programs are used to transfer the encrytped file over the data connection and to remove the prefixed authentication string respectively.
Options
-(S|C|F)-
Operate as a server, client, or forwarding authenticator respectively.
-
-P printer -
The name of the printer.
-
-u user -
The name of the user. This is used to find the users public and private key.
-
-R serveruser -
The name of the server user. This is used to find the servers public and private key.
-
-T tempfile -
The file to be transferred or a temporary location for the transferred information.
-
-D -
Enable debugging.
-
-V -
Set up a default private key for the user (debugging mode).
-
-E -
Magic test flag enabling special test code.
Releases
3 releases since Debian 1.3 (Bo); the text changed 2 times.