Ticket 47507 - automember rebuild task not working as expected
Bug Description: If the basedn specified in the task is not beneath the automember scope,
the entry is skipped.
Example:
automember scope: ou=people,dc=example,dc=com
task basedn: dc=example,dc=com --> using this dn will cause
all the candidate entries
to be skipped.
Fix Description: Regardless what the task basedn is, the candidate entry dn needs to be
checked against the scope of the autommeber config.
https://fedorahosted.org/389/ticket/47507
Revewied by: nhosoi(Thanks!!)
(cherry picked from commit d2637ddddc73f66f8ad874a511b4880884d36950)