Problem: Students cannot sign in with their regular accounts after a UCS@school exam

Problem

After an exam ends, students cannot sign in with their regular accounts. Resetting the password does not help. The problem can persist after the exam accounts have been deleted.

Investigation

On the Primary, run the following as root for one affected regular account. Replace <USERNAME> with the student’s regular login name.

udm users/user list --filter 'uid=<USERNAME>' | grep -E 'DN:|sambaUserWorkstations:'

If sambaUserWorkstations contains only $, the workstation restriction from the exam is still in place. Use the DN: line to identify the account to correct.

Root Cause

When an exam starts, UCS@school sets sambaUserWorkstations to $ on regular accounts that had no workstation restrictions. For accounts with existing restrictions, it prefixes each allowed workstation name with $. If these values remain after the exam, they can prevent Windows sign-in.

The cleanup script restores the settings on the regular account when it processes the corresponding exam account. If the exam account was already deleted manually, a later cleanup run cannot restore the regular account through this step.

Solution

Once the student is no longer taking part in any active exam, remove the standalone $ on the Primary. Replace <USER-DN> with the DN of the regular account from the previous command.

udm users/user modify --dn '<USER-DN>' --remove 'sambaUserWorkstations=$'

If the field contains entries such as $PC01, restore the original workstation names (for example, PC01) and preserve the pre-exam restrictions.

Wait for the change to replicate to the school Replica, then test sign-in with the regular account.

Related: Problem: Students hang in Exam Mode covers cleanup while exam accounts or other exam settings are still present.

This topic was automatically closed after 24 hours. New replies are no longer allowed.