The attached patch and file enable NIS authentication for tikiwiki.
There is an additional selection added to the Admin Login page to
provide a selection for Pear::Auth with NIS. The patch to
userslib.php links in the appropriate authentication method, and
allows for a user to authenticate by NIS only. The NIS methods will
use the default domain for the server.