9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Authentication debugging help?
@ 2004-01-20 18:40 David Eckhardt
  2004-01-21  8:32 ` Fco.J.Ballesteros
  2004-01-21 23:56 ` matt
  0 siblings, 2 replies; 10+ messages in thread
From: David Eckhardt @ 2004-01-20 18:40 UTC (permalink / raw)
  To: 9fans

I'm trying to set up a machine to be a fossil/venti file
server plus auth server (I'll tackle a CPU server later).

What I have working so far:

1. Followed standard installation (9pcf kernel, fossil)
   (This includes finding, I believe, an installer bug,
   which I will be happy to document once I have this
   thing working).

2. Branded fossil & venti information onto their respective
   partitions, took an archival snapshot..that all seems to
   work ok.

3. Built 9pccpuf kernel, edited /rc/bin/cpurc.  This
   appears to boot and work ok.

BUT when I try to boot a second machine from the "boot floppy"
the installer made for me (9pcdisk kernel?), the client panics.
I apologize for having left my notes (including the exact panic
message) home with the machine, but it dies very early and I
wasn't able to match the complaint to anything obvious in the
sources.

So, some questions:

1. The initial chunk of the "Data Base" section of authsrv(6),
discussing /lib/ndb/auth, is confusing me.  The text and
comments seem to suggest that "hostid=bootes" refers to a
machine named "bootes" (though I don't see "hostid" used
in ndb(6) to designate machines, only "dom" and "sys").
In fact, it explicitly says "client host's ID".

But in the "Network Database" section of the Wiki's
"Configuring a standalone CPU_server" page, it says

  "Uncomment the two lines indicated in /lib/ndb/auth
  to say that the cpu server owner is allowed to become
  any other user (given the appropriate credentials)".

This sure sounds like "bootes" is a USER, not a "client
host's ID".  And at the top of that document it says

  "You can decide what name to give your cpu server owner.
  This is the user that all the cpu servers run as. We'll
  name the user 'bootes'; it is recommended that you also
  choose 'bootes' as it will appear in the instructions
  frequently."

Again, here it seems inexorable that "bootes" is a user.
Which way is up?  More to the point, what belongs in my
/lib/ndb/auth file?

2. Can somebody give me some step-by-step suggestions of
things to verify?  Things like "On your fs/auth server you
should have a foo process, which you should see in ps, which
should be offering /mnt/xxx and /srv/xxx and there should be
a /rc/bin/service.auth/ilYYY file and if you "telnet srvname YYY"
the greeting should be "zzz".

3. Likewise, I would appreciate any detailed suggestions about
how to simulate the terminal-booting-from-server process from
an outside machine, things like "boot the installer CD-ROM on
the client, login in as "none", set auth=srvname, run auth/keyfs,
then auth/factotum, ..."

4. From grubbing around on the server, it's not clear that
the secstore daemon is running.  At least I don't see
something in /rc/bin/service.auth or /rc/bin/cpurc which
would start it...or am I overlooking something obvious?
Can fossil on the server authenticate clients without
its factotum (running as bootes) having access to its
key(s)?

Dave Eckhardt


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [9fans] Authentication debugging help?
@ 2004-01-20 19:09 David Presotto
  0 siblings, 0 replies; 10+ messages in thread
From: David Presotto @ 2004-01-20 19:09 UTC (permalink / raw)
  To: davide+p9, 9fans

> 1. The initial chunk of the "Data Base" section of authsrv(6),
> discussing /lib/ndb/auth, is confusing me.  The text and
> comments seem to suggest that "hostid=bootes" refers to a
> machine named "bootes" (though I don't see "hostid" used
> in ndb(6) to designate machines, only "dom" and "sys").
> In fact, it explicitly says "client host's ID".

Host id is the id of the 'owner' or the host, i.e., the
name used when you booted the system.  If it's a cpu server,
you probably got asked:

authid?

That's the host id we're talking about.  Bootes is just an
example of one.

> 2. Can somebody give me some step-by-step suggestions of
> things to verify?  Things like "On your fs/auth server you
> should have a foo process, which you should see in ps, which
> should be offering /mnt/xxx and /srv/xxx and there should be
> a /rc/bin/service.auth/ilYYY file and if you "telnet srvname YYY"
> the greeting should be "zzz".

'netstat -n' should show something listening on tcp ports:

	567 - that's the auth service
	564 - that's the fossil server

'ps' should show a keyfs process running.

'ndb/query authdom <the name of your authentication domain>'
should return a tuple that includes, among other things,
the pair 'auth=<name (or address) of your auth server>'.

'ndb/csquery' followed by the query 'net!$auth!ticket'
should return to you the response:

	/net/tcp/clone <ip address of the auth server>!567

What is serving DHCP for this network?  The newly booted system
will first do a DHCP request to find out it's address, the address
of the dns servers, the address of auth server, and the address
of the file server.  If it fails to get any of these, it will
prompt for them on the console.  Is it getting that far?


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <797f65da44cdbd78a92e7fd405e73b49@plan9.bell-labs.com>]
* Re: [9fans] Authentication debugging help?
@ 2004-01-22 20:59 davide+p9
  2004-01-22 21:05 ` David Presotto
  0 siblings, 1 reply; 10+ messages in thread
From: davide+p9 @ 2004-01-22 20:59 UTC (permalink / raw)
  To: David Presotto, 9fans; +Cc: davide+p9

Got it.  The problem is that I copied these
listen directives from "Setting up Fossil"
on the Wiki:

  listen tcp!*!9fs
  listen il!*!9fs

They *looked* like they were working, since
connecting to the console and typing "listen"
displayed:

  tcp!*!9fs /net/tcp/4
  il!*!9fs /net/il/0

but that was a big lie:  /net/tcp/4/local
showed ::!9 and netstat confirmed that
bootes was listening on the discard port.

I assume this because the Wiki directions
assume you are booting from a kfs so
ndb/cs and friends are already running,
but my fossil was started by /boot?

Dave Eckhardt


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-01-29 16:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-20 18:40 [9fans] Authentication debugging help? David Eckhardt
2004-01-21  8:32 ` Fco.J.Ballesteros
2004-01-21 23:56 ` matt
2004-01-20 19:09 David Presotto
     [not found] <797f65da44cdbd78a92e7fd405e73b49@plan9.bell-labs.com>
2004-01-20 19:26 ` davide+p9
2004-01-21  1:44   ` David Presotto
2004-01-21  1:49     ` David Presotto
2004-01-22 20:59 davide+p9
2004-01-22 21:05 ` David Presotto
2004-01-29 16:56   ` davide+p9

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).