Examples of rmi clients


Bellow is a very basic example, which is capable of setting comment on any node. It consist of 2 files SetComment.java - main class and SecProvider.java used instead of config file to specify k5 authentication parameters. To run and compile this example you will need only one extra jar file netdb_utils.jar. Note that it will require java version 1.4 or higher. Also note that this example relies on presence of your k5 kerberos tickets prior to running it. This example is known to work on Solaris 2.8 and Linux, but it should not be a problem to compile and run it under Mac or Windows.
To compile run: $ javac -O -deprecation -classpath netdb_utils.jar:. SecProvider.java SetComment.java
To run example: $ java -Djava.security.krb5.conf=/etc/krb5.conf -cp ./:netdb_utils.jar SetComment