mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-10 11:12:16 +03:00
Merge branch 'master' of https://github.com/Pardus-LiderAhenk/ahenk
This commit is contained in:
commit
408cf0f486
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ class ExecuteSSSDAuthentication:
|
||||||
|
|
||||||
def authenticate(self, server_address, dn, admin_dn, admin_password):
|
def authenticate(self, server_address, dn, admin_dn, admin_password):
|
||||||
try:
|
try:
|
||||||
ldap_pwdlockout_dn = "cn=DefaultPolicy,ou=PasswordPolicies" + "," + dn
|
ldap_pwdlockout_dn = "ou=PasswordPolicies" + "," + dn
|
||||||
|
|
||||||
# pattern for clearing file data from spaces, tabs and newlines
|
# pattern for clearing file data from spaces, tabs and newlines
|
||||||
pattern = re.compile(r'\s+')
|
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_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_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_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.close()
|
||||||
file_sssd = open(sssd_config_file_path, 'w')
|
file_sssd = open(sssd_config_file_path, 'w')
|
||||||
|
|
Loading…
Reference in a new issue