generalized support for passwd based authentication