Commit c33ce0cc authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Add simple script for showing of nis connection.

parent f60fc811
#!/usr/bin/env python2
import nis
username = "hugo"
uname, password, uid, gid, full_name, home, shell = nis.cat("passwd.byname").get(username).split(":")
# get uid from cas.username
# check that agains the DB
print uid, uname
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment