summaryrefslogtreecommitdiffstats
path: root/src/responder
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2017-03-01 08:34:57 +0000
committerJakub Hrozek <jhrozek@redhat.com>2017-03-29 14:00:17 +0200
commitdcc52d9c6411528bab815351d1e6145d211a4765 (patch)
tree140f6c932751c71169d2c59c431a65ee64c786c4 /src/responder
parenta63d74f65db2db7389cd373cb37adcdaaa2d56ea (diff)
downloadsssd-dcc52d9c6411528bab815351d1e6145d211a4765.tar.gz
sssd-dcc52d9c6411528bab815351d1e6145d211a4765.tar.xz
sssd-dcc52d9c6411528bab815351d1e6145d211a4765.zip
CACHE_REQ: Descend into subdomains on lookups
Let's make all plugins, but the "host_by_name", to descend into the subdomains on lookups. This patch basically prepares the field for the coming up patches that will allow group/user resolution in all domains (or a subset of the domains) to be possible by only using the short names without the domain component. The "host_by_name" plugin was not changed as it's a specific IPA plugin and won't find anything on its subdomains. Related: https://pagure.io/SSSD/sssd/issue/3001 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/common/cache_req/plugins/cache_req_enum_svc.c2
-rw-r--r--src/responder/common/cache_req/plugins/cache_req_group_by_filter.c2
-rw-r--r--src/responder/common/cache_req/plugins/cache_req_group_by_name.c2
-rw-r--r--src/responder/common/cache_req/plugins/cache_req_initgroups_by_name.c2
-rw-r--r--src/responder/common/cache_req/plugins/cache_req_netgroup_by_name.c2
-rw-r--r--src/responder/common/cache_req/plugins/cache_req_object_by_name.c2
-rw-r--r--src/responder/common/cache_req/plugins/cache_req_svc_by_name.c2
-rw-r--r--src/responder/common/cache_req/plugins/cache_req_svc_by_port.c2
-rw-r--r--src/responder/common/cache_req/plugins/cache_req_user_by_filter.c2
-rw-r--r--src/responder/common/cache_req/plugins/cache_req_user_by_name.c2
10 files changed, 10 insertions, 10 deletions
diff --git a/src/responder/common/cache_req/plugins/cache_req_enum_svc.c b/src/responder/common/cache_req/plugins/cache_req_enum_svc.c
index 2c4917cde..28dea33c6 100644
--- a/src/responder/common/cache_req/plugins/cache_req_enum_svc.c
+++ b/src/responder/common/cache_req/plugins/cache_req_enum_svc.c
@@ -68,7 +68,7 @@ const struct cache_req_plugin cache_req_enum_svc = {
.allow_missing_fqn = true,
.allow_switch_to_upn = false,
.upn_equivalent = CACHE_REQ_SENTINEL,
- .get_next_domain_flags = 0,
+ .get_next_domain_flags = SSS_GND_DESCEND,
.is_well_known_fn = NULL,
.prepare_domain_data_fn = NULL,
diff --git a/src/responder/common/cache_req/plugins/cache_req_group_by_filter.c b/src/responder/common/cache_req/plugins/cache_req_group_by_filter.c
index 88e1137a3..6ce6ae0d6 100644
--- a/src/responder/common/cache_req/plugins/cache_req_group_by_filter.c
+++ b/src/responder/common/cache_req/plugins/cache_req_group_by_filter.c
@@ -123,7 +123,7 @@ const struct cache_req_plugin cache_req_group_by_filter = {
.allow_missing_fqn = false,
.allow_switch_to_upn = false,
.upn_equivalent = CACHE_REQ_SENTINEL,
- .get_next_domain_flags = 0,
+ .get_next_domain_flags = SSS_GND_DESCEND,
.is_well_known_fn = NULL,
.prepare_domain_data_fn = cache_req_group_by_filter_prepare_domain_data,
diff --git a/src/responder/common/cache_req/plugins/cache_req_group_by_name.c b/src/responder/common/cache_req/plugins/cache_req_group_by_name.c
index be1eb9bd8..af6f23ccf 100644
--- a/src/responder/common/cache_req/plugins/cache_req_group_by_name.c
+++ b/src/responder/common/cache_req/plugins/cache_req_group_by_name.c
@@ -186,7 +186,7 @@ const struct cache_req_plugin cache_req_group_by_name = {
.allow_missing_fqn = false,
.allow_switch_to_upn = false,
.upn_equivalent = CACHE_REQ_SENTINEL,
- .get_next_domain_flags = 0,
+ .get_next_domain_flags = SSS_GND_DESCEND,
.is_well_known_fn = NULL,
.prepare_domain_data_fn = cache_req_group_by_name_prepare_domain_data,
diff --git a/src/responder/common/cache_req/plugins/cache_req_initgroups_by_name.c b/src/responder/common/cache_req/plugins/cache_req_initgroups_by_name.c
index 10fb67cbf..307b65a24 100644
--- a/src/responder/common/cache_req/plugins/cache_req_initgroups_by_name.c
+++ b/src/responder/common/cache_req/plugins/cache_req_initgroups_by_name.c
@@ -201,7 +201,7 @@ const struct cache_req_plugin cache_req_initgroups_by_name = {
.allow_missing_fqn = false,
.allow_switch_to_upn = true,
.upn_equivalent = CACHE_REQ_INITGROUPS_BY_UPN,
- .get_next_domain_flags = 0,
+ .get_next_domain_flags = SSS_GND_DESCEND,
.is_well_known_fn = NULL,
.prepare_domain_data_fn = cache_req_initgroups_by_name_prepare_domain_data,
diff --git a/src/responder/common/cache_req/plugins/cache_req_netgroup_by_name.c b/src/responder/common/cache_req/plugins/cache_req_netgroup_by_name.c
index bc6fc9a8f..e49d6d84a 100644
--- a/src/responder/common/cache_req/plugins/cache_req_netgroup_by_name.c
+++ b/src/responder/common/cache_req/plugins/cache_req_netgroup_by_name.c
@@ -120,7 +120,7 @@ const struct cache_req_plugin cache_req_netgroup_by_name = {
.allow_missing_fqn = true,
.allow_switch_to_upn = false,
.upn_equivalent = CACHE_REQ_SENTINEL,
- .get_next_domain_flags = 0,
+ .get_next_domain_flags = SSS_GND_DESCEND,
.is_well_known_fn = NULL,
.prepare_domain_data_fn = cache_req_netgroup_by_name_prepare_domain_data,
diff --git a/src/responder/common/cache_req/plugins/cache_req_object_by_name.c b/src/responder/common/cache_req/plugins/cache_req_object_by_name.c
index 2b2caeea1..74d2b3dea 100644
--- a/src/responder/common/cache_req/plugins/cache_req_object_by_name.c
+++ b/src/responder/common/cache_req/plugins/cache_req_object_by_name.c
@@ -196,7 +196,7 @@ const struct cache_req_plugin cache_req_object_by_name = {
.allow_missing_fqn = false,
.allow_switch_to_upn = true,
.upn_equivalent = CACHE_REQ_USER_BY_UPN,
- .get_next_domain_flags = 0,
+ .get_next_domain_flags = SSS_GND_DESCEND,
.is_well_known_fn = cache_req_object_by_name_well_known,
.prepare_domain_data_fn = cache_req_object_by_name_prepare_domain_data,
diff --git a/src/responder/common/cache_req/plugins/cache_req_svc_by_name.c b/src/responder/common/cache_req/plugins/cache_req_svc_by_name.c
index cbb186df0..ef13f097a 100644
--- a/src/responder/common/cache_req/plugins/cache_req_svc_by_name.c
+++ b/src/responder/common/cache_req/plugins/cache_req_svc_by_name.c
@@ -144,7 +144,7 @@ const struct cache_req_plugin cache_req_svc_by_name = {
.allow_missing_fqn = false,
.allow_switch_to_upn = false,
.upn_equivalent = CACHE_REQ_SENTINEL,
- .get_next_domain_flags = 0,
+ .get_next_domain_flags = SSS_GND_DESCEND,
.is_well_known_fn = NULL,
.prepare_domain_data_fn = cache_req_svc_by_name_prepare_domain_data,
diff --git a/src/responder/common/cache_req/plugins/cache_req_svc_by_port.c b/src/responder/common/cache_req/plugins/cache_req_svc_by_port.c
index 1da23d450..afa2eeeda 100644
--- a/src/responder/common/cache_req/plugins/cache_req_svc_by_port.c
+++ b/src/responder/common/cache_req/plugins/cache_req_svc_by_port.c
@@ -117,7 +117,7 @@ const struct cache_req_plugin cache_req_svc_by_port = {
.allow_missing_fqn = false,
.allow_switch_to_upn = false,
.upn_equivalent = CACHE_REQ_SENTINEL,
- .get_next_domain_flags = 0,
+ .get_next_domain_flags = SSS_GND_DESCEND,
.is_well_known_fn = NULL,
.prepare_domain_data_fn = cache_req_svc_by_port_prepare_domain_data,
diff --git a/src/responder/common/cache_req/plugins/cache_req_user_by_filter.c b/src/responder/common/cache_req/plugins/cache_req_user_by_filter.c
index ee7e69399..eb71b42da 100644
--- a/src/responder/common/cache_req/plugins/cache_req_user_by_filter.c
+++ b/src/responder/common/cache_req/plugins/cache_req_user_by_filter.c
@@ -123,7 +123,7 @@ const struct cache_req_plugin cache_req_user_by_filter = {
.allow_missing_fqn = false,
.allow_switch_to_upn = false,
.upn_equivalent = CACHE_REQ_SENTINEL,
- .get_next_domain_flags = 0,
+ .get_next_domain_flags = SSS_GND_DESCEND,
.is_well_known_fn = NULL,
.prepare_domain_data_fn = cache_req_user_by_filter_prepare_domain_data,
diff --git a/src/responder/common/cache_req/plugins/cache_req_user_by_name.c b/src/responder/common/cache_req/plugins/cache_req_user_by_name.c
index 4289f5fd4..0670febdc 100644
--- a/src/responder/common/cache_req/plugins/cache_req_user_by_name.c
+++ b/src/responder/common/cache_req/plugins/cache_req_user_by_name.c
@@ -191,7 +191,7 @@ const struct cache_req_plugin cache_req_user_by_name = {
.allow_missing_fqn = false,
.allow_switch_to_upn = true,
.upn_equivalent = CACHE_REQ_USER_BY_UPN,
- .get_next_domain_flags = 0,
+ .get_next_domain_flags = SSS_GND_DESCEND,
.is_well_known_fn = NULL,
.prepare_domain_data_fn = cache_req_user_by_name_prepare_domain_data,