rpc.rusersd
Originally, rusersd used version 1 and 2 of rusers (via the rusers_service function) only on UDP.
I made the following changes:
- If started from inetd, use getnetconfig with a while loop to register rusersd on all networks.
- If not started from inetd, use svc_create with the “netpath” parameter to register on all networks.
Then, I added a version 3 handler in the rusers_service function for version 3 of rusers and registered it as described above.
rusers
I used netbuf to store the host address information and added a version 3 function, rusers_reply_3. I employed rpc_broadcastl and clnt_create with the “netpath” parameter.
Comparison between Version 3 and Version 2:
ut_user = ut_name
ut_line = ut_line
ut_host = ut_host
ut_type (New attribute, type of entry)
ut_time = ut_time
ut_idle = ut_idle
Compile
- cd /usr/src/libexec/rpc.ruserd/ && make all install
- cd /usr/src/usr.bin/rusers/ && make all install