Excellent news. The protected mode adds further security around the
credentials you are using to secure the connection (key and secret). It
should be fine with this disabled - just make sure you keep the details
private!
Stephen
On 05/03/2014 12:40, Troels Jon Bugge wrote:
> We using Moodle 2.4 and LTI version 1.0.0.10. But changing the value of protected from 1 to 0 in lti_consumer got it working!
> Is it OK to run without this requirement?
>
> We are planning to upgrade the Moodle version within a couple of months so this will probably fix the issue.
>
> Troels
>
>
> -----Oprindelig meddelelse-----
> Fra: WebPA [mailto:[log in to unmask]] På vegne af Stephen P Vickers
> Sendt: 5. marts 2014 12:58
> Til: [log in to unmask]
> Emne: Re: SV: SV: SV: LDAP integration with WebPA v2
>
> See my previous email, but the debug data you provided suggests to me that you are not using the core LTI functionality provided by Moodle.
> What LTI module (and version) are you using?
>
> Stephen
>
> On 05/03/2014 11:36, Troels Jon Bugge wrote:
>> Here is the debug data;
>>
>> oauth_version = 1.0
>> oauth_nonce = *deleted*
>> oauth_timestamp = 1394017325
>> oauth_consumer_key = *deleted*
>> resource_link_id = 2
>> resource_link_title = Webpa test (med basic lti)
>> resource_link_description = test user_id = 7 roles = Learner
>> context_id = 90 context_label = Testkursus context_title = Testkursus
>> launch_presentation_locale = da launch_presentation_document_target =
>> window lis_result_sourcedid =
>> 269fdeccab0f2b107bd6aa019852e8066495cae73030c63e0815905245ea5403:::7::
>> :2 ext_ims_lis_basic_outcome_url =
>> http://campus.aams.dk/mod/basiclti/service.php
>> ext_ims_lis_memberships_id =
>> 269fdeccab0f2b107bd6aa019852e8066495cae73030c63e0815905245ea5403:::7::
>> :2 ext_ims_lis_memberships_url =
>> http://campus.aams.dk/mod/basiclti/service.php
>> ext_ims_lti_tool_setting_id =
>> 269fdeccab0f2b107bd6aa019852e8066495cae73030c63e0815905245ea5403:::7::
>> :2 ext_ims_lti_tool_setting_url =
>> http://campus.aams.dk/mod/basiclti/service.php
>> lis_person_name_given = Troels
>> lis_person_name_family = Bugge
>> lis_person_name_full = Troels Bugge
>> lis_person_contact_email_primary = [log in to unmask] ext_lms = moodle-2
>> oauth_callback = about:blank lti_version = LTI-1p0 lti_message_type =
>> basic-lti-launch-request ext_submit = Press to launch this activity
>> oauth_signature_method = HMAC-SHA1 oauth_signature = *deleted*
>>
>>
>> Troels
>>
>>
>>
>>
>> -----Oprindelig meddelelse-----
>> Fra: WebPA [mailto:[log in to unmask]] På vegne af Stephen P Vickers
>> Sendt: 5. marts 2014 09:47
>> Til: [log in to unmask]
>> Emne: Re: SV: SV: LDAP integration with WebPA v2
>>
>> Modules are created automatically when you launch from a VLE. To get a more detailed error message on launch, include a custom parameter named "debug" with a value of "true".
>>
>> Stephen
>>
>> On 05/03/2014 08:43, Troels Jon Bugge wrote:
>>> I have now installed the LTI Connector on the WebPA server. The LTI Admin settings is available from the menu in WebPA so the mod is successfully installed.
>>>
>>> I made a new source with a key and a secret and enabled it. But when I try to change source and select the new source I just created, I get an error "No modules exist for this source". I looked at your documentation and came across this; "When a module is selected which provides support for the unofficial LTI memberships service, the sync data menu option will appear in the Admin menu." - How do I make a module which is provides support for LTI?
>>>
>>> In Moodle I've installed the basic LTI mod and created the activity and provided it with the settings (key, secret, toolname and tool url) which I typed in when creating the source in WebPA. I followed the description you have provided in the "WebPA-Moodle2"-documentation. When I add the WebPA tool to a course and try to access it, the WebPA site pops up as expected, but I get and error saying; "Error: Sorry, there was an error connecting you to the application.". The same error I get if I access the LTI-mod directly at http://my.domain.com/webpa/mod/lti/index.php. Could this error be related with the fact that there is no module associated with the LTI-mod?
>>>
>>> All the changes you suggested when tried LDAP-configuration I have changed back to the original settings.
>>>
>>>
>>>
>>> Med venlig hilsen/Kind regards
>>>
>>> Troels Bugge
>>> IT-medarbejder/IT-employee
>>> AARHUS MASKINMESTERSKOLE
>>>
>>> Direkte tlf./Phone: +45 4122 7164
>>>
>>> www.aams.dk
>>>
>>>
>>>
>>>
>>> -----Oprindelig meddelelse-----
>>> Fra: WebPA [mailto:[log in to unmask]] På vegne af Stephen P
>>> Vickers
>>> Sendt: 4. marts 2014 15:13
>>> Til: [log in to unmask]
>>> Emne: Re: SV: LDAP integration with WebPA v2
>>>
>>> If you're getting a blank page I strongly suspect you should also be getting an error message in the PHP log files; if not, ensure that PHP error logging is turned on. Most likely there is a syntax error in one of the PHP files. Sorry, I do not have access to an LDAP server to test this at my end.
>>>
>>> If you're looking to integrate with Moodle then I would definitely recommend that you look at using LTI; the connector can be found at:
>>>
>>> http://www.spvsoftwareproducts.com/php/webpa-lti/
>>>
>>> and if you're interested in a solution which allows the synchronising of enrolments and groups then check the guide available from:
>>>
>>>
>>> http://celtic-project.org/Project_blog/2013/06/WebPA_and_Moodle_2
>>>
>>> Stephen
>>>
>>> On 04/03/2014 13:52, Troels Jon Bugge wrote:
>>>> Hi Stephen,
>>>>
>>>> Thank you for your response.
>>>>
>>>> 1. $LOGIN_AUTHENTICATORS[] = 'LDAP'; is not commented out.
>>>> 2. I replaced the two lines. Also tried changing the "displayname" and "givenname".
>>>> 3. I deleted (outcommented) the function 4. copied the new
>>>> class_ldap_authenticator.php to the directory
>>>>
>>>>
>>>> When I try to login I'm forwarded to login_check.php which gives me
>>>> a blank page so no luck :(
>>>>
>>>> The WebPA is also to be integrated with Moodle, so maybe there is an easier way to get this working? Maybe without getting it connected to LDAP but just Moodle.
>>>> I have read that you also have developed a LTI Connecter which can be used with Moodle - could that be a solution to the problem?
>>>>
>>>> Unfortunately I'm not able to find documentation to get LTI Connecter for WebPA v2 integrated with Moodle. Do you know of any documentation?
>>>>
>>>>
>>>> Med venlig hilsen/Kind regards
>>>>
>>>> Troels Bugge
>>>> IT-medarbejder/IT-employee
>>>> Aarhus School of Marine and Technical Engineering
>>>>
>>>> Direkte tlf./Phone: +45 4122 7164
>>>>
>>>> www.aams.dk
>>>>
>>>>
>>>>
>>>>
>>>> -----Oprindelig meddelelse-----
>>>> Fra: WebPA [mailto:[log in to unmask]] På vegne af Stephen P
>>>> Vickers
>>>> Sendt: 4. marts 2014 14:21
>>>> Til: [log in to unmask]
>>>> Emne: Re: LDAP integration with WebPA v2
>>>>
>>>> I believe that the last time I tried using LDAP it was working; try making the following changes:
>>>>
>>>> 1. inc_global.php: ensure the following line is not commented out:
>>>>
>>>> $LOGIN_AUTHENTICATORS[] = 'LDAP';
>>>>
>>>> 2. inc_global.php: replace the following lines:
>>>>
>>>> $LDAP__INFO_REQUIRED = array('displayname','mail','sn'); // Name of
>>>> attribute to use to check user type (via function below)
>>>> define('LDAP__USER_TYPE_ATTRIBUTE', 'description');
>>>>
>>>> with
>>>>
>>>> // Mapping of LDAP server attribute names (WebPA name => LDAP
>>>> attribute
>>>> name)
>>>> $LDAP_INFO_PARAMETERS = array('forename' => 'displayname',
>>>> 'lastname' => 'sn',
>>>> 'email' => 'mail'
>>>> );
>>>> (Note that the above LDAP attribute names may need to be adjusted to
>>>> fit the names used by your LDAP server. For example, I think I had
>>>> to use "givenname" for "displayname" for one LDAP server.)
>>>>
>>>> 3. inc_global.php: delete the get_LDAP_user_type() function.
>>>>
>>>> 4. class_ldap_authenticator.php: replace with the attached copy.
>>>>
>>>> Stephen
>>>>
>>>> On 04/03/2014 12:30, Troels Bugge wrote:
>>>>> Hi everybody,
>>>>>
>>>>> I have installed WebPA and would like to integrate it with our LDAP. I have tried almost every setting I can think of, but I have had no succes with the integration. From what I can read from the errors I have established connection to our LDAP (im not presented with a connection error), I get a "Your username and password were rejected. Please check your details and try again.", when I tried logging in with a LDAP user. If I use the local db user, the login is successful.
>>>>>
>>>>> So here's my questions :)
>>>>>
>>>>> Have anybody successfully made the integration with LDAP using WebPA v2?
>>>>> If so, are there any specific modifications I have to do ind our LDAP to get it working?
>>>>>
>>>>> My ldap configurations are the following:
>>>>>
>>>>> define(LDAP__HOST', "myldap.my.domain.com"); define(LDAP__PORT',
>>>>> 3268); define(LDAP__USERNAME_EXT', [log in to unmask]);
>>>>> define(LDAP__BASE', 'dc=my dc=domain dc=com');
>>>>> define(LDAP__FILTER', 'name={username}*');
>>>>> define(LDAP__USER_TYPE_ATTRIBUTE',
>>>>> 'description'); define(LDAP__DEBUG_LEVEL', 7);
>>>>> define(LDAP__AUTO_CREATE_USER', TRUE);
>>>>>
>>>>> I would appreciate any help :)
>>>>>
>>>>> Thank you!
>>>>>
>>>>> Regards,
>>>>> Troels Jon Bugge
>>>>> Aarhus School of Marine and Technical Engineering Aarhus, Denmark
>>>>>
>>>>
>>>
>>
>
|