# Login failure exceptions with user authentication

If user authentication is turned on and a valid user name and password are not provided, SQLException 08004 is raised.

    ERROR 08004: Connection refused : Invalid authentication.

Parent topic: Configuring user authentication
Related concepts
Configuring LDAP authentication
Configuring NATIVE authentication
Specifying authentication with a user-defined class
Programming applications for Derby user authentication
Configuring Network Server authentication in special circumstances
Related reference
List of user authentication properties