If you get this message with the web services listening connectors e.g. SOAP or REST:
UserName not defined in database. (158,55)
Then check the Default User ID set for the ANONYMOUS Node (used by IB for web services) and make sure that it is a valid username and that the user account is active (e.g. not locked out).