Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Authentication
    • Labels:
      None
    • Environment:
      Moodle 2.0 Preview 4+ (20100720), Mac OS X 10.6.4 Server
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      26963

      Description

      LDAP settings reset to version 2.

      Testing the LDAP authentification in Moodle 2.0 I found this fact. It's not a problem for me because it's only a test server. Also I don't get a problem with this because my Moodle server also connects with version 2 to the LDAP server running on the same Mac Server. I don't know if the Mac Server also works with version 2?? The documentations says it should be version 3. So it should be version 3 and I set it to 3 in the LDAP auth settings moodle/admin/auth_config.php?auth=ldap .... but everytime I come back to this page I must see version 2.

      Another server with Moodle 1.9.9+ does not show this problem with LDAP. I'm using the same LDAP server.

      I don't know if this will be a problem for other servers.

        Activity

        Hide
        Iñaki Arenaza added a comment -

        Hi Ralf,

        is this a fresh install of Moodle 2.0 or has it been upgraded from a previous Moodle 2.0 Preview Release? Or is it an upgrade from 1.9?

        Saludos.
        Iñaki.

        Show
        Iñaki Arenaza added a comment - Hi Ralf, is this a fresh install of Moodle 2.0 or has it been upgraded from a previous Moodle 2.0 Preview Release? Or is it an upgrade from 1.9? Saludos. Iñaki.
        Hide
        Iñaki Arenaza added a comment -

        Hummm, you are talking about LDAP _authentication_, don't you? (I was thinking about LDAP enrolment).

        Saludos.
        Iñaki.

        Show
        Iñaki Arenaza added a comment - Hummm, you are talking about LDAP _ authentication _, don't you? (I was thinking about LDAP enrolment). Saludos. Iñaki.
        Hide
        Iñaki Arenaza added a comment -

        Ralf,

        can you try the attached patch and comment back?

        Saludos.
        Iñaki.

        Show
        Iñaki Arenaza added a comment - Ralf, can you try the attached patch and comment back? Saludos. Iñaki.
        Hide
        Ralf Krause added a comment -

        Hi Iñaki,

        I found the following log moodle/admin/report/configlog/

        Wednesday, 21 July 2010, 07:20 am - Admin - enrol_ldap host_url
        Wednesday, 21 July 2010, 07:20 am - Admin - enrol_ldap ldap_version 3
        Wednesday, 21 July 2010, 07:20 am - Admin - enrol_ldap ldapencoding utf-8

        This shows that the ldap_version parameter was set to 3 when the installation script run after the cvs update this morning. But when I look on the configuration page moodle/admin/auth_config.php?auth=ldap then I see the version 2 .... I don't know why.

        Next thing, I 'm not a programmer so I don't know what to do with a diff file and how to patch it automaticly. I set all the differences by hand in my local Moodle4Mac to see the effect. Yes, it works ... the version 3 is shown on the configuration page.

        But I can't say if the function changed because the LDAP authentification also worked before. And it works after I patched the files.

        Ralf

        Show
        Ralf Krause added a comment - Hi Iñaki, I found the following log moodle/admin/report/configlog/ Wednesday, 21 July 2010, 07:20 am - Admin - enrol_ldap host_url Wednesday, 21 July 2010, 07:20 am - Admin - enrol_ldap ldap_version 3 Wednesday, 21 July 2010, 07:20 am - Admin - enrol_ldap ldapencoding utf-8 This shows that the ldap_version parameter was set to 3 when the installation script run after the cvs update this morning. But when I look on the configuration page moodle/admin/auth_config.php?auth=ldap then I see the version 2 .... I don't know why. Next thing, I 'm not a programmer so I don't know what to do with a diff file and how to patch it automaticly. I set all the differences by hand in my local Moodle4Mac to see the effect. Yes, it works ... the version 3 is shown on the configuration page. But I can't say if the function changed because the LDAP authentification also worked before. And it works after I patched the files. Ralf
        Hide
        Iñaki Arenaza added a comment -

        Hi Ralf,

        thanks a lot for trying the changes

        The log from moodle/admin/report/configlog that you show is for the LDAP _enrolment_ plugin, and you were having the problem with the _authentication_ plugin (which is what my diff file changed, and you made it work when you applied the changes.

        So I'm going to apply the patch to CVS (sligthly modified to use the same option name that enrol/ldap uses for consistency).

        Thanks a lot again for the report and the testing!!

        Saludos.
        Iñaki.

        Show
        Iñaki Arenaza added a comment - Hi Ralf, thanks a lot for trying the changes The log from moodle/admin/report/configlog that you show is for the LDAP _ enrolment _ plugin, and you were having the problem with the _ authentication _ plugin (which is what my diff file changed, and you made it work when you applied the changes. So I'm going to apply the patch to CVS (sligthly modified to use the same option name that enrol/ldap uses for consistency). Thanks a lot again for the report and the testing!! Saludos. Iñaki.
        Hide
        Iñaki Arenaza added a comment -

        Fixed in CVS.

        Thanks a lot to Ralf Krause for the bug report and testing!!!

        Show
        Iñaki Arenaza added a comment - Fixed in CVS. Thanks a lot to Ralf Krause for the bug report and testing!!!
        Hide
        Ralf Krause added a comment - - edited

        It works

        I installed the new files from CVS into my test server on my Mac mini.
        With the Admin account I set the LDAP version to 3 and it was 3 the next time I opened the conf page.

        With an old user account I could connect to the Moodle. This user was in my Moodle before you changed the files.
        And I connected with a new LDAP user to the Moodle.

        Everything is looking fine.

        Thanks
        Ralf

        Show
        Ralf Krause added a comment - - edited It works I installed the new files from CVS into my test server on my Mac mini. With the Admin account I set the LDAP version to 3 and it was 3 the next time I opened the conf page. With an old user account I could connect to the Moodle. This user was in my Moodle before you changed the files. And I connected with a new LDAP user to the Moodle. Everything is looking fine. Thanks Ralf

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: