summaryrefslogtreecommitdiffstats
path: root/awx_collection
diff options
context:
space:
mode:
authorDjebran Lezzoum <ldjebran@gmail.com>2024-10-02 15:40:16 +0200
committerjessicamack <jmack@redhat.com>2024-10-15 23:43:32 +0200
commitf22b192fb4eac82dbe29d7c4c95c69dd6813382d (patch)
treea392fec43af0ee9b6f2680ffee1538b1547dc47a /awx_collection
parentPrettier DRF pages when using trusted proxy (#15579) (diff)
downloadawx-f22b192fb4eac82dbe29d7c4c95c69dd6813382d.tar.xz
awx-f22b192fb4eac82dbe29d7c4c95c69dd6813382d.zip
Remove LDAP authentication (#15546)
Remove LDAP authentication from AWX
Diffstat (limited to 'awx_collection')
-rw-r--r--awx_collection/plugins/modules/settings.py15
-rw-r--r--awx_collection/test/awx/test_settings.py30
2 files changed, 0 insertions, 45 deletions
diff --git a/awx_collection/plugins/modules/settings.py b/awx_collection/plugins/modules/settings.py
index c911f77fcc..7314257463 100644
--- a/awx_collection/plugins/modules/settings.py
+++ b/awx_collection/plugins/modules/settings.py
@@ -52,21 +52,6 @@ EXAMPLES = '''
name: "AWX_ISOLATION_SHOW_PATHS"
value: "'/var/lib/awx/projects/', '/tmp'"
register: testing_settings
-
-- name: Set the LDAP Auth Bind Password
- settings:
- name: "AUTH_LDAP_BIND_PASSWORD"
- value: "Password"
- no_log: true
-
-- name: Set all the LDAP Auth Bind Params
- settings:
- settings:
- AUTH_LDAP_BIND_PASSWORD: "password"
- AUTH_LDAP_USER_ATTR_MAP:
- email: "mail"
- first_name: "givenName"
- last_name: "surname"
'''
from ..module_utils.controller_api import ControllerAPIModule
diff --git a/awx_collection/test/awx/test_settings.py b/awx_collection/test/awx/test_settings.py
index 69e823b3b9..2e0de9d2e0 100644
--- a/awx_collection/test/awx/test_settings.py
+++ b/awx_collection/test/awx/test_settings.py
@@ -8,36 +8,6 @@ from awx.conf.models import Setting
@pytest.mark.django_db
-def test_setting_flat_value(run_module, admin_user):
- the_value = 'CN=service_account,OU=ServiceAccounts,DC=domain,DC=company,DC=org'
- result = run_module('settings', dict(name='AUTH_LDAP_BIND_DN', value=the_value), admin_user)
- assert not result.get('failed', False), result.get('msg', result)
- assert result.get('changed'), result
-
- assert Setting.objects.get(key='AUTH_LDAP_BIND_DN').value == the_value
-
-
-@pytest.mark.django_db
-def test_setting_dict_value(run_module, admin_user):
- the_value = {'email': 'mail', 'first_name': 'givenName', 'last_name': 'surname'}
- result = run_module('settings', dict(name='AUTH_LDAP_USER_ATTR_MAP', value=the_value), admin_user)
- assert not result.get('failed', False), result.get('msg', result)
- assert result.get('changed'), result
-
- assert Setting.objects.get(key='AUTH_LDAP_USER_ATTR_MAP').value == the_value
-
-
-@pytest.mark.django_db
-def test_setting_nested_type(run_module, admin_user):
- the_value = {'email': 'mail', 'first_name': 'givenName', 'last_name': 'surname'}
- result = run_module('settings', dict(settings={'AUTH_LDAP_USER_ATTR_MAP': the_value}), admin_user)
- assert not result.get('failed', False), result.get('msg', result)
- assert result.get('changed'), result
-
- assert Setting.objects.get(key='AUTH_LDAP_USER_ATTR_MAP').value == the_value
-
-
-@pytest.mark.django_db
def test_setting_bool_value(run_module, admin_user):
for the_value in (True, False):
result = run_module('settings', dict(name='ACTIVITY_STREAM_ENABLED_FOR_INVENTORY_SYNC', value=the_value), admin_user)