grst_admin.h

Go to the documentation of this file.
00001 /*
00002    Copyright (c) 2002-3, Andrew McNab and Shiv Kaushal, 
00003    University of Manchester. All rights reserved.
00004 
00005    Redistribution and use in source and binary forms, with or
00006    without modification, are permitted provided that the following
00007    conditions are met:
00008 
00009      o Redistributions of source code must retain the above
00010        copyright notice, this list of conditions and the following
00011        disclaimer. 
00012      o Redistributions in binary form must reproduce the above
00013        copyright notice, this list of conditions and the following
00014        disclaimer in the documentation and/or other materials
00015        provided with the distribution. 
00016 
00017    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
00018    CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
00019    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00020    MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00021    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
00022    BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00023    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
00024    TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00025    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
00026    ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00027    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00028    OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00029    POSSIBILITY OF SUCH DAMAGE.
00030 */
00031 
00032 /*------------------------------------------------------------------*
00033  * This program is part of GridSite: http://www.gridsite.org/       *
00034  *------------------------------------------------------------------*/
00035 
00036 void  GRSThttpError(char *);
00037 void  adminfooter(GRSThttpBody *, char *, char *, char *, char *);
00038 int   GRSTstrCmpShort(char *, char *);
00039 char *makevfilename(char *, size_t, char *);
00040 
00041 /*CGI GACL - Edit interface functions*/
00042 void show_acl(int admin, GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00043 void new_entry_form(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00044 void new_entry(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00045 void del_entry(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00046 void edit_entry_form(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00047 void edit_entry(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00048 void add_cred_form(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00049 void add_cred(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00050 void del_cred(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00051 void del_entry_sure(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00052 void del_cred_sure(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00053 void revert_acl(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00054 
00055 /*Functions producing messages*/
00056 //void error(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file);
00057 void admin_continue(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path, char *file, char *dir_uri, char *admin_file, GRSThttpBody *bp);
00058 
00059 //functions for cgi program
00060 int verifypasscode();
00061 void outputformactionerror(char *dn, GRSTgaclPerm perm, char *help_uri,
00062                       char *dir_path, char *dir_uri, char *admin_file);
00063 char *storeuploadfile(char *boundary, int *bufferused);
00064 void uploadfile(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00065                 char *dir_uri, char *admin_file);
00066 void deletefileaction(char *dn, GRSTgaclPerm perm, char *help_uri,
00067                       char *dir_path, char *file, char *dir_uri,
00068                       char *admin_file);
00069 void deletefileform(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00070                     char *file, char *dir_uri, char *admin_file);
00071 void renameform(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00072             char *file, char *dir_uri, char *admin_file);
00073 void editfileaction(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00074                     char *file, char *dir_uri, char *admin_file);
00075 void create_acl(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00076                     char *file, char *dir_uri, char *admin_file);
00077 void renameaction(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00078                   char *file, char *dir_uri, char *admin_file);
00079 void newdirectory(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00080                     char *file, char *dir_uri, char *admin_file);
00081 void editdnlistaction(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00082                       char *file, char *dir_uri, char *admin_file);
00083 void printfile(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00084                   char *file, char *dir_uri, char *admin_file);
00085 void filehistory(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00086                  char *file, char *dir_uri, char *admin_file);
00087 void ziplist(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00088              char *file, char *dir_uri, char *admin_file);
00089 void unzipfile(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00090                char *file, char *dir_uri, char *admin_file);
00091 void editfileform(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00092                   char *file, char *dir_uri, char *admin_file);
00093 void editdnlistform(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00094                     char *file, char *dir_uri, char *admin_file);
00095 void managedir(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
00096                char *dir_uri, char *admin_file);
00097 int userisgroupadmin(GRSTgaclUser *user, char *adminrole, char *uri);
00098 void managednlists(GRSTgaclUser *user, char *dn, GRSTgaclPerm perm,
00099                    char *help_uri, char *dir_path,
00100                    char *dir_uri, char *admin_file);
00101 
00102 /* XACML */
00103 int GRSTxacmlAclSave(GRSTgaclAcl *acl, char *filename, char* dir_uri);

Generated on 27 Jun 2015 by  doxygen 1.6.1