auth-client - rednet user accounts client side files
auth-client - rednet user accounts client side files
part of the "auth-client" package, these functions allow for easy user and owner management, functions for the servers are a seperate post.
User functions:
/etc/minux-main/sys/nlogin.sysusername password
input: string, username - string, password
output: sets _G.admin, _G.login, _G.masterpass, _G.auth, _G.owner, _G.ownergroup
attempts to log in with the AUTH server using "username" and "password", sets it's values depending on the answer.
owner and ownergroup are also retrieved by calling their respective functions. technically not part of auth-client but included here due to relevance.
/etc/auth-client/adduser.sys username password
input: string, username - string, password
output: requests AUTH server to create a username using the input as credentials, this can only create users and not admins. to make an admin you have to be on the auth server and do it in the terminal there.
/etc/auth-client/deluser.sys username
input: string, username
output: requests deletion of username. must be admin.
/etc/auth-client/setpass.sys username password
input: string, username - string, password
output: requests password change for "username", must be either username or admin
Group Functions:
/etc/auth-client/gadduser.sys groupname username
input: string, groupname - string, username
output: requests "username" be added to "groupname", must be maker or admin.
/etc/auth-client/gdeluser.sys groupname username
input: string, groupname - string, username
output: requests removal of "username" from "groupname", must be maker or admin.
/etc/auth-client/checkgroup.sys groupname username
input: groupname, username
output: checks on the auth if "username" is a member of "groupname", sets _G.isgroupmember to either true or false.
anyone can make this request, no login is required. example: login will also search for a system owner and a group, if "isgroupmember == true" then that user can log in on that system, this in turn is used by other programs that rely on auth for verification, such as "netfolder" or "door".
/etc/auth-client/addgroup.sys groupname
input: string, groupname
output: requests "groupname" to be created on the auth server, the auth server checks to see if "groupname" exists and if not it creates it and marks the username making the request as owner, this user can manipulate this group.
/etc/auth-client/delgroup.sys groupname
input: string, groupname
output: requests auth to delete "groupname". must be either group maker or admin.
Owner functions:
/etc/auth-client/checkowner.sys
input: nothing
output: retrieves and sets the values _G.owner, _G.ownergroup, _G.systemname, used to see if login == owner.
/etc/auth-client/delowner.sys
input: nothing
output: requests auth to delete ownership data of currently used computer, must be owner or admin.
/etc/auth-client/setowner.sys sysname sysgroup
input: sysname, sysgroup
output: requests ownership of this computer, sets the name to "sysname". the system must be unclaimed.
sysgroup is optional, if provided then that computer gets added to "sysgroup", whitelisting all user names in that group name.
User functions:
/etc/minux-main/sys/nlogin.sysusername password
input: string, username - string, password
output: sets _G.admin, _G.login, _G.masterpass, _G.auth, _G.owner, _G.ownergroup
attempts to log in with the AUTH server using "username" and "password", sets it's values depending on the answer.
owner and ownergroup are also retrieved by calling their respective functions. technically not part of auth-client but included here due to relevance.
/etc/auth-client/adduser.sys username password
input: string, username - string, password
output: requests AUTH server to create a username using the input as credentials, this can only create users and not admins. to make an admin you have to be on the auth server and do it in the terminal there.
/etc/auth-client/deluser.sys username
input: string, username
output: requests deletion of username. must be admin.
/etc/auth-client/setpass.sys username password
input: string, username - string, password
output: requests password change for "username", must be either username or admin
Group Functions:
/etc/auth-client/gadduser.sys groupname username
input: string, groupname - string, username
output: requests "username" be added to "groupname", must be maker or admin.
/etc/auth-client/gdeluser.sys groupname username
input: string, groupname - string, username
output: requests removal of "username" from "groupname", must be maker or admin.
/etc/auth-client/checkgroup.sys groupname username
input: groupname, username
output: checks on the auth if "username" is a member of "groupname", sets _G.isgroupmember to either true or false.
anyone can make this request, no login is required. example: login will also search for a system owner and a group, if "isgroupmember == true" then that user can log in on that system, this in turn is used by other programs that rely on auth for verification, such as "netfolder" or "door".
/etc/auth-client/addgroup.sys groupname
input: string, groupname
output: requests "groupname" to be created on the auth server, the auth server checks to see if "groupname" exists and if not it creates it and marks the username making the request as owner, this user can manipulate this group.
/etc/auth-client/delgroup.sys groupname
input: string, groupname
output: requests auth to delete "groupname". must be either group maker or admin.
Owner functions:
/etc/auth-client/checkowner.sys
input: nothing
output: retrieves and sets the values _G.owner, _G.ownergroup, _G.systemname, used to see if login == owner.
/etc/auth-client/delowner.sys
input: nothing
output: requests auth to delete ownership data of currently used computer, must be owner or admin.
/etc/auth-client/setowner.sys sysname sysgroup
input: sysname, sysgroup
output: requests ownership of this computer, sets the name to "sysname". the system must be unclaimed.
sysgroup is optional, if provided then that computer gets added to "sysgroup", whitelisting all user names in that group name.