NAME
|
authdial, passtokey, nvcsum, readnvram, convT2M, convM2T, convTR2M,
convM2TR, convA2M, convM2A, convPR2M, convM2PR, _asgetticket,
_asrdresp – routines for communicating with authentication servers |
SYNOPSIS
|
#include <u.h> #include <libc.h> #include <authsrv.h> |
DESCRIPTION
|
Authdial dials an authentication server over the network rooted
at net, default /net. The authentication domain, ad, specifies
which server to call. If ad is non–nil, the connection server cs
(see ndb(8)) is queried for an entry which contains authdom=ad
or dom=ad, the former having precedence, and which also
contains an auth attribute. If it finds neither, it tries p9auth.ad
in DNS as the authentication server. The string dialed is then
netroot!server!ticket where server is the value of the auth attribute.
If no entry is found, the error string is set to ``no authentication
server found'' and –1 is returned. If authdom is nil, the
string netroot!$auth!ticket is used to make the call.
{
then for each controller X listed in #S/sdctl and each drive number n less than 0x10 – the partition #S/sdXn/nvram – a file called plan9.nvr in the partition #S/sdXn/9fat – a file called plan9.nvr on a DOS floppy in drive 0 – a file called plan9.nvr on a DOS floppy in drive 1 |
SOURCE
|
/sys/src/libauthsrv |
SEE ALSO
|
passwd(1), cons(3), dial(2), authsrv(6), |
DIAGNOSTICS
|
These routines set errstr. Integer–valued functions return –1 on
error. |