Debian Codegraph @

man/nm-settings-dbus.xsl

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE stylesheet [
3 <!ENTITY % entities SYSTEM "common.ent" >
4 %entities;
5 ]>
6 <xsl:stylesheet version="1.0"
7 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
8
9 <xsl:output
10 method="xml"
11 doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
12 doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
13 />
14
15 <xsl:template match="nm-setting-docs">
16 <refentry id="nm-settings-dbus">
17 <refentryinfo>
18 <title>nm-settings-dbus</title>
19 <author>NetworkManager developers</author>
20 </refentryinfo>
21 <refmeta>
22 <refentrytitle>nm-settings-dbus</refentrytitle>
23 <manvolnum>5</manvolnum>
24 <refmiscinfo class="source">NetworkManager</refmiscinfo>
25 <refmiscinfo class="manual">Configuration</refmiscinfo>
26 <refmiscinfo class="version">&NM_VERSION;</refmiscinfo>
27 </refmeta>
28 <refnamediv>
29 <refname>nm-settings-dbus</refname>
30 <refpurpose>Description of settings and properties of NetworkManager connection profiles on the D-Bus API</refpurpose>
31 </refnamediv>
32
33 <refsect1 id='description'><title>Description</title>
34 <para>
35 NetworkManager is based on a concept of connection profiles, sometimes referred to as
36 connections only. These connection profiles contain a network configuration. When
37 NetworkManager activates a connection profile on a network device the configuration will
38 be applied and an active network connection will be established. Users are free to create
39 as many connection profiles as they see fit. Thus they are flexible in having various network
40 configurations for different networking needs. The connection profiles are handled by
41 NetworkManager via <emphasis>settings service</emphasis> and are exported on D-Bus
42 (<emphasis>/org/freedesktop/NetworkManager/Settings/&lt;num&gt;</emphasis> objects).
43 The conceptual objects can be described as follows:
44 <variablelist>
45 <varlistentry>
46 <term>Connection (profile)</term>
47 <listitem>
48 <para>
49 A specific, encapsulated, independent group of settings describing
50 all the configuration required to connect to a specific network.
51 It is referred to by a unique identifier called the UUID. A connection
52 is tied to a one specific device type, but not necessarily a specific
53 hardware device. It is composed of one or more <emphasis>Settings</emphasis>
54 objects.
55 </para>
56 </listitem>
57 </varlistentry>
58 </variablelist>
59 <variablelist>
60 <varlistentry>
61 <term>Setting</term>
62 <listitem>
63 <para>
64 A group of related key/value pairs describing a specific piece of a
65 <emphasis>Connection (profile)</emphasis>. Settings keys and allowed values are
66 described in the tables below. Keys are also referred to as properties.
67 Developers can find the setting objects and their properties in the libnm-core
68 sources. Look for the <function>*_class_init</function> functions near the bottom
69 of each setting source file.
70 </para>
71 </listitem>
72 </varlistentry>
73 </variablelist>
74 <variablelist>
75 <para>
76 The settings and properties shown in tables below list all available connection
77 configuration options. However, note that not all settings are applicable to all
78 connection types. NetworkManager provides a command-line tool <emphasis>nmcli</emphasis>
79 that allows direct configuration of the settings and properties according to a connection
80 profile type. <emphasis>nmcli</emphasis> connection editor has also a built-in
81 <emphasis>describe</emphasis> command that can display description of particular settings
82 and properties of this page.
83 </para>
84 </variablelist>
85 </para>
86 <xsl:apply-templates/>
87 <refsect2 id="secrets-flags">
88 <title>Secret flag types:</title>
89 <para>
90 Each password or secret property in a setting has an associated <emphasis>flags</emphasis> property
91 that describes how to handle that secret. The <emphasis>flags</emphasis> property is a bitfield
92 that contains zero or more of the following values logically OR-ed together.
93 </para>
94 <itemizedlist>
95 <listitem>
96 <para>0x0 (none) - the system is responsible for providing and storing this secret. This
97 may be required so that secrets are already available before the user logs in.
98 It also commonly means that the secret will be stored in plain text on disk, accessible
99 to root only. For example via the keyfile settings plugin as described in the "PLUGINS" section
100 in <link linkend='NetworkManager.conf'><citerefentry><refentrytitle>NetworkManager.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>.
101 </para>
102 </listitem>
103 <listitem>
104 <para>0x1 (agent-owned) - a user-session secret agent is responsible for providing and storing
105 this secret; when it is required, agents will be asked to provide it.</para>
106 </listitem>
107 <listitem>
108 <para>0x2 (not-saved) - this secret should not be saved but should be requested from the user
109 each time it is required. This flag should be used for One-Time-Pad secrets, PIN codes from hardware tokens,
110 or if the user simply does not want to save the secret.</para>
111 </listitem>
112 <listitem>
113 <para>0x4 (not-required) - in some situations it cannot be automatically determined that a secret
114 is required or not. This flag hints that the secret is not required and should not be requested from the user.</para>
115 </listitem>
116 </itemizedlist>
117 </refsect2>
118 </refsect1>
119
120 <refsect1 id='files'><title>Files</title>
121 <para><filename>/etc/NetworkManager/system-connections</filename> or distro plugin-specific location</para>
122 </refsect1>
123
124 <refsect1 id='see_also'><title>See Also</title>
125 <para>
126 <link linkend='nm-settings-nmcli'><citerefentry><refentrytitle>nm-settings-nmcli</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>,
127 <link linkend='nm-settings-keyfile'><citerefentry><refentrytitle>nm-settings-keyfile</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>,
128 <link linkend='NetworkManager'><citerefentry><refentrytitle>NetworkManager</refentrytitle><manvolnum>8</manvolnum></citerefentry></link>,
129 <link linkend='nmcli'><citerefentry><refentrytitle>nmcli</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>,
130 <link linkend='nmcli-examples'><citerefentry><refentrytitle>nmcli-examples</refentrytitle><manvolnum>7</manvolnum></citerefentry></link>,
131 <link linkend='NetworkManager.conf'><citerefentry><refentrytitle>NetworkManager.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>
132 </para>
133 </refsect1>
134 </refentry>
135 </xsl:template>
136
137 <xsl:template match="setting">
138 <refsect2>
139 <title><xsl:value-of select="@name"/> setting</title>
140 <para><xsl:value-of select="@description"/>.</para>
141 <informaltable>
142 <tgroup cols="4">
143 <thead>
144 <row>
145 <entry>Key Name</entry>
146 <entry>Value Type</entry>
147 <entry>Default Value</entry>
148 <entry>Value Description</entry>
149 </row>
150 </thead>
151 <tbody>
152 <xsl:apply-templates/>
153 </tbody>
154 </tgroup>
155 </informaltable>
156 </refsect2>
157 </xsl:template>
158
159 <xsl:template match="property">
160 <xsl:variable name="setting_name" select="../@name"/>
161 <row>
162 <entry align="left"><xsl:attribute name="id">nm-settings-dbus.property.<xsl:value-of select="../@name"/>.<xsl:value-of select="@name"/></xsl:attribute><xsl:value-of select="@name"/></entry>
163 <entry align="left"><xsl:value-of select="@type"/></entry>
164 <entry align="left"><xsl:value-of select="@default"/></entry>
165 <entry><xsl:apply-templates select="description"/><xsl:if test="deprecated">
166
167 This property is deprecated since version <xsl:value-of select="deprecated/@since"/>.<xsl:value-of select="deprecated"/></xsl:if></entry>
168 </row>
169 </xsl:template>
170
171 <xsl:template match="description">
172 <xsl:value-of select="."/><xsl:if test="@type = 'NMSettingSecretFlags (uint32)'"> (see <xref linkend="secrets-flags"/> for flag values)</xsl:if>
173 </xsl:template>
174
175 </xsl:stylesheet>