Additionally, for the cleanup job to successfully run, the ldap server and port must be cunfigured in the xwikinstance.org/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object.
This provides a very bad usability as this effectively asks the user to duplicate parts of the active directory application in a way that is absolutely not intuitive or easy to use - we normally never ask users to edit this page this way. Instead, the LDAP user cleanup should take the Active Directory configuration into account. Also, the "Active Directory user dn" from the Active Directory application is not used but needs to provided again in the configuration of the LDAP user cleanup.
At the moment, the documentation states:
This provides a very bad usability as this effectively asks the user to duplicate parts of the active directory application in a way that is absolutely not intuitive or easy to use - we normally never ask users to edit this page this way. Instead, the LDAP user cleanup should take the Active Directory configuration into account. Also, the "Active Directory user dn" from the Active Directory application is not used but needs to provided again in the configuration of the LDAP user cleanup.