.\" Copyright (c) 2003-2012 .\" Distributed Systems Software. All rights reserved. .\" See the file LICENSE for redistribution information. .\" $Id: copyright-nr 2564 2012-03-02 00:17:08Z brachman $ '\" t .\" Title: dacsgrid .\" Author: [see the "AUTHOR" section] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 02/19/2019 .\" Manual: DACS Commands Manual .\" Source: DACS 1.4.40 .\" Language: English .\" .TH "DACSGRID" "1" "02/19/2019" "DACS 1.4.40" "DACS Commands Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" dacsgrid \- administer grid\-based one\-time passwords .SH "SYNOPSIS" .HP \w'\fBdacsgrid\fR\ 'u \fBdacsgrid\fR [\fI\m[blue]\fBdacsoptions\fR\m[]\&\s-2\u[1]\d\s+2\fR] [\fB\-challenge\fR] [\fB\-clen\ \fR\fB\fInum\fR\fR] [\fB\-copy\ \fR\fB\fIvfs_uri\fR\fR] .br [\fB\-dec\ \fR\fB\fItoken\fR\fR] [\fB\-delete\fR] [\fB\-disable\fR] [\fB\-enable\fR] [\fB\-enc\ \fR\fB\fIchallenge\fR\fR] [\fB\-expired\fR] .br [\fB\-flat\fR] [\fB\-get\fR] [\fB\-grid\ \fR\fB\fIstr\fR\fR] [\fB\-h\fR | \fB\-help\fR] [\fB\-html\fR] [\fB\-htmlcss\fR] .br [\fB\-inkeys\ \fR\fB\fIitem_type\fR\fR] [\fB\-lifetime\ \fR\fB\fIndays\fR\fR] [\fB\-list\fR] [\fB\-long\fR] [\fB\-ncols\ \fR\fB\fInum\fR\fR] .br [\fB\-nrows\ \fR\fB\fInum\fR\fR] [\fB\-outkeys\ \fR\fB\fIitem_type\fR\fR] [\fB\-pin\fR\ [\fInum\fR]] [\fB\-refresh\fR] [\fB\-rnd\fR] [\fB\-seed\ \fR\fB\fIstr\fR\fR] .br [\fB\-serial\fR] [\fB\-set\fR] [\fB\-size\fR] [\fB\-test\fR] [\fB\-text\fR] [\fB\-validate\ \fR\fB\fIchallenge\fR\fR\fB\ \fR\fB\fIresponse\fR\fR] .br [\fB\-vfs\ \fR\fB\fIvfs_uri\fR\fR] .SH "DESCRIPTION" .PP This program is part of the \fBDACS\fR suite\&. .PP The \fBdacsgrid\fR utility provides software\-based one\-time passwords for \fBDACS\fR authentication using a challenge\-response architecture\&. It administers accounts that are used by the \m[blue]\fBlocal_grid_authenticate\fR\m[]\&\s-2\u[2]\d\s+2 authentication module\&. These accounts are completely separate from the accounts used by \m[blue]\fBlocal_passwd_authenticate\fR\m[]\&\s-2\u[3]\d\s+2 or any other \fBDACS\fR authentication module\&. .PP \fBdacsgrid\fR generates a rectangular grid of cells\&. Each cell consists of a letter, followed by a digit, followed by a letter, yielding 6,760 (26*10*26) possible three\-character\-long strings\&. The contents of each cell are generated from cryptographically\-strong pseudo\-random bytes\&. The maximum grid size is 99 rows by 26 columns, and the minimum grid size is 3 by 3\&. The columns are labelled A through Z and the rows are labelled 1 through 99\&. For recommended grid sizes, it is highly likely that each grid that is generated is unique and therefore that each user will be assigned a different grid\&. .PP Here is a 10x10 grid (the default size): .sp .if n \{\ .RS 4 .\} .nf A B C D E F G H I J 1 x7m p7m k4c q9s q2k d9l s5m r8c y3v g2m 2 o0c t6h q7k l3w p8a q3e b9c l0w z8y c8v 3 v8n n1w r6i i0g e9y q1n p0g g9v x4y c5u 4 z8a o9d l1e e8n u8z h3y p2s b9z c6w d5f 5 x8y o2a y4g d9i s4p c9n c1e m5z o6j m0f 6 p2s x4c a2x p4f w7y b8k e6c q9g q5v s4z 7 b8k r4s r2p z5x v3e s0h h5l z6y e9o g6m 8 r5x m4r a1w f8c f5g l2z q7j r4m w0c x9a 9 p7s r3g i7c p8a t5x c4h h0k k9d i7k r9n 10 w4l v0a p9g i0l v2n b8h v9j s0y r3k v0m Serial: 2497a62a83ad4bc4 Created: Mon Aug 14 10:25:03 2006 PDT .fi .if n \{\ .RE .\} .sp A cell is identified by its column label (a letter) followed by its row label (a number); e\&.g\&., in the example above, cell F6 has the value b8k\&. .PP Each grid is assigned a random (and presumably unique) identification string (labelled "Serial" in the example above); this string is stored on the server with other grid account data\&. It can be displayed by a jurisdiction at login time as a way of authenticating itself to a user, provided it is kept confidential (one approach might be for each of the parties to supply a different half of the identification string to the other)\&. .PP At authentication time, the user is presented with a randomly\-generated challenge that is appropriate for the user\*(Aqs grid\&. The challenge is displayed to the user; e\&.g\&., "A3, C9, B1, F9"\&. The grid\*(Aqs serial number, or a portion of it, might also be displayed\&. The user must consult his grid to locate each of the cells for the given challenge and enter their contents as the password\&. Letters are case insensitive, blanks, tabs, and commas are ignored\&. For the grid and challenge above, the user would enter the following characters as the password: .sp .if n \{\ .RS 4 .\} .nf v8ni7cp7mc4h .fi .if n \{\ .RE .\} .sp Note that a challenge may ask for the same cell more than once\&. .PP A challenge is valid for a configurable length of time after which it can no longer be used for authentication; see \m[blue]\fBAUTH_GRID_CHALLENGE_SECS\fR\m[]\&\s-2\u[4]\d\s+2\&. .PP To judge how long a challenge should be, assume that user\-selected passwords are chosen randomly and uniformly from approximately 100 characters available on a keyboard\&. This is a very generous assumption that is seldom realized in practice\&. A grid challenge of four cells is much stronger than a user\-selected password of six characters (69604 vs\&. 1006) and a grid challenge of five cells is much stronger than a user\-selected password of nine characters (69605 vs\&. 1009)\&. When compared to typical user passwords, however, a grid challenge of three cells is probably about as strong as a user\-chosen password of seven or eight characters\&. .PP Grids are accessed through \fBDACS\*(Aqs\fR virtual filestore using item type auth_grid\&. It is assumed that file permissions on the database of grids are such that all access is limited to the administrator and \fBlocal_grid_authenticate\fR\&. .PP After a run\-time configurable period, a grid expires and will not be accepted for authentication purposes by \fBlocal_grid_authenticate\fR (see \m[blue]\fBAUTH_GRID_LIFETIME_SECS\fR\m[]\&\s-2\u[5]\d\s+2) or \fBdacsgrid\fR (see \fB\-lifetime\fR)\&. The validity period of a grid might be based on several factors, such as how often it is used at a jurisdiction, the number of cells in the grid, the degree of security required, or how difficult or expensive it is to distribute a grid to its user\&. .PP At the time a grid is generated, \fBdacsgrid\fR can associate a randomly chosen PIN with it\&. A PIN, which acts as a secondary password, consists of a sequence of letter\-digit\-letter cells\&. The default PIN length of two cells (6 characters) can be overridden on the command line\&. If a user has been provided with a PIN, it should be entered at the start of the user\*(Aqs response to the challenge, immediately before the contents of the first cell of the challenge are entered\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSecurity\fR .ps -1 .br .PP When used properly, this authentication method can be comparatively secure\&. The main challenge is that it is essential that grids and PINs are distributed to users via a sufficiently secure method; e\&.g\&., by printing them and mailing a hardcopy directly to the user, or by using existing secure channels\&. Each user must understand that a grid is essentially a list of passwords and, accordingly, must be kept secret during its validity period\&. When PINs are used, they must be distributed using a secure channel different from the one used to distribute grids\&. How this distribution is done is left to the \fBDACS\fR administrator\&. .PP Information is encrypted before being written to the grid account file\&. By default, the virtual filestore item type auth_grid_keys identifies the encryption keys to use; the \fB\-inkeys\fR and \fB\-outkeys\fR flags specify alternatives (see \m[blue]\fBdacskey(1)\fR\m[]\&\s-2\u[6]\d\s+2)\&. File permissions must be set so that the encryption keys are readable only by \fBdacsgrid\fR\&. If the encryption keys are lost, the account entries are practically unrecoverable\&. .PP Only the \fBDACS\fR administrator should be able to successfully run this program from the command line\&. Because \fBDACS\fR keys and configuration files, including the file used to store accounts, must be restricted to the administrator, this will normally be the case, but a careful administrator will set file permissions to deny access to all other users\&. .sp .5v .RE .PP This authentication method has the following advantages: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Each time a user authenticates, a different password will be requested (with high probability) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} The password that is required is not known prior to authentication, so a user cannot tell someone else what his password is other than by sharing the entire grid (and the PIN, if any) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Because the password is unlikely to be an easily\-guessed word or phrase, it should be stronger than a user\-selected password .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Should a key sniffer be installed on the user\*(Aqs computer, a sniffed password does not do an attacker any good, since it is highly unlikely to be reused\&. If the corresponding challenge can also be obtained by an attacker, such as through a phishing attack, a portion of the grid will be revealed .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} The length of the challenge (which determines the length of the password) is configurable by the administrator and can be changed at will .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} A user\*(Aqs grid can easily be changed by an administrator as often as practical .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} The method is cheaper than hardware\-based one\-time passwords, provided distribution costs are low .RE .PP This authentication method has the following potential disadvantages: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} The authentication method is inherently interactive in that the password is not known \fIa priori\fR, although this does not guarantee that the user is physically present .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Secure channels are needed to distribute grids and PINs .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} An authentication grid can be easily copied and so it is best used in conjunction with PINs or at least one other authentication method; the challenge of keeping grids secret in all situations is the main reason why the method is not as strong as hardware token\-based methods, which are more difficult to copy and can be protected by a PIN\&. The method is best employed in situations where a grid is not likely to be stolen, easily copied, or even recognized, such as for remote access\&. .RE .PP This authentication method falls somewhere between the "something you know" form and the "something you have" form\&. One might be able to memorize a smaller grid, putting it into the former category, but few are capable of memorizing a large grid, which makes it necessary to have a copy in one\*(Aqs possession\&. Using PINs provides something closer to two\-factor authentication and strengthens the method since a captured grid is not directly usable\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .PP It is possible for different users to be assigned grids of different sizes\&. To prevent generation of a challenge that is impossible to satisfy, when the challenge is requested either the corresponding grid must be of the default size, the dimensions of the grid must be specified, or the username must be specified\&. .sp .5v .RE .SH "OPTIONS" .PP In addition to the standard \m[blue]\fB\fIdacsoptions\fR\fR\m[]\&\s-2\u[1]\d\s+2, the following command line flags are recognized: .PP \fB\-challenge\fR .RS 4 Emit a random challenge\&. If \fIusername\fR was specified, a size\-appropriate challenge will be produced; otherwise, if grid dimensions have been specified, a suitable challenge will be produced; otherwise, the default grid dimensions will be used when producing a challenge\&. .RE .PP \fB\-clen\fR \fInum\fR .RS 4 Set the challenge length to \fInum\fR cells\&. The minimum length is 3 cells and the default length is 4 cells\&. .RE .PP \fB\-copy\fR \fIvfs_uri\fR .RS 4 Copy the input grids to the grids specified by \fIvfs_uri\fR, deleting any existing contents\&. .RE .PP \fB\-dec\fR \fItoken\fR .RS 4 Decrypt a challenge token produced by the \fB\-enc\fR option and print it\&. .RE .PP \fB\-delete\fR .RS 4 Delete the account for \fIusername\fR\&. .RE .PP \fB\-disable\fR .RS 4 Disable logins for \fIusername\fR\&. Implies \fB\-set\fR\&. .RE .PP \fB\-enable\fR .RS 4 Enable logins for \fIusername\fR\&. Implies \fB\-set\fR\&. .RE .PP \fB\-enc\fR \fIchallenge\fR .RS 4 Encrypt a challenge (typically, produced by the \fB\-challenge\fR option) and print it\&. The item type federation_keys is used for this purpose, which means that any jurisdiction in the federation can decrypt the challenge\&. .RE .PP \fB\-expired\fR .RS 4 List only expired grids, relative to the grid lifetime in effect\&. Implies \fB\-list\fR\&. .RE .PP \fB\-flat\fR .RS 4 Print a grid in a concise textual representation that consists of three comma\-separated fields: the serial number, enabled/disabled flag (non\-zero means enabled), the grid (as an ordered sequence of space\-separated rows), a PIN (or zero if there is no PIN), and the creation date (as the number of seconds since the epoch)\&. .RE .PP \fB\-get\fR .RS 4 Retrieve the grid for \fIusername\fR and make it the "current" grid for display purposes\&. .RE .PP \fB\-grid\fR \fIstr\fR .RS 4 Make \fIstr\fR, a grid in the flattened representation, the "current" grid for display purposes or the \fB\-set\fR flag\&. .RE .PP \fB\-h\fR .br \fB\-help\fR .RS 4 Display a help message and exit\&. .RE .PP \fB\-html\fR .RS 4 Emit a grid as a fragment of an HTML document\&. .RE .PP \fB\-htmlcss\fR .RS 4 Emit a grid as a fragment of an HTML document with some CSS\&. .RE .PP \fB\-inkeys \fR\fB\fIitem_type\fR\fR .RS 4 For decrypting account information, use the store identified by \fIitem_type\fR\&. .RE .PP \fB\-lifetime\fR \fIndays\fR .RS 4 Consider the lifetime of grids to be \fIndays\fR days\&. Grids do not have a fixed lifetime; only their date of creation is recorded\&. The default lifetime is 7 days\&. .RE .PP \fB\-list\fR .RS 4 List \fIusername\fR, if given, otherwise all usernames\&. .RE .PP \fB\-long\fR .RS 4 Produce more detailed listing output\&. Implies \fB\-list\fR\&. .RE .PP \fB\-ncols\fR \fInum\fR .RS 4 Set the number of grid columns to \fInum\fR, which is between 3 and 26\&. This is used when generating grids and challenges\&. .RE .PP \fB\-nrows\fR \fInum\fR .RS 4 Set the number of grid rows to \fInum\fR, which is between 3 and 99\&. This is used when generating grids and challenges\&. .RE .PP \fB\-outkeys \fR\fB\fIitem_type\fR\fR .RS 4 For encrypting account information, use the store identified by \fIitem_type\fR\&. .RE .PP \fB\-pin\fR[\fInum\fR] .RS 4 If no other operation is specified, print the PIN, if any, for \fIusername\fR\&. With the \fB\-set\fR flag, generate a new PIN for \fIusername\fR\&. If a non\-negative integer is appended to the flag (e\&.g\&., \fB\-pin0\fR, \fB\-pin4\fR), the PIN length (in cell units) is set to that number with respect to PIN generation\&. The default PIN length is 2 cells\&. Setting the PIN length to zero turns off PIN generation\&. .RE .PP \fB\-refresh\fR .RS 4 If a \fIusername\fR is given, generate a new grid for that user\&. If no \fIusername\fR is given, generate a new grid for each user that already has a grid\&. Any existing grid immediately becomes invalid\&. All of these grids will have the same dimensions\&. If the \fB\-grid\fR flag is given, it is ignored\&. By default, any existing PIN is retained\&. The old grid\*(Aqs enabled/disabled status is retained\&. If the \fB\-pin\fR flag is given, a new PIN will be generated; if \fB\-pin0\fR is given, however, new grids will not have a PIN\&. .RE .PP \fB\-rnd\fR .RS 4 Reserved for future use\&. .RE .PP \fB\-seed\fR \fIstr\fR .RS 4 Reserved for future use\&. .RE .PP \fB\-serial\fR .RS 4 Print the serial number of the current grid\&. .RE .PP \fB\-set\fR .RS 4 Set or replace the grid for \fIusername\fR\&. .RE .PP \fB\-size\fR .RS 4 Display the grid dimensions in terms of the command line flags \fB\-ncols\fR and \fB\-nrows\fR\&. Implies \fB\-list\fR\&. .RE .PP \fB\-test\fR .RS 4 Emit a grid and a challenge, prompt from a response, and verify the response\&. .RE .PP \fB\-text\fR .RS 4 Emit a pretty\-printed grid\&. .RE .PP \fB\-validate\fR \fIchallenge\fR \fIresponse\fR .RS 4 Validate \fIresponse\fR against \fIchallenge\fR\&. .RE .PP \fB\-vfs\fR \fIvfs_uri\fR .RS 4 Instead of using the item type auth_grid to specify which grids to act on, use \fIvfs_uri\fR (see the \m[blue]\fBVFS\fR\m[]\&\s-2\u[7]\d\s+2 configuration directive)\&. .RE .PP The default action is to display the current grid\&. Apart from error messages, which are printed to the standard error, all output goes to the standard output\&. .PP Ordinarily, a \fIdacsoption\fR will be specified to select the jurisdiction on behalf of which grids are being created\&. .SH "EXAMPLES" .PP These examples assume that the jurisdiction name to use is EXAMPLE and its domain is example\&.com\&. .PP To use this authentication method, a \fBDACS\fR administrator would perform the following steps: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} After reviewing the way the method operates, decide how grids will be securely distributed to users, select the grid parameters, decide whether PINs will be used and how they will be securely distributed, and determine a schedule for refreshing grids (and perhaps PINs)\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Decide where the grids will be stored and add a suitable VFS directive to dacs\&.conf, for example: .sp .if n \{\ .RS 4 .\} .nf VFS "[auth_grid]dacs\-kwv\-fs:${Conf::FEDERATIONS_ROOT}/\e ${Conf::FEDERATION_DOMAIN}/${Conf::JURISDICTION_NAME}/grids" .fi .if n \{\ .RE .\} .sp .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Generate keys, decide where they will be stored, and add a suitable VFS directive to dacs\&.conf, for example (your user ID, groupID, and path may vary): .sp .if n \{\ .RS 4 .\} .nf % cd /usr/local/dacs/federations_root/example\&.com/EXAMPLE % dacskey \-uj EXAMPLE \-q auth_grid_keys % chgrp www auth_grid_keys % chmod 0640 auth_grid_keys .fi .if n \{\ .RE .\} .sp .sp .if n \{\ .RS 4 .\} .nf VFS "[auth_grid_keys]dacs\-fs:${Conf::FEDERATIONS_ROOT}/\e ${Conf::FEDERATION_DOMAIN}/${Conf::JURISDICTION_NAME}/auth_grid_keys" .fi .if n \{\ .RE .\} .sp .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Configure a suitable Auth clause in dacs\&.conf, for example: .sp .if n \{\ .RS 4 .\} .nf URL "https://example\&.com/cgi\-bin/dacs/local_grid_authenticate" STYLE "pass" CONTROL "sufficient" .fi .if n \{\ .RE .\} .sp .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} For each user that will be capable of authenticating using this method: a) generate a grid of the necessary dimensions, with or without a PIN (as required); b) obtain the grid in the most suitable format and give it to its owner; and c) if there is a PIN, obtain the PIN and give it to its owner\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Refresh the grid (and, optionally, the PIN) as scheduled and give the user the replacement grid\&. .RE .PP To create and display a grid (but not create an account): .sp .if n \{\ .RS 4 .\} .nf % dacsgrid \-uj EXAMPLE .fi .if n \{\ .RE .\} .PP To generate a grid of default dimensions and assign it to username bobo (replacing any existing grid for that user): .sp .if n \{\ .RS 4 .\} .nf % dacsgrid \-uj EXAMPLE \-set bobo .fi .if n \{\ .RE .\} .PP To generate a 6x6 grid and assign it to username bobo (replacing any existing grid): .sp .if n \{\ .RS 4 .\} .nf % dacsgrid \-uj EXAMPLE \-nrows 6 \-ncols 6 \-set bobo .fi .if n \{\ .RE .\} .PP To retrieve and print a grid (as HTML) for the username bobo: .sp .if n \{\ .RS 4 .\} .nf % dacsgrid \-uj EXAMPLE \-get \-html bobo .fi .if n \{\ .RE .\} .PP To display the PIN for username bobo: .sp .if n \{\ .RS 4 .\} .nf % dacsgrid \-uj EXAMPLE \-pin bobo .fi .if n \{\ .RE .\} .sp The exit status will be non\-zero if this user does not have a grid or if the grid does not have a PIN\&. .PP To copy the current set of grids to the file /secure/grids: .sp .if n \{\ .RS 4 .\} .nf % dacsgrid \-uj EXAMPLE \-copy "dacs\-kwv\-fs:/secure/grids" .fi .if n \{\ .RE .\} .PP To refresh an alternate set of grids in the file /secure/grids: .sp .if n \{\ .RS 4 .\} .nf % dacsgrid \-uj EXAMPLE \-copy "dacs\-kwv\-fs:/secure/grids" % dacsgrid \-uj EXAMPLE \-vfs "dacs\-kwv\-fs:/secure/grids" \-refresh .fi .if n \{\ .RE .\} .PP An example shell script that generates a minimal HTML login page for grid authentication is included in the distribution\&. It assumes that all grids are the default size\&. .PP If different users may have grids of different sizes, or if a jurisdiction wants to display a user\*(Aqs grid\*(Aqs serial number as a form of jurisdictional authentication, then the login procedure must determine the username before it can acquire a challenge or serial number\&. .SH "FILES" .PP \m[blue]\fBdacs_grid\&.css\fR\m[]\&\s-2\u[8]\d\s+2 .SH "DIAGNOSTICS" .PP The program exits 0, or 1 if an error occurred\&. .SH "NOTES" .PP To help thwart automated responses, should some assurance be required that a person rather than software is answering a challenge, the challenge might be presented as a \m[blue]\fBCAPTCHA\fR\m[]\&\s-2\u[9]\d\s+2 or something similar\&. .PP A hardware device could be used to store and access grids, which could boost the method\*(Aqs security and possibly even offer advantages over the PRNG methods used by most commercial tokens\&. .PP Another idea is to supply users with software to run on their personal workstations that would securely store and manage grids and, given a challenge, display the response\&. This may not provide the same level of confidence as hardware token or hard\-copy based methods, however, because it is difficult to be certain that a computer, file, or program hasn\*(Aqt been compromised\&. If sufficiently secure, a password\-protected USB flash memory device might be acceptable for transporting and storing grids\&. .PP The login interface should consider providing a menu or image map to enter the PIN, rather than the keyboard, to defeat keylogging spyware\&. .PP Using this authentication method makes you feel like you are a secret agent\&. Consider printing grids on an edible substrate\&. .SH "BUGS" .PP There should be a clean way of flipping from one set of grids to another at a specified date and time\&. This can currently be done by pre\-generating a set of grids with appropriate file names (e\&.g\&., based on the date the set becomes effective) and configuring the VFS directive for the grids to form the file name based on the current date\&. .PP Users cannot select their own PINs\&. This may be a feature\&. .PP An alternate mode of operation based on strong but repeatable pseudo random numbers described by \m[blue]\fBNIST SP 800\-90\fR\m[]\&\s-2\u[10]\d\s+2 is pending\&. The current implementation does not employ a reproducible sequence of pseudo random numbers; this has advantages and disadvantages\&. .PP The account file should probably be an XML document\&. .SH "SEE ALSO" .PP \m[blue]\fBdacstoken(1)\fR\m[]\&\s-2\u[11]\d\s+2, \m[blue]\fBdacs_authenticate(8)\fR\m[]\&\s-2\u[12]\d\s+2, \m[blue]\fBopie(4)\fR\m[]\&\s-2\u[13]\d\s+2\&. Grid\-based methods are also used by ciphers; e\&.g\&., the \m[blue]\fBVIC cipher\fR\m[]\&\s-2\u[14]\d\s+2\&. .SH "AUTHOR" .PP Distributed Systems Software (\m[blue]\fBwww\&.dss\&.ca\fR\m[]\&\s-2\u[15]\d\s+2) .SH "COPYING" .PP Copyright \(co 2003\-2018 Distributed Systems Software\&. See the \m[blue]\fBLICENSE\fR\m[]\&\s-2\u[16]\d\s+2 file that accompanies the distribution for licensing information\&. .SH "NOTES" .IP " 1." 4 dacsoptions .RS 4 \%http://dacs.dss.ca/man/dacs.1.html#dacsoptions .RE .IP " 2." 4 local_grid_authenticate .RS 4 \%http://dacs.dss.ca/man/dacs_authenticate.8.html#grid .RE .IP " 3." 4 local_passwd_authenticate .RS 4 \%http://dacs.dss.ca/man/dacs_authenticate.8.html#passwd .RE .IP " 4." 4 AUTH_GRID_CHALLENGE_SECS .RS 4 \%http://dacs.dss.ca/man/dacs_authenticate.8.html#AUTH_GRID_CHALLENGE_SECS .RE .IP " 5." 4 AUTH_GRID_LIFETIME_SECS .RS 4 \%http://dacs.dss.ca/man/dacs_authenticate.8.html#AUTH_GRID_LIFETIME_SECS .RE .IP " 6." 4 dacskey(1) .RS 4 \%http://dacs.dss.ca/man/dacskey.1.html .RE .IP " 7." 4 VFS .RS 4 \%http://dacs.dss.ca/man/dacs.conf.5.html#VFS .RE .IP " 8." 4 dacs_grid.css .RS 4 \%http://dacs.dss.ca/man//css/dacs_grid.css .RE .IP " 9." 4 CAPTCHA .RS 4 \%http://en.wikipedia.org/wiki/CAPTCHA .RE .IP "10." 4 NIST SP 800-90 .RS 4 \%http://csrc.nist.gov/publications/nistpubs/800-90/SP800-90revised_March2007.pdf .RE .IP "11." 4 dacstoken(1) .RS 4 \%http://dacs.dss.ca/man/dacstoken.1.html .RE .IP "12." 4 dacs_authenticate(8) .RS 4 \%http://dacs.dss.ca/man/dacs_authenticate.8.html .RE .IP "13." 4 opie(4) .RS 4 \%https://www.freebsd.org/cgi/man.cgi?query=opie&apropos=0&sektion=0&manpath=FreeBSD+10.3-RELEASE&format=html .RE .IP "14." 4 VIC cipher .RS 4 \%http://en.wikipedia.org/wiki/VIC_cipher .RE .IP "15." 4 www.dss.ca .RS 4 \%http://www.dss.ca .RE .IP "16." 4 LICENSE .RS 4 \%http://dacs.dss.ca/man/../misc/LICENSE .RE