head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 94.03.12.00.59.25; author paul; state Exp; branches; next ; desc @@ 1.1 log @Initial revision @ text @#!/bin/csh -f ###################################################################### # The following tests are by no means exhaustive. They do try to catch # some obvious errors. ###################################################################### # Assumptions: # - the name field must exist, Indexed, Lookup, but not Change # - the alias field must exist, Indexed, Lookup, Change # - the email field must exist, Indexed, Lookup, Change # - Set the following to the address you wish to disallow in # email fields. set badEmail=uiuc.edu # - set the following to the qi you wish to use set qi=/nameserv/src/qi/qi # - set the following to the host and port your test qi is running on set host=ns set port=105 # - set the following to the ph you wish to use set ph=/nameserv/src/ph/ph # # leave these alone set ph="$ph -s $host -p $port" alias e echo e "######################################################################" e qi testing e "######################################################################" e The following should all succeed. $qi <~/.netrc machine ph login testing-one password -gnitset NETRC_END e "######################################################################" e Ph should fail to login here, since your .netrc file is readable $ph <