Adapted mailfilter-ldap script to the new users API