From fe664fa8bf00a4c0f434f85099221c89b2902d75 Mon Sep 17 00:00:00 2001 From: hasankara Date: Wed, 10 Jun 2020 10:42:44 +0300 Subject: [PATCH] Update execute_sssd_authentication.py updated Policies and Role DN for SSSD config --- src/base/registration/execute_sssd_authentication.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/registration/execute_sssd_authentication.py b/src/base/registration/execute_sssd_authentication.py index 178b01b..8f8ca37 100644 --- a/src/base/registration/execute_sssd_authentication.py +++ b/src/base/registration/execute_sssd_authentication.py @@ -15,7 +15,7 @@ class ExecuteSSSDAuthentication: def authenticate(self, server_address, dn, admin_dn, admin_password): try: - ldap_pwdlockout_dn = "cn=DefaultPolicy,ou=PasswordPolicies" + "," + dn + ldap_pwdlockout_dn = "ou=Policies" + "," + dn # pattern for clearing file data from spaces, tabs and newlines pattern = re.compile(r'\s+') @@ -48,7 +48,7 @@ class ExecuteSSSDAuthentication: file_data = file_data.replace("###ldap_search_base###", "ldap_search_base = " + dn) file_data = file_data.replace("###ldap_user_search_base###", "ldap_user_search_base = " + dn) file_data = file_data.replace("###ldap_group_search_base###", "ldap_group_search_base = " + dn) - file_data = file_data.replace("###ldap_sudo_search_base###", "ldap_sudo_search_base = ou=Roles," + dn) + file_data = file_data.replace("###ldap_sudo_search_base###", "ldap_sudo_search_base = ou=Role,ou=Groups" + dn) file_sssd.close() file_sssd = open(sssd_config_file_path, 'w')