don't log password
set authmethod to 'None' for empty user and password (empty authmethod
leads to error)
fate #316261
improve ipEqual
remove leading and trailing whites from IP