/[pdpsoft]/trunk/grid-mw-security/ees/plugin_examples/example_plugin/src/example_plugin.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/plugin_examples/example_plugin/src/example_plugin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1582 by aramv, Mon Mar 15 17:17:18 2010 UTC revision 1583 by aramv, Fri Mar 19 17:29:41 2010 UTC
# Line 11  char *cert_file = NULL; Line 11  char *cert_file = NULL;
11  aos_attribute_t* pemstring;  aos_attribute_t* pemstring;
12  aos_context_t*   _context;  aos_context_t*   _context;
13  aos_attribute_t *_uid, *_gid;  aos_attribute_t *_uid, *_gid;
14  char* _uid_str = "1234";  char* _uid_str = "1000";
15  char* _gid_str = "4321";  char* _gid_str = "1000";
16    
17  EES_PL_RC plugin_initialize(int argc, char* argv[]){  EES_PL_RC plugin_initialize(int argc, char* argv[]){
18    char *cert_file_name = "/.globus/usercert.pem";    char *cert_file_name = "/.globus/usercert.pem";
# Line 66  EES_PL_RC plugin_initialize(int argc, ch Line 66  EES_PL_RC plugin_initialize(int argc, ch
66      /*addAttribute(context, pemstring);*/      /*addAttribute(context, pemstring);*/
67    
68    
     /* fill aos */  
     _uid = createAttribute();  
     _gid = createAttribute();  
   
     setAttributeId(_uid, "posix-uid");  
     setAttributeValue(_uid, _uid_str, strlen(_uid_str));  
   
     setAttributeId(_gid, "posix-gid");  
     setAttributeValue(_gid, _uid_str, strlen(_uid_str));  
   
     if((_context = getNextContext(OBLIGATION, NULL)) == NULL){  
       _context = createContext(OBLIGATION);  
       setContextObligationId(_context, "uidgid");  
       addContext(_context);  
     }  
   
     addAttribute(_context, _uid);  
     addAttribute(_context, _gid);  
   
69      return EES_PL_SUCCESS;      return EES_PL_SUCCESS;
70    }    }
71    

Legend:
Removed from v.1582  
changed lines
  Added in v.1583

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28