Flexible user authentication backend for ownCloud