Update to work with Silverstripe 3.1

(only tested with LDAP authentication)