eurephiadm command 'useraccess'. Management of user access levels More...
#include <stdio.h>#include <string.h>#include <assert.h>#include <libxml/tree.h>#include <libxml/xpath.h>#include <eurephia_nullsafe.h>#include <eurephia_context.h>#include <eurephia_log.h>#include <eurephia_xml.h>#include <eurephia_values_struct.h>#include <eurephiadb_session_struct.h>#include <eurephiadb_mapping.h>#include <eurephiadb_driver.h>#include <certinfo.h>#include "../argparser.h"#include "../xsltparser.h"
Include dependency graph for adminaccess.c:Go to the source code of this file.
Defines | |
| #define | MODULE "eurephia::UserAdmin" |
Functions | |
| void | display_adminaccess_help (int page) |
| void | help_AdminAccess () |
| int | help_AdminAccess2 (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv) |
| int | list_adminaccess (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv) |
| int | grant_revoke (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv) |
| int | cmd_AdminAccess (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv) |
eurephiadm command 'useraccess'. Management of user access levels
Definition in file adminaccess.c.
| #define MODULE "eurephia::UserAdmin" |
Need to define the active module before including argparser.h
Definition at line 41 of file adminaccess.c.
| int cmd_AdminAccess | ( | eurephiaCTX * | ctx, | |
| eurephiaSESSION * | sess, | |||
| eurephiaVALUES * | cfg, | |||
| int | argc, | |||
| char ** | argv | |||
| ) |
Main function for the the adminaccess command
| ctx | eurephiaCTX | |
| sess | eurephiaSESSION of the current logged in user | |
| cfg | eurephiaVALUES struct of the current configuration | |
| argc | argument count for the eurephiadm command | |
| argv | argument table for the eurephiadm command |
Definition at line 366 of file adminaccess.c.
Here is the call graph for this function:| void display_adminaccess_help | ( | int | page | ) |
Help screens for the adminaccess command
| page | which help screen to display |
Definition at line 60 of file adminaccess.c.
Here is the caller graph for this function:| int grant_revoke | ( | eurephiaCTX * | ctx, | |
| eurephiaSESSION * | sess, | |||
| eurephiaVALUES * | cfg, | |||
| int | argc, | |||
| char ** | argv | |||
| ) |
Function for granting and revoking user access levels.
| ctx | eurephiaCTX | |
| sess | eurephiaSESSION of the current logged in user | |
| cfg | eurephiaVALUES struct of the current configuration | |
| argc | argument count for the eurephiadm command | |
| argv | argument table for the eurephiadm command |
Definition at line 243 of file adminaccess.c.
Here is the call graph for this function:| void help_AdminAccess | ( | ) |
Help screen wrapper. Used by cmd_Help()
Definition at line 103 of file adminaccess.c.
Here is the call graph for this function:| int help_AdminAccess2 | ( | eurephiaCTX * | ctx, | |
| eurephiaSESSION * | sess, | |||
| eurephiaVALUES * | cfg, | |||
| int | argc, | |||
| char ** | argv | |||
| ) |
Help screen wrapper for the adminaccess help function.
| ctx | eurephiaCTX | |
| sess | eurephiaSESSION of the current logged in user | |
| cfg | eurephiaVALUES struct of the current configuration | |
| argc | argument count for the eurephiadm command | |
| argv | argument table for the eurephiadm command |
Definition at line 119 of file adminaccess.c.
Here is the call graph for this function:| int list_adminaccess | ( | eurephiaCTX * | ctx, | |
| eurephiaSESSION * | sess, | |||
| eurephiaVALUES * | cfg, | |||
| int | argc, | |||
| char ** | argv | |||
| ) |
adminaccess list mode, lists all users access levels
| ctx | eurephiaCTX | |
| sess | eurephiaSESSION of the current logged in user | |
| cfg | eurephiaVALUES struct of the current configuration | |
| argc | argument count for the eurephiadm command | |
| argv | argument table for the eurephiadm command |
Definition at line 143 of file adminaccess.c.
Here is the call graph for this function:
1.7.1