mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-28 02:12:25 +03:00
sssd ldap_sudo_search_base has been made dynamic
This commit is contained in:
parent
fe3625aac8
commit
c76256a050
2 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,7 @@ override_shell = /bin/bash
|
|||
enumerate = true
|
||||
cache_credentials = true
|
||||
sudo_provider = ldap
|
||||
ldap_sudo_search_base = ou=Roles,dc=liderahenk,dc=org
|
||||
###ldap_sudo_search_base###
|
||||
###90 days
|
||||
ldap_sudo_full_refresh_interval=7776000
|
||||
###30 days
|
||||
|
|
|
@ -48,6 +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_sssd.close()
|
||||
file_sssd = open(sssd_config_file_path, 'w')
|
||||
|
|
Loading…
Reference in a new issue