Api/auth

From Minux Wiki
Revision as of 23:06, 24 September 2024 by Shorun (talk | contribs) (Created page with "the auth api is part of the [https://wolfpak.vtchost.com/forum/viewtopic.php?f=17&t=46&sid=2ce2c9aa6ecdc05c0058253d52fe37ce 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)''''' delet...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.