|
|
b2d430 |
From 5377817417b800335c5ae21f7e6b301ddbcbe1d1 Mon Sep 17 00:00:00 2001
|
|
|
b2d430 |
From: Petr Cech <pcech@redhat.com>
|
|
|
b2d430 |
Date: Fri, 13 May 2016 05:21:07 -0400
|
|
|
b2d430 |
Subject: [PATCH 103/108] AD_PROVIDER: Add ad_enabled_domains option
|
|
|
b2d430 |
MIME-Version: 1.0
|
|
|
b2d430 |
Content-Type: text/plain; charset=UTF-8
|
|
|
b2d430 |
Content-Transfer-Encoding: 8bit
|
|
|
b2d430 |
|
|
|
b2d430 |
Resolves:
|
|
|
b2d430 |
https://fedorahosted.org/sssd/ticket/2828
|
|
|
b2d430 |
|
|
|
b2d430 |
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
b2d430 |
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
|
|
|
b2d430 |
---
|
|
|
b2d430 |
src/config/SSSDConfig/__init__.py.in | 1 +
|
|
|
b2d430 |
src/config/cfg_rules.ini | 1 +
|
|
|
b2d430 |
src/config/etc/sssd.api.d/sssd-ad.conf | 1 +
|
|
|
b2d430 |
src/man/sssd-ad.5.xml | 27 +++++++++++++++++++++++++++
|
|
|
b2d430 |
src/providers/ad/ad_common.h | 1 +
|
|
|
b2d430 |
src/providers/ad/ad_opts.c | 1 +
|
|
|
b2d430 |
6 files changed, 32 insertions(+)
|
|
|
b2d430 |
|
|
|
b2d430 |
diff --git a/src/config/SSSDConfig/__init__.py.in b/src/config/SSSDConfig/__init__.py.in
|
|
|
b2d430 |
index ac538788b9878dc2613cb48b7483d392cca41d47..1718a9babf390b95710ec356f25f09ea679bdd73 100644
|
|
|
b2d430 |
--- a/src/config/SSSDConfig/__init__.py.in
|
|
|
b2d430 |
+++ b/src/config/SSSDConfig/__init__.py.in
|
|
|
b2d430 |
@@ -192,6 +192,7 @@ option_strings = {
|
|
|
b2d430 |
|
|
|
b2d430 |
# [provider/ad]
|
|
|
b2d430 |
'ad_domain' : _('Active Directory domain'),
|
|
|
b2d430 |
+ 'ad_enabled_domains' : _('Enabled Active Directory domains'),
|
|
|
b2d430 |
'ad_server' : _('Active Directory server address'),
|
|
|
b2d430 |
'ad_backup_server' : _('Active Directory backup server address'),
|
|
|
b2d430 |
'ad_hostname' : _('Active Directory client hostname'),
|
|
|
b2d430 |
diff --git a/src/config/cfg_rules.ini b/src/config/cfg_rules.ini
|
|
|
b2d430 |
index bd0116f334e2605e7671a208225761421511a75a..ef6435b08aee416e377fe854e6768f3fa4fd9650 100644
|
|
|
b2d430 |
--- a/src/config/cfg_rules.ini
|
|
|
b2d430 |
+++ b/src/config/cfg_rules.ini
|
|
|
b2d430 |
@@ -335,6 +335,7 @@ option = ad_access_filter
|
|
|
b2d430 |
option = ad_backup_server
|
|
|
b2d430 |
option = ad_domain
|
|
|
b2d430 |
option = ad_enable_dns_sites
|
|
|
b2d430 |
+option = ad_enabled_domains
|
|
|
b2d430 |
option = ad_enable_gc
|
|
|
b2d430 |
option = ad_gpo_access_control
|
|
|
b2d430 |
option = ad_gpo_cache_timeout
|
|
|
b2d430 |
diff --git a/src/config/etc/sssd.api.d/sssd-ad.conf b/src/config/etc/sssd.api.d/sssd-ad.conf
|
|
|
b2d430 |
index 87a74f4af0770874c71baaea02d2313721db78bf..8d97a416c8c97bff096042b0b70a3b2c18183710 100644
|
|
|
b2d430 |
--- a/src/config/etc/sssd.api.d/sssd-ad.conf
|
|
|
b2d430 |
+++ b/src/config/etc/sssd.api.d/sssd-ad.conf
|
|
|
b2d430 |
@@ -1,5 +1,6 @@
|
|
|
b2d430 |
[provider/ad]
|
|
|
b2d430 |
ad_domain = str, None, false
|
|
|
b2d430 |
+ad_enabled_domains = str, None, false
|
|
|
b2d430 |
ad_server = str, None, false
|
|
|
b2d430 |
ad_backup_server = str, None, false
|
|
|
b2d430 |
ad_hostname = str, None, false
|
|
|
b2d430 |
diff --git a/src/man/sssd-ad.5.xml b/src/man/sssd-ad.5.xml
|
|
|
b2d430 |
index ef27976dd62e164cfb91359efc69bd54e1aa9711..8a2f4ade9387f0d5723b7056bdce9e83363cf035 100644
|
|
|
b2d430 |
--- a/src/man/sssd-ad.5.xml
|
|
|
b2d430 |
+++ b/src/man/sssd-ad.5.xml
|
|
|
b2d430 |
@@ -114,6 +114,33 @@ ldap_id_mapping = False
|
|
|
b2d430 |
</varlistentry>
|
|
|
b2d430 |
|
|
|
b2d430 |
<varlistentry>
|
|
|
b2d430 |
+ <term>ad_enabled_domains (string)</term>
|
|
|
b2d430 |
+ <listitem>
|
|
|
b2d430 |
+ <para>
|
|
|
b2d430 |
+ A comma-separated list of enabled Active Directory domains.
|
|
|
b2d430 |
+ If provided, SSSD will ignore any domains not listed in this
|
|
|
b2d430 |
+ option. If left unset, all domains from the AD forest will
|
|
|
b2d430 |
+ be available.
|
|
|
b2d430 |
+ </para>
|
|
|
b2d430 |
+ <para>
|
|
|
b2d430 |
+ For proper operation, this option must be specified in all
|
|
|
b2d430 |
+ lower-case and as the fully qualified domain name of the
|
|
|
b2d430 |
+ Active Directory domain. For example:
|
|
|
b2d430 |
+ <programlisting>
|
|
|
b2d430 |
+ad_enabled_domains = sales.example.com, eng.example.com
|
|
|
b2d430 |
+ </programlisting>
|
|
|
b2d430 |
+ </para>
|
|
|
b2d430 |
+ <para>
|
|
|
b2d430 |
+ The short domain name (also known as the NetBIOS or the flat
|
|
|
b2d430 |
+ name) will be autodetected by SSSD.
|
|
|
b2d430 |
+ </para>
|
|
|
b2d430 |
+ <para>
|
|
|
b2d430 |
+ Default: Not set
|
|
|
b2d430 |
+ </para>
|
|
|
b2d430 |
+ </listitem>
|
|
|
b2d430 |
+ </varlistentry>
|
|
|
b2d430 |
+
|
|
|
b2d430 |
+ <varlistentry>
|
|
|
b2d430 |
<term>ad_server, ad_backup_server (string)</term>
|
|
|
b2d430 |
<listitem>
|
|
|
b2d430 |
<para>
|
|
|
b2d430 |
diff --git a/src/providers/ad/ad_common.h b/src/providers/ad/ad_common.h
|
|
|
b2d430 |
index 7e86faf1142d7be49eef01e1ddd7bfafea2fcedc..23351e328968918aa9ca9009c052e670a7d55258 100644
|
|
|
b2d430 |
--- a/src/providers/ad/ad_common.h
|
|
|
b2d430 |
+++ b/src/providers/ad/ad_common.h
|
|
|
b2d430 |
@@ -42,6 +42,7 @@ struct ad_options;
|
|
|
b2d430 |
|
|
|
b2d430 |
enum ad_basic_opt {
|
|
|
b2d430 |
AD_DOMAIN = 0,
|
|
|
b2d430 |
+ AD_ENABLED_DOMAINS,
|
|
|
b2d430 |
AD_SERVER,
|
|
|
b2d430 |
AD_BACKUP_SERVER,
|
|
|
b2d430 |
AD_HOSTNAME,
|
|
|
b2d430 |
diff --git a/src/providers/ad/ad_opts.c b/src/providers/ad/ad_opts.c
|
|
|
b2d430 |
index 829f9d9556bc3fa74a95eb76db0e31b19befe8fe..fc1dc67337845754eba8c879c78e08c1777a4abc 100644
|
|
|
b2d430 |
--- a/src/providers/ad/ad_opts.c
|
|
|
b2d430 |
+++ b/src/providers/ad/ad_opts.c
|
|
|
b2d430 |
@@ -28,6 +28,7 @@
|
|
|
b2d430 |
|
|
|
b2d430 |
struct dp_option ad_basic_opts[] = {
|
|
|
b2d430 |
{ "ad_domain", DP_OPT_STRING, NULL_STRING, NULL_STRING },
|
|
|
b2d430 |
+ { "ad_enabled_domains", DP_OPT_STRING, NULL_STRING, NULL_STRING },
|
|
|
b2d430 |
{ "ad_server", DP_OPT_STRING, NULL_STRING, NULL_STRING },
|
|
|
b2d430 |
{ "ad_backup_server", DP_OPT_STRING, NULL_STRING, NULL_STRING },
|
|
|
b2d430 |
{ "ad_hostname", DP_OPT_STRING, NULL_STRING, NULL_STRING },
|
|
|
b2d430 |
--
|
|
|
b2d430 |
2.4.11
|
|
|
b2d430 |
|