Skip to content

Automatic deactivate users doesn't work when Import disabled users is unchecked. #208

@absoffthewake

Description

@absoffthewake

According to the documentation:

Automatic deactivate users
During the first synchronization from AD to WordPress, the Active Directory users employeeA, employeeB and employeeC are imported. Two weeks later you run the import again, but this time employeeA is deactivated in Active Directory for some reason. employeeA will now be automatically deactivated in WordPress by ADI.

This does not work as stated. If Import disabled users is unchecked, the user is skipped and left enabled. The expected result is the user should be marked as disabled in Wordpress if the user is disabled in active directory.

LOG
2025-02-01T11:42:12.644909+00:00 [DEBUG] Dreitier\Ldap\Connection::findAttributesOfUser [line 424] UserInfo for user 'UserQuery={principal='',isGuid='1'}': cn={test}, sn={Laast}, givenname={test}, displayname={This is Test!}, objectguid={}, useraccountcontrol={514}, objectsid={ }, samaccountname={test}, userprincipalname={test@.com}
2025-02-01T11:42:12.645084+00:00 [INFO] Dreitier\Nadi\Synchronization\WordPressSynchronizationService::synchronizeUser [line 428] Skipping the import of test with GUID: "
" , because the user is deactivated in Active Directory and "Import disabled users" is not enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions