[SSSD] [PATCH] MAN: Remove indentation in element programlistening

Lukas Slebodnik lslebodn at redhat.com
Wed Jan 14 13:11:22 UTC 2015


ehlo,

I noticed that indentation of examples for ad_gpo_map_* is realy weird.
attached is a simple patch which just remove whitespaces.

How it looked on terminal (80x25):
       ad_gpo_map_network (string)
           A comma-separated list of PAM service names for which GPO-based
           access control is evaluated based on the NetworkLogonRight and
           DenyNetworkLogonRight policy settings.

           It is possible to add another PAM service name to the default set
           by using “+service_name” or to explicitly remove a PAM service name
           from the default set by using “-service_name”. For example, in
           order to replace a default PAM service name for this logon right
           (e.g.  “ftp”) with a custom pam service name (e.g.
           “my_pam_service”), you would use the following configuration:

                                             ad_gpo_map_network = +my_pam_service, -ftp

           Default: the default set of PAM service names includes:

LS
-------------- next part --------------
>From 6f3fec041d05c6af1e0f6f1f299a2576ca331c2c Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn at redhat.com>
Date: Wed, 14 Jan 2015 09:10:29 +0100
Subject: [PATCH] MAN: Remove indentation in element programlistening

The indentation is automatically in resulting man page. It isn't necessary to
add spaces and moreover it can cause unreadable page asi in case of ad_gpo_map
examples.
---
 src/man/sssd-ad.5.xml     | 14 +++++++-------
 src/man/sssd-ipa.5.xml    |  8 ++++----
 src/man/sssd-krb5.5.xml   |  8 ++++----
 src/man/sssd-ldap.5.xml   | 34 +++++++++++++++++-----------------
 src/man/sssd-simple.5.xml |  6 +++---
 src/man/sssd.conf.5.xml   |  6 +++---
 6 files changed, 38 insertions(+), 38 deletions(-)

diff --git a/src/man/sssd-ad.5.xml b/src/man/sssd-ad.5.xml
index b721fb73b20837c9dc3abac25d3300649115c607..7997b780f703f9069f60d91a0c21efe837201f20 100644
--- a/src/man/sssd-ad.5.xml
+++ b/src/man/sssd-ad.5.xml
@@ -356,7 +356,7 @@ FOREST:EXAMPLE.COM:(memberOf=cn=admins,ou=groups,dc=example,dc=com)
                             with a custom pam service name (e.g. <quote>my_pam_service</quote>),
                             you would use the following configuration:
                             <programlisting>
-                              ad_gpo_map_interactive = +my_pam_service, -login
+ad_gpo_map_interactive = +my_pam_service, -login
                             </programlisting>
                         </para>
                         <para>
@@ -427,7 +427,7 @@ FOREST:EXAMPLE.COM:(memberOf=cn=admins,ou=groups,dc=example,dc=com)
                             with a custom pam service name (e.g. <quote>my_pam_service</quote>),
                             you would use the following configuration:
                             <programlisting>
-                              ad_gpo_map_remote_interactive = +my_pam_service, -sshd
+ad_gpo_map_remote_interactive = +my_pam_service, -sshd
                             </programlisting>
                         </para>
                         <para>
@@ -462,7 +462,7 @@ FOREST:EXAMPLE.COM:(memberOf=cn=admins,ou=groups,dc=example,dc=com)
                             with a custom pam service name (e.g. <quote>my_pam_service</quote>),
                             you would use the following configuration:
                             <programlisting>
-                              ad_gpo_map_network = +my_pam_service, -ftp
+ad_gpo_map_network = +my_pam_service, -ftp
                             </programlisting>
                         </para>
                         <para>
@@ -502,7 +502,7 @@ FOREST:EXAMPLE.COM:(memberOf=cn=admins,ou=groups,dc=example,dc=com)
                             with a custom pam service name (e.g. <quote>my_pam_service</quote>),
                             you would use the following configuration:
                             <programlisting>
-                              ad_gpo_map_batch = +my_pam_service, -crond
+ad_gpo_map_batch = +my_pam_service, -crond
                             </programlisting>
                         </para>
                         <para>
@@ -536,7 +536,7 @@ FOREST:EXAMPLE.COM:(memberOf=cn=admins,ou=groups,dc=example,dc=com)
                             name (e.g. <quote>my_pam_service</quote>), you
                             would use the following configuration:
                             <programlisting>
-                              ad_gpo_map_service = +my_pam_service
+ad_gpo_map_service = +my_pam_service
                             </programlisting>
                         </para>
                         <para>
@@ -563,7 +563,7 @@ FOREST:EXAMPLE.COM:(memberOf=cn=admins,ou=groups,dc=example,dc=com)
                             with a custom pam service name (e.g. <quote>my_pam_service</quote>),
                             you would use the following configuration:
                             <programlisting>
-                              ad_gpo_map_permit = +my_pam_service, -sudo
+ad_gpo_map_permit = +my_pam_service, -sudo
                             </programlisting>
                         </para>
                         <para>
@@ -601,7 +601,7 @@ FOREST:EXAMPLE.COM:(memberOf=cn=admins,ou=groups,dc=example,dc=com)
                             name (e.g. <quote>my_pam_service</quote>), you
                             would use the following configuration:
                             <programlisting>
-                              ad_gpo_map_deny = +my_pam_service
+ad_gpo_map_deny = +my_pam_service
                             </programlisting>
                         </para>
                         <para>
diff --git a/src/man/sssd-ipa.5.xml b/src/man/sssd-ipa.5.xml
index 2d8654a3cde76ab205766f8fdcb836aa1002cd43..6089ac60905d837d38c59d6953d47cd7de5b08c7 100644
--- a/src/man/sssd-ipa.5.xml
+++ b/src/man/sssd-ipa.5.xml
@@ -721,10 +721,10 @@
         </para>
         <para>
 <programlisting>
-    [domain/example.com]
-    id_provider = ipa
-    ipa_server = ipaserver.example.com
-    ipa_hostname = myhost.example.com
+[domain/example.com]
+id_provider = ipa
+ipa_server = ipaserver.example.com
+ipa_hostname = myhost.example.com
 </programlisting>
         </para>
     </refsect1>
diff --git a/src/man/sssd-krb5.5.xml b/src/man/sssd-krb5.5.xml
index a774dce35fb6271fdb1c015adba4ff8576465010..5bcab21111670a22e6d0c3cdc9eccf765e950b07 100644
--- a/src/man/sssd-krb5.5.xml
+++ b/src/man/sssd-krb5.5.xml
@@ -526,10 +526,10 @@
         </para>
         <para>
 <programlisting>
-    [domain/FOO]
-    auth_provider = krb5
-    krb5_server = 192.168.1.1
-    krb5_realm = EXAMPLE.COM
+[domain/FOO]
+auth_provider = krb5
+krb5_server = 192.168.1.1
+krb5_realm = EXAMPLE.COM
 </programlisting>
         </para>
     </refsect1>
diff --git a/src/man/sssd-ldap.5.xml b/src/man/sssd-ldap.5.xml
index 59410679315bb8726d6af2ab0637409955314f7c..9f2e9ac34add13e40d316374094024afdcc4ae31 100644
--- a/src/man/sssd-ldap.5.xml
+++ b/src/man/sssd-ldap.5.xml
@@ -2523,13 +2523,13 @@ ldap_access_filter = (employeeType=admin)
         </para>
         <para>
 <programlisting>
-    [domain/LDAP]
-    id_provider = ldap
-    auth_provider = ldap
-    ldap_uri = ldap://ldap.mydomain.org
-    ldap_search_base = dc=mydomain,dc=org
-    ldap_tls_reqcert = demand
-    cache_credentials = true
+[domain/LDAP]
+id_provider = ldap
+auth_provider = ldap
+ldap_uri = ldap://ldap.mydomain.org
+ldap_search_base = dc=mydomain,dc=org
+ldap_tls_reqcert = demand
+cache_credentials = true
 </programlisting>
         </para>
     </refsect1>
@@ -2541,16 +2541,16 @@ ldap_access_filter = (employeeType=admin)
         </para>
         <para>
 <programlisting>
-    [domain/LDAP]
-    id_provider = ldap
-    auth_provider = ldap
-    access_provider = ldap
-    ldap_access_order = lockout
-    ldap_pwdlockout_dn = cn=ppolicy,ou=policies,dc=mydomain,dc=org
-    ldap_uri = ldap://ldap.mydomain.org
-    ldap_search_base = dc=mydomain,dc=org
-    ldap_tls_reqcert = demand
-    cache_credentials = true
+[domain/LDAP]
+id_provider = ldap
+auth_provider = ldap
+access_provider = ldap
+ldap_access_order = lockout
+ldap_pwdlockout_dn = cn=ppolicy,ou=policies,dc=mydomain,dc=org
+ldap_uri = ldap://ldap.mydomain.org
+ldap_search_base = dc=mydomain,dc=org
+ldap_tls_reqcert = demand
+cache_credentials = true
 </programlisting>
         </para>
     </refsect1>
diff --git a/src/man/sssd-simple.5.xml b/src/man/sssd-simple.5.xml
index 0d677bd293925d9eed0ea16548fad3caf3bb3bae..c7ac17997caebb2064f07f0e4b80a2f7ebdcf1e2 100644
--- a/src/man/sssd-simple.5.xml
+++ b/src/man/sssd-simple.5.xml
@@ -137,9 +137,9 @@
         </para>
         <para>
 <programlisting>
-    [domain/example.com]
-    access_provider = simple
-    simple_allow_users = user1, user2
+[domain/example.com]
+access_provider = simple
+simple_allow_users = user1, user2
 </programlisting>
         </para>
     </refsect1>
diff --git a/src/man/sssd.conf.5.xml b/src/man/sssd.conf.5.xml
index 2002ccc7caf7013ead5b97c463fba46b734090ae..10d9904193ca8c277d708de731366d39c6dd5e28 100644
--- a/src/man/sssd.conf.5.xml
+++ b/src/man/sssd.conf.5.xml
@@ -26,9 +26,9 @@
             square brackets and continues until the next section begins. An
             example of section with single and multi-valued parameters:
             <programlisting>
-                <replaceable>[section]</replaceable>
-                <replaceable>key</replaceable> = <replaceable>value</replaceable>
-                <replaceable>key2</replaceable> = <replaceable>value2,value3</replaceable>
+<replaceable>[section]</replaceable>
+<replaceable>key</replaceable> = <replaceable>value</replaceable>
+<replaceable>key2</replaceable> = <replaceable>value2,value3</replaceable>
             </programlisting>
         </para>
 
-- 
2.1.0



More information about the sssd-devel mailing list