9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: [9fans] auth trouble to sources
Date: Wed, 29 May 2002 14:33:10 -0400	[thread overview]
Message-ID: <e8251442829b15b9ebfd814a31a99179@plan9.bell-labs.com> (raw)

if you're having trouble authenticating,
this will help you figure out whether
the problem is ndb or your password.
if this program successfully connects,
then it's probably that your password
has been mangled/forgotten/etc.

g% cat x.c
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <ndb.h>

void
main(void)
{
	int fd;
	char *addr;
	char server[Ndbvlen];
	Ndbtuple *nt;

	nt = csgetval("/net", "authdom", "outside.plan9.bell-labs.com", "auth", server);
	if(nt == nil){
		print("csgetval failed: %r\n");
		exits("csgetval");
	}
	print("auth %s\n", server);
	addr = netmkaddr(server, nil, "ticket");
	print("addr %s\n", addr);
	fd = dial(addr, 0, 0, 0);
	if(fd >= 0)
		print("connected\n");
	else
		print("dial failed: %r\n");
}
g% 8c x.c
g% 8l x.8
g% 8.out
auth sources.cs.bell-labs.com
addr net!sources.cs.bell-labs.com!ticket
connected
g%



                 reply	other threads:[~2002-05-29 18:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e8251442829b15b9ebfd814a31a99179@plan9.bell-labs.com \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).