def rewrite_user(user):
  if user is None:
    LOG.warn('Failed to rewrite user, user is None.')
  else:
    augment = get_user_augmentation_class()(user)
    for attr in ("get_groups", "get_home_directory", "has_hue_permission"):
      setattr(user, attr, getattr(augment, attr))
  return user
Converts the "backend" into the database connection parameters.
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/auth/backend.py/rewrite_user--crossover with--dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/backends/__init__.py/parse_backend