> Hello!
>
> I am working on a project which uses RMI. I wrote a server which runs
> very well. I problem I got is that every client is allowed to connect to
> my server and call the remote methode. What I want is, that only hosts
> who are allowed to make a remote call can connect to my server. How can
> I get there. I have really no idea...
>
> Any help is welcome...
>
> Greetings Jan Suchanek
>
> --
> Jan Suchanek, University of Ulm, Germany
> [EMAIL PROTECTED]
>
> NVNC ID VIDES, NVNC NE VIDES
> - Motto of the Unseen University, Ankh-Morpork -
>
and

> On Tue, 12 Jan 1999, Pete wrote:
>
> [...] In any case why would want to restrict
> the service just by machine name (host)? [...]
>


you have to implement a pure java related solution and an elegant way is
to build a _protection_proxy_object_ (server).   this object will
control (test) any attempt to access the real object (server).  how ?
a simple way (and a nice solution): you can build two DB, one with hosts
(domains) which have and another with hosts (domains) which have not
access at your server (like those in linux: hosts.allow, hosts.deny).
through RMI, you have no facility for doing this job.

and Pete, there are many reasons for restrict the access even by machine
name.  ask an good SysAdm.

respect,
sabin ielceanu.

Reply via email to