drastic ldap speedup (update)

related to drastic speedup for nested ldap groups #9022
brackets and else in the same line please