Api/auth
the auth api is part of the auth-client package and is used to manage auth users, groups and system ownership.
most of these require the user to be an admin to use.
auth.useradd(username, password, admin)
adds a user to the rednet network, if admin == "ADM" then we try to make an admin in stead
auth.userdel(username)
deletes a user from the rednet network.
auth.setpass(username, password)
change a user's password
auth.setowner(systemname, groupname)
sets the current computer as owned by the currently logged in user with name = "systemname" and whitelist group = "groupname" (optional).
auth.delowner()
clears the current computer ownership data
auth.groupadd(groupname)
creates "groupname" as a group.
auth.groupdel(groupname)
deletes "groupname" as a group.
auth.joingroup(groupname, username)
makes "username" a member of "groupname"
auth.leavegroup(groupname, username)
makes "username" leave "groupname"
auth.checkgroup(groupname,username)
checks if "username" is a member of "groupname", sets "isgroupmember" to true or false
auth.checkowner()
checks the owner of the current computer, used for login purpuses.