Browse Source

Add 'chase_referrals' parameter.

its used for overriding the system's default
referral chasing behavior for queries.

Change-Id: Icc207bcc4180b7249e5bf415ce7e661fdaf7ee21
Related-Bug: #1532803
Maksym Yatsenko 2 years ago
parent
commit
6707739fbe

+ 2
- 0
deployment_scripts/puppet/modules/plugin_ldap/manifests/controller.pp View File

@@ -43,6 +43,7 @@ class plugin_ldap::controller {
43 43
   $group_allow_delete     = false
44 44
 
45 45
   $page_size              = $::fuel_settings['ldap']['page_size']
46
+  $chase_referrals        = pick($::fuel_settings['ldap']['chase_referrals'],'False')
46 47
 
47 48
   $domain                 = $::fuel_settings['ldap']['domain']
48 49
   $use_tls                = $::fuel_settings['ldap']['use_tls']
@@ -92,6 +93,7 @@ class plugin_ldap::controller {
92 93
     group_allow_update     => $group_allow_update,
93 94
     group_allow_delete     => $group_allow_delete,
94 95
     page_size              => $page_size,
96
+    chase_referrals        => $chase_referrals,
95 97
   }
96 98
 
97 99
   Plugin_ldap::Keystone<||> ~>

+ 2
- 0
deployment_scripts/puppet/modules/plugin_ldap/manifests/keystone.pp View File

@@ -31,6 +31,7 @@ define plugin_ldap::keystone (
31 31
   $group_allow_update     = undef,
32 32
   $group_allow_delete     = undef,
33 33
   $page_size              = undef,
34
+  $chase_referrals        = undef,
34 35
 ){
35 36
 
36 37
   if $use_tls {
@@ -102,6 +103,7 @@ define plugin_ldap::keystone (
102 103
     "${domain}/ldap/group_allow_update":     value => $group_allow_update;
103 104
     "${domain}/ldap/group_allow_delete":     value => $group_allow_delete;
104 105
     "${domain}/ldap/page_size":              value => $page_size;
106
+    "${domain}/ldap/chase_referrals":        value => $chase_referrals;
105 107
   }
106 108
 
107 109
   keystone_domain { "${domain}":

+ 1
- 0
deployment_scripts/puppet/modules/plugin_ldap/manifests/multiple_domain.pp View File

@@ -36,6 +36,7 @@ define plugin_ldap::multiple_domain (
36 36
     group_allow_update     => $domain_params_hash['group_allow_update'],
37 37
     group_allow_delete     => $domain_params_hash['group_allow_delete'],
38 38
     page_size              => $domain_params_hash['page_size'],
39
+    chase_referrals        => $domain_params_hash['chase_referrals'],
39 40
   }
40 41
 
41 42
 }

+ 10
- 1
environment_config.yaml View File

@@ -162,9 +162,18 @@ attributes:
162 162
     regex:
163 163
       source: '^[0-9]+$'
164 164
       error: "Page size contains unexpected value. It must contain only numbers."
165
+  chase_referrals:
166
+    value: 'False'
167
+    label: 'Chase referrals Attribute'
168
+    description: 'Referral chasing behavior for queries.'
169
+    weight: 115
170
+    type: "text"
171
+    regex:
172
+      source: '^[Ff]alse$|^[Tt]rue$'
173
+      error: "Chase referrals must contains boolean values: False or True."
165 174
   additional_domains:
166 175
     type: "textarea"
167
-    weight: 115
176
+    weight: 120
168 177
     value: ''
169 178
     label: "List of additional Domains"
170 179
     description: "Blocks of additional domains/parameters that should be created"

Loading…
Cancel
Save