nis-ffi

NIS (YP) library for Ruby using libc’s libnsl through ffi. It is known to work on Ruby 1.8.7, 1.9.3 and JRuby 1.6.

Please note that only a few functions have been implemented, so please fork and add the ones you need. It’s really easy thanks to ffi!

Usage

For installation, see page on rubygems.org.

>> require 'nis-ffi'
>> NIS.yp_match("nis.example.org", "passwd.byname", "username")
=> "username:42pwdhashBEEF:1000:1111:Full Name:/home/username:/bin/zsh"

Contributing to nis-ffi

License

Copyright © 2011-2012 Robin Stocker.

nis-ffi is distributed under the MIT License, see LICENSE.txt for further details.