8 authdial(char *netroot, char *dom)
15 /* look for one relative to my machine */
16 return dial(netmkaddr("$auth", nil, "ticket"), nil, nil, nil);
18 /* look up an auth server in an authentication domain */
19 p = csgetvalue(netroot, "authdom", dom, "auth", &t);
21 /* if that didn't work, just try the IP domain */
23 p = csgetvalue(netroot, "dom", dom, "auth", &t);
26 * if that didn't work, try p9auth.$dom. this is very helpful if
27 * you can't edit /lib/ndb.
30 p = smprint("p9auth.%s", dom);
31 t = ndbnew("auth", p);
36 * allow multiple auth= attributes for backup auth servers,
37 * try each one in order.
40 for(nt = t; nt != nil; nt = nt->entry) {
41 if(strcmp(nt->attr, "auth") == 0) {
42 rv = dial(netmkaddr(nt->val, nil, "ticket"), nil, nil, nil);