Merge change 4686 into donut

* changes:
  Set AuthType to 0 if username is not specified.