Api/auth: Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 4: Line 4:




'''''auth.useradd(username, password, admin)'''''
'''''[[Api/auth.useradd()|auth.useradd()]] -''''' adds a user


adds a user to the rednet network, if admin == "ADM" then we try to make an admin in stead
'''''[[Api/auth.userdel()|auth.userdel()]] -''''' removes a user


'''''[[Api/auth.setpass()|auth.setpass()]] -''''' changes password


'''''auth.userdel(username)'''''
'''''[[Api/auth.checkowner()|auth.checkowner()]] -''''' check ownership data


deletes a user from the rednet network.
'''''[[Api/auth.setowner()|auth.setowner()]] -''''' set ownership data


'''''auth.setpass(username, password)'''''
'''''[[Api/auth.delowner()|auth.delowner()]] -''''' delete ownership data


change a user's password
'''''[[Api/auth.groupadd()|auth.groupadd()]] -''''' creates a group.


'''''auth.setowner(systemname, groupname)'''''
'''''[[Api/auth.groupdel()|auth.groupdel()]] -''''' deletes a group.


sets the current computer as owned by the currently logged in user with name = "systemname" and whitelist group = "groupname" (optional).
'''''[[Api/auth.joingroup()|auth.joingroup()]] -''''' add users to groups


'''''auth.delowner()'''''
'''''[[Api/auth.leavegroup()|auth.leavegroup()]] -''''' removes users from groups


clears the current computer ownership data
'''''[[Api/auth.checkgroup()|auth.checkgroup()]] -''''' checks for group membership
 
'''''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.

Revision as of 23:27, 24 September 2024

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() - adds a user

auth.userdel() - removes a user

auth.setpass() - changes password

auth.checkowner() - check ownership data

auth.setowner() - set ownership data

auth.delowner() - delete ownership data

auth.groupadd() - creates a group.

auth.groupdel() - deletes a group.

auth.joingroup() - add users to groups

auth.leavegroup() - removes users from groups

auth.checkgroup() - checks for group membership