Reinstate 'pattern' in ldap service.  Not sure why its needed.