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:
- Local accounts on Moxie that are neither in CS nor CTS.
- Accounts on CS that are not also local for Moxie.
- Mismatches in uid or gecos fields of local vs those on CS or CTS
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
- Creating an Entry class with the appropriate fields
- Implementing an order-8 B* Tree supporting insertion,
deletion, search, and traversal of Entries.
Test your program thoroughly before demonstrating and submitting.
Doug Lea