Moodle

RSS Feed via proxy server using username:password

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.5, STABLE backlog
  • Fix Version/s: None
  • Component/s: RSS
  • Labels:
  • Environment:
    64bit intel - Red Hat Enterprise Linux AS release 4 (Nahant Update 8) - PHP 5.2.5 (cli) - Curl Version : 7.12.1
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_19_STABLE

Description

RSS feeder via proxy server don't work because it does not include credential when calling the proxy. After some tests, i found that putting this line in comments make the RSS call to work again.

lib/filelib.php Line: 236
...
        if (!empty($CFG->proxyuser) and !empty($CFG->proxypassword)) {
            curl_setopt($ch, CURLOPT_PROXYUSERPWD, $CFG->proxyuser.':'.$CFG->proxypassword);
            if (defined('CURLOPT_PROXYAUTH')) {
                // any proxy authentication if PHP 5.1
 >>>        //curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_BASIC | CURLAUTH_NTLM);
            }
        }

Issue Links

Activity

Hide
Dan Poltawski added a comment -

Hi Daniel,

I don't understand what you did to fix the problem?

Show
Dan Poltawski added a comment - Hi Daniel, I don't understand what you did to fix the problem?
Hide
Daniel Pouliot added a comment -

Simply remove (put in comment) the CURL_SETOPT line. Sorry, the description don't keep line break.

Show
Daniel Pouliot added a comment - Simply remove (put in comment) the CURL_SETOPT line. Sorry, the description don't keep line break.
Hide
Dan Poltawski added a comment -

Hmm thats interesting, do you use basic auth or ntlm auth?

Show
Dan Poltawski added a comment - Hmm thats interesting, do you use basic auth or ntlm auth?

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: