fix _get_user AttributeError for LDAP users

fixes #9