Location #5

Merged
wmantly merged 5 commits from location into master 2026-07-11 17:00:35 +00:00
2 changed files with 6 additions and 5 deletions
Showing only changes of commit 108da0131b - Show all commits
+2 -2
View File
@@ -56,12 +56,12 @@ if [[ -v sso_token ]]; then
curl "${sso_url}/api/group/" \ curl "${sso_url}/api/group/" \
-H "auth-token: ${sso_token}" \ -H "auth-token: ${sso_token}" \
-H "content-type: application/json; charset=UTF-8" \ -H "content-type: application/json; charset=UTF-8" \
--data-binary "{\"name\":\"${ldapLocation}_host_${current_host}_access\",\"description\":\"Access for $current_host\"}" --data-binary "{\"name\":\"${ldap_location}_host_${current_host}_access\",\"description\":\"Access for $current_host\"}"
curl "${sso_url}/api/group/" \ curl "${sso_url}/api/group/" \
-H "auth-token: ${sso_token}" \ -H "auth-token: ${sso_token}" \
-H "content-type: application/json; charset=UTF-8" \ -H "content-type: application/json; charset=UTF-8" \
--data-binary "{\"name\":\"${ldapLocation}_host_${current_host}_admin\",\"description\":\"sudo for $current_host\"}" --data-binary "{\"name\":\"${ldap_location}_host_${current_host}_admin\",\"description\":\"sudo for $current_host\"}"
fi fi
echo "--- SSSD Migration Complete! ---" echo "--- SSSD Migration Complete! ---"
+3 -2
View File
@@ -9,5 +9,6 @@ export sso_url="https://sso.theta42.com"
export sso_token="" # This is the only optional variable export sso_token="" # This is the only optional variable
export ldap_location="pdp" export ldap_location="pdp"
export ldap_access_groups=( $ldap_location_access $ldap_location_$(hostname)_access )
export ldap_sudo_groups=( $ldap_location_admin $ldap_location_$(hostname)_admin ) ldap_access_groups=( "${ldap_location}_access" "${ldap_location}_$(hostname)_access" )
ldap_sudo_groups=( "${ldap_location}_admin" "${ldap_location}_$(hostname)_admin" )