Defines | Functions

adminaccess.c File Reference

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)

Detailed Description

eurephiadm command 'useraccess'. Management of user access levels

Author:
David Sommerseth <dazo@users.sourceforge.net>
Date:
2009-03-24

Definition in file adminaccess.c.


Define Documentation

#define MODULE   "eurephia::UserAdmin"

Need to define the active module before including argparser.h

Definition at line 41 of file adminaccess.c.


Function Documentation

int cmd_AdminAccess ( eurephiaCTX ctx,
eurephiaSESSION sess,
eurephiaVALUES cfg,
int  argc,
char **  argv 
)

Main function for the the adminaccess command

Parameters:
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
Returns:
returns 0 on success, otherwise 1.

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

Parameters:
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.

Parameters:
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
Returns:
returns 0 on success, otherwise 1.

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.

Parameters:
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
Returns:
returns 0 on success, otherwise 1.

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

Parameters:
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
Returns:
returns 0 on success, otherwise 1.

Definition at line 143 of file adminaccess.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines