Repository navigation
(2024.06 and earlier) Group members not synced to RES during AD sync
Himaja Chandaluri edited this page Jun 18, 2024
·
1 revision
Group members will not properly sync to RES if the GroupOU differs from the UserOU.
RES creates an ldapsearch filter when attempting to sync users from an AD group. The current filter incorrectly utilizes the UserOU parameter instead of the GroupOU parameter. The result is that the search fails to return any users. This behavior only occurs in instances where the UsersOU and GroupOU differ.
This issue affects all RES versions 2024.06 or earlier
Please follow the following steps to resolve the issue,
- Follow the steps below to download the patch.py script and group_member_sync_bug_fix.patch file by replacing
<output-directory>and<res_version>in the command below with the local directory you’d like to download the patch script and patch file to:- The patch script requires AWS CLI v2, Python 3.9.16 or above, and Boto3.
- Configure the AWS CLI for the account and region where RES is deployed, and make sure that you have S3 permissions to write to the bucket created by RES.
- The patch only supports RES versions 2024.04.02 and 2024.06. If you are using 2024.04 or 2024.04.01, you can follow the steps listed in the public document to first update your environment to 2024.04.02 prior to applying the patch.
| RES Version | Patch download link |
|---|---|
| RES 2024.04.02 | 2024.04.02_group_member_sync_bug_fix.patch |
| RES 2024.06 | 2024.06_group_member_sync_bug_fix.patch |
OUTPUT_DIRECTORY=<output-directory>
RES_VERSION=<res_version>
mkdir -p ${OUTPUT_DIRECTORY}
curl https://research-engineering-studio-us-east-1.s3.amazonaws.com/releases/${RES_VERSION}/patch_scripts/patch.py --output ${OUTPUT_DIRECTORY}/patch.py
curl https://research-engineering-studio-us-east-1.s3.amazonaws.com/releases/${RES_VERSION}/patch_scripts/patches/${RES_VERSION}_group_member_sync_bug_fix.patch --output ${OUTPUT_DIRECTORY}/${RES_VERSION}_group_member_sync_bug_fix.patch
- Navigate to the directory where the patch script and patch file are downloaded. Run the following patch command by replacing :
cd ${OUTPUT_DIRECTORY}
ENVIRONMENT_NAME=<environment-name>
python3 patch.py --environment-name ${ENVIRONMENT_NAME} --res-version ${RES_VERSION} --module cluster-manager --patch $PWD/${RES_VERSION}_group_member_sync_bug_fix.patch
- Restart the cluster-manager instance for your environment using the commands below:
INSTANCE_ID=$(aws ec2 describe-instances \
--filters \
Name=tag:Name,Values=${ENVIRONMENT_NAME}-cluster-manager \
Name=tag:res:EnvironmentName,Values=${ENVIRONMENT_NAME}\
--query "Reservations[0].Instances[0].InstanceId" \
--output text)
aws ec2 terminate-instances --instance-ids ${INSTANCE_ID}