Name

add_auth — add a new authentication token to the access control list

Synopsis

use Wacs;
add_auth(...); 
 

Parameters

parameterdescription
ipaddrThe IP Address of the host being authorised.
useraccount name of the user being registered
typetype of registration being undertaken - currently lease
roleleval of access granted currently: viewer, power or admin
datedate at which this lease should expire
prefexclpreference exclusions: the scatflag values not to be shown by default
usedirectwhether to use the usedirect function if supported by the server - can be yes or no
imagepagewhether to create links to framed page or raw ones - should be frame or raw
scalingwhen to use image scaling - can be none, slide, slide+page and all
sizesize of scaled images when applicable in the format 1024x768
qualityjpeg quality setting used when scaling images
delaydesired delay before next image in slideshow

Summary

add_auth adds a new authentication token to the access control list, ie the leases file. This is the action taken by the wacslogin command after it has authenticated the user. It can also be used to update the user preferences - it is used by wacslogin, wacspref and wacslogout.

Availability

add_auth is currently available only in perl. A php implementation is possible in a future release if required.