SunAuthUnix.mesa
Demers, September 17, 1987 11:11:00 am PDT
DIRECTORY
Rope
USING
[
ROPE
],
SunRPCAuth
USING
[Conversation]
;
SunAuthUnix
:
CEDAR
DEFINITIONS
~ {
Default Domain
SetDomain
:
PROC
[new: Rope.
ROPE
]
RETURNS
[old: Rope.
ROPE
];
Client / Server Utilities
FixNameForUnix
:
PROC
[name: Rope.
ROPE
]
RETURNS
[fixedName: Rope.
ROPE
];
Convert to lower case, remove Grapevine registry, truncate to <= 8 characters.
Server Utilities
Groups:
TYPE
~
REF
GroupsObject;
GroupsObject:
TYPE
~
RECORD
[
group:
SEQUENCE
length:
CARDINAL
OF
CARD
];
ExtractConversationDetails
:
PROC
[c: SunRPCAuth.Conversation]
RETURNS
[machineName: Rope.
ROPE
, uid, gid:
CARD
, groups: Groups];
Extract user id and groups from Unix-flavor conversation.
! SunRPCAuth.Error[$badCredentials]
}...