CSC365 Assignment 2

This assignment asks you to create a diagnostic utility for accounts on Moxie. To enable access by both majors and non-majors, Moxie relies on three sources of account information, in "passwd' form, CTS's yp (nis) naming service, CS's yp naming service, and "local" (/etc/passwd) files. These are not always consistent, which sometimes causes problems. The task of this program is to help diagonose this. The main output of this program is to list, in some nice way:

You can access the yp-based directories via java JNDI, but to do so you need to download the nis provider available at "JNDI 1.2.1 & More" from Sun. The sample program NisDemo.java illustrates one way to access them. To run it, you need "nis.jar" in your classpath.

Note that because of yp and network security, you can only run this program on Moxie.

You must implement the collections used here by

Test your program thoroughly before demonstrating and submitting.


Doug Lea