Basic socket authentication.