Since rP39e31385df84f1 we're having issues with LDAP connection. It's caused by the fact that python ldap library does not handle re-binding correctly. So, it's not possible to bind, unbind and bind again on the same LDAP connection. Which we do since the change in set_entry_attributes().
The idea to fix this is to always use a separate connection for Directory Manager operations.