Add old password authentication support.

Signed-off-by: Xiaolan.Lee <LeeXiaolan@gmail.com>