[OpenAFS-devel] pts examine

Derek Atkins warlord@MIT.EDU
03 Dec 2002 11:20:32 -0500


If you ignore the @XXX then how are you supposed to look up cross-cell
pts ids?  For example:

--> cat /usr/vice/etc/ThisCell=20
athena.mit.edu
--> pts examine shadow@andrew.cmu.edu
Name: shadow@andrew.cmu.edu, id: 295680, owner: system:administrators, crea=
tor: system:administrators,
  membership: 5, flags: S----, group quota: 0.

I suppose we could:
        1) downcase the @(realm>
        2) if <realm> =3D=3D cell (which is either on the command-line or i=
mplied)
           then drop it from the string.

But that seems an awful lot of work to me.  However, feel free to send in
a patch ;)

-derek

Martin MOKREJ=A9 <mmokrejs@natur.cuni.cz> writes:

> Hi,
>   I've a question if pts examine would be clever enough to ignore the
> @REALM being specified in a username. I mean this:
>=20
> # pts help examine
> pts examine: examine an entry
> aliases: check
> Usage: pts examine -nameorid <user or group name or id>+ [-cell <cell nam=
e>] [-noauth] [-force] [-help]
> Where: -noauth  run unauthenticated
>        -force   Continue oper despite reasonable errors
> # pts examine mokrejs/admin@GSF.DE -noauth
> pts: User or group doesn't exist so couldn't look up id for mokrejs/admin=
@gsf.de
> # pts examine -nameorid 3 -force -noauth
> Name: mokrejs/admin, id: 3, owner: system:administrators, creator: anonym=
ous,
>   membership: 1, flags: S----, group quota: unlimited.
> # pts examine -nameorid 4 -force -noauth
> Name: mokrejs, id: 4, owner: system:administrators, creator: anonymous,
>   membership: 0, flags: S----, group quota: 20.
> # pts examine mokrejs/admin -noauth
> Name: mokrejs/admin, id: 3, owner: system:administrators, creator: anonym=
ous,
>   membership: 1, flags: S----, group quota: unlimited.
> #
>=20
> I think mokrejs/admin@GSF.DE might not be converted to mokrejs/admin@gsf.=
de at least,
> at the best the "@GSF.DE" could be removed from the string, if it's really
> causing lookup failure. Any opinions?
>=20
> Tested with 1.2.8-rc2 on linux 2.4.19/i386
> --=20
> Martin Mokrejs <mmokrejs@natur.cuni.cz>, <m.mokrejs@gsf.de>
> PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
> MIPS / Institute for Bioinformatics <http://mips.gsf.de>
> GSF - National Research Center for Environment and Health
> Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
> tel.: +49-89-3187 3683 , fax:=A0+49-89-3187 3585
>=20
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel

--=20
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available