[28350] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Comments in k5login file?

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Wed Sep 5 03:05:16 2007

In-Reply-To: <F669BBCB-8A72-41A5-8254-2EA4B999282C@stanford.edu>
Mime-Version: 1.0 (Apple Message framework v752.3)
Message-Id: <C63FA13D-9E62-4B62-A22E-3AC357CC877E@mit.edu>
From: Ken Raeburn <raeburn@mit.edu>
Date: Wed, 5 Sep 2007 03:04:58 -0400
To: "Booker C. Bense" <bbense@stanford.edu>
Cc: kerberos@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

On Aug 28, 2007, at 20:56, Booker C. Bense wrote:
> This cam up in a recent discussion. I can dig in the code, but I
> can't dig in all the code. So is there a safe way to put comments in
> a .k5login file?

There isn't a comment syntax, per se, in the MIT code, but the lines  
of the file are just taken as plain strings to compare against a  
formatted principal name.  So if, for example, you don't have any  
principals in your database starting with "#" ... :)

You could also pick a syntax that's never going to be generated for a  
valid principal name even if other realm gives its principals weird  
names.  For example, starting lines with "@@", since "@" in a  
principal name component or in the realm name would be formatted as  
"\@", so there should only ever be one unquoted "@" in the string  
being looked for in the file.

Ken


________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post