Location #5
@@ -56,12 +56,12 @@ if [[ -v sso_token ]]; then
|
||||
curl "${sso_url}/api/group/" \
|
||||
-H "auth-token: ${sso_token}" \
|
||||
-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/" \
|
||||
-H "auth-token: ${sso_token}" \
|
||||
-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
|
||||
|
||||
echo "--- SSSD Migration Complete! ---"
|
||||
|
||||
+3
-2
@@ -9,5 +9,6 @@ export sso_url="https://sso.theta42.com"
|
||||
export sso_token="" # This is the only optional variable
|
||||
|
||||
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" )
|
||||
|
||||
Reference in New Issue
Block a user