Authorization Service: INI Configuration File Syntax

Description

The authorization service uses standard INI files for most of its configuration. INI files are basically key/value property files with the additional concept of grouping or sections in order to provide some scoping mechanisms to the properties.

File Syntax

An INI file contains three basic types of information; comments, sections, and properties.

A comment is a single line starting with the characters '#' (hash) or ';' (semicolon). It is not interpreted by the parser. The following example gives an INI file with just a comment in it.

# Start of INI file

A section is always declared between '[' and ']' characters. The string betwixt those characters are the section name. Section names should only include alphanumeric characters plus '.' (period), '_' (underscore), and '-' (hyphen). One section ends when another section begins. The following example gives an INI file with comments and sections in it.

# Start of INI file
[SECTION1]
# Start of section named SECTION1
# End of section named SECTION1
[section-2]
# Start of section named section-2

A property is a key value pair with the key being declared first followed be an '=' (equal) and then the value. Keys should only include alphanumeric characters plus '.' (period), '_' (underscore), and '-' (hyphen) while values may include any visible ASCII character plus a space or tab. Properties belong to the section in which they are declared.

The following example gives an INI file with comments, sections, and properties.

# Start of INI file
[SECTION1]
# Start of section named SECTION1
prop1 = value1
prop2 = value2
# End of section named SECTION1
[section-2]
# Start of section named section-2
prop2 = value3
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2016-07-05 - MaartenLitmaath
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    EGEE All webs login

This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Ask a support question or Send feedback