Fix password auth for CURL-based connections