All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Cameron <james.cameron@hp.com>
To: linux-ppp@vger.kernel.org
Subject: Re: Hot to perform a null login?
Date: Wed, 01 Feb 2006 23:03:14 +0000	[thread overview]
Message-ID: <20060201230314.GA4191@hp.com> (raw)
In-Reply-To: <1138770376.8869.17.camel@localhost.localdomain>

G'day Matthew,

I've checked the code, and a null username given to the user option is
overridden by the value given to the name option.  And the name option
defaults in the same way to the hostname or is forced to it if the
usehostname option is used.  

This is in auth_check_options(), line 1214 of auth.c CVS revision 1.108.

    /* Default our_name to hostname, and user to our_name */
    if (our_name[0] = 0 || usehostname)
	strlcpy(our_name, hostname, sizeof(our_name));
    if (user[0] = 0)
	strlcpy(user, our_name, sizeof(user));

Therefore it is not possible with the current code to offer a null
string for PAP authentication, since this matches the tests above.  To
achieve it, you will have to change the code and recompile.  I suggest
commenting out the last two lines I've quoted above, and then use

	user ''

as Bill initially suggested.

-- 
James Cameron
http://ftp.hp.com.au/sigs/jc/

  parent reply	other threads:[~2006-02-01 23:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-01  5:06 Hot to perform a null login? Matthew Percival
2006-02-01  5:16 ` Bill Unruh
2006-02-01  5:34 ` Matthew Percival
2006-02-01  6:00 ` Bill Unruh
2006-02-01  6:12 ` James Cameron
2006-02-01 11:40 ` James Carlson
2006-02-01 11:45 ` James Cameron
2006-02-01 22:09 ` Matthew Percival
2006-02-01 22:26 ` Bill Unruh
2006-02-01 22:29 ` Bill Unruh
2006-02-01 22:40 ` James Carlson
2006-02-01 23:03 ` Matthew Percival
2006-02-01 23:03 ` James Cameron [this message]
2006-02-01 23:13 ` James Cameron
2006-02-02  3:33 ` Matthew Percival
2006-02-02  6:38 ` Pieter Loubser

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=20060201230314.GA4191@hp.com \
    --to=james.cameron@hp.com \
    --cc=linux-ppp@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.