Hi all,
I have a weird problem where I need your help. The short version is that all course images are displayed correctly to users that have been created MANUALLY, however they are all broken for users authenticated through LDAP.
The long version: all course images that are correctly displayed to MANUALLY created moodle users are not shown for users authenticated through LDAP, independent of their internal role. This affects only course images displayed using file.php (e.g. http://myserver/moodle/file.php/3/test.jpg), hardcoded images e.g. from the theme directory are displayed correctly to all users. If I paste the URL for such an image into the browser directly, it displays the source code of the image (weird characters). This happens on all browsers. However, it does not seem to be a server / file permission / browser / role issue as the moodle system and LDAP work correctly apart from that issue.
We tracked the error further down and found out that it is at least on first sight related to the value of the field 'auth' in the table 'mdl_user'. If I change the 'auth' value of an LDAP user from 'ldap' to 'manual', the images are displayed correctly! Very strange, overall as there seem to be no differences between a manual and an LDAP user apart from that auth type field that should not influence their image display rights. But as changing all users to manual cannot be the solution, how can I solve the issue?
System: Solaris 10, Apache 2.2.3, PHP 5.2.0, MySQL 5.0.33
Note: this error has also been posted in the issue tracker:
http://tracker.moodle.org/browse/MDL-10429