Changed the default connection factory to handle null username and passwords.