From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c86f4750596f4e7,start X-Google-Attributes: gidfee84,public X-Google-Thread: f66ab,c86f4750596f4e7,start X-Google-Attributes: gidf66ab,public X-Google-Thread: f9256,c86f4750596f4e7,start X-Google-Attributes: gidf9256,public X-Google-ArrivalTime: 1994-11-12 18:36:01 PST Newsgroups: comp.sys.next.programmer,comp.unix.osf.osf1,comp.os.mach Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!Germany.EU.net!netmbx.de!tmpmbx!ilink.de!usenet From: eike@ilink.de (Eike Dierks) Subject: Access control using UNIX authentification via MACH IPC Message-ID: Keywords: access control, mach ipc, authentification, netgroup Sender: usenet@ilink.de Nntp-Posting-Host: edgun Reply-To: eike@ilink.de (Eike Dierks) Organization: i.link Kommunikationssysteme GmbH, Berlin Date: Sat, 12 Nov 1994 23:32:19 GMT Xref: nntp.gmd.de comp.sys.next.programmer:18436 comp.unix.osf.osf1:6456 comp.os.mach:3292 Dear MACH community, I want to build a MACH based server that does access control based on the UNIX user authentication scheme. How can this be done ? I want to configure who has access to a service per host and per user. The most obvious way would be to use netgroups as they can describe arbitrary (host,user) pairs. There seem to be two ways to achieve this: a) advertising a public port (i.e. through netname server) and then require the client to authenticate by means of the content of a message b) making the port accessible only to trusted users. This would not use the netname server but some handwritten name server that first checks the identity and then passes port rights to valid clients only. It seems to me that a) would be the way to go. But how can I test wether the originator of a message belongs to a netgroup ? Clearly this information can not be deducted from looking at the originating port as MACH IPC is transparent. I think it would require the client to include some information in the message that can then be used by the server to check wether the user really is who he pretends to be. Any hints ? Please drop me a email copy as it is very hard to scan the sheer volume of this newsgroups. Thanks, Eike