Project

General

Profile

User story #1246

Updated by François ARMAND over 13 years ago

A diagram is often worth a thousand words... Considering I want to configure sudo: 
 !pt.png! 

 I would like to be able to have multi-valued variables in multi-valued sections. In this example, that would be for each command, allow several users, and on a higher level, allow several commands. 

 Technical precisions: we want to have a Policy.xml like: 

 <pre> 
 <SECTIONS> 
   <SECTION name="SX" component="true" /> 
   <SECTION name="SA" multivalued="true"> 
     <INPUT name="iA" /> 
     <INPUT name="iB" /> 
     <SECTION name="SB" multivalued="true"> 
       <input name="iC" /> 
     </SECTION> 
   </SECTION> 
   <SECTION name="SC"> 
     <input name="iC" /> 
   </SECTION> 
 </SECTIONS> 
 </pre> 

 And be able to use following values (with format: "#section name : iteration" and "variable name : value" 

 * PI-CR-SERIAL-1: 
 ** #SA : SA1 
 *** iA : iA1 
 *** iB : iB1 
 *** #SB : SB1 
 **** iC : iC1 
 *** #SB : SB2 
 **** iC : iC2 
 ** #SA : SA2 
 *** iA : iA2 
 *** iB : iB3 
 *** #SB : SB3 
 **** iC : iC3 
 ** #SC : SC1 
 *** iD : iD1 
 * PI-CR-SERIAL-2: 
 ** #SA : SA3 
 *** iA : iA3 
 *** iB : iB3 
 *** #SB : SB4 
 **** iC : iC4 
 ** #SC : SC2 
 *** iD : iD2 

Back