Quantcast
Channel: Authentication
Viewing all 8271 articles
Browse latest View live

Re: LDAP authentication, Server connection successful but can't login to moodle

$
0
0

by Leon Stringer.  

To answer the question "Is it necessary to add users to moodle database first": no it isn't. If the user doesn't already exist in the Moodle database it will be created on first login if successfully authenticated by AD.

The bind user does not have to be a domain admin.

Some things to check:

  1. Have you got Search subcontexts set to "yes"? This may be the problem if the elearn user isn't in the top of the context specified in Contexts.
  2. Is User type set to MS ActiveDirectory?
  3. Is the LDAPserver plugin actually enabled under Site administrationPluginsAuthenticationManage authentication? (You can configure and test LDAP without having actually enabled this).

LDAP automatically user creation

$
0
0

by Sebastian Mueller.  

Hello community,


our moodle server is connected to the LDAP and works well.

In moodle is the possibility given that users are automatically created,

If I authenticate successfully against LDAP, I get a page where i have to enter:

Name
Las Name
E-Mail adress


Is there a possibility that these fields are automatically received / filled out from LDAP attributes?

Installed Moodle Version: 3.3.2+

Thank you

regards

Re: LDAP automatically user creation

$
0
0

by Emma Richardson.  

Yes, you do that in the data mapping section of the LDAP settings page.

Re: LDAP automatically user creation

$
0
0

by Sebastian Mueller.  

Hello Emma,


that worked for me. Thank you smile

Authenticating 3rd party app in SCORM module

$
0
0

by Nathan Wallis.  

Hi there, 

I have created an application that applies to the educational sector and it primarily runs outside of moodle but I offer the ability to authenticate with Shibboleth or other SAML 2.0 identity providers. 


This is working fine outside of Moodle. 


However, I also offer an export option to SCORM 1.2 module from inside my application so educators can embed my application easily inside moodle. My export generates a simple SCORM package which is just a manifest with a simple html page that contains an iframe to the relevant content inside my application. 


Once the user is inside moodle is there anyway to pass through their credentials to my iframe, or is there a way on my end to pick up anything that moodle might be able to tell me about the authenticated user?  


From what I understand, its not advisable to be displaying the Shibboleth login page inside my iframe and it seems silly to make them login twice if there was a way for me to determine if my website is being loaded inside an iframe on moodle. 


All the best..

OAuth 2 Moodle 3.4 Sync User Details everytime User logs in

$
0
0

by Nischay Mamidi.  

Hi

I currently have configured my Moodle to sign in users using Google via OAuth2. My current issue is the first time a user logs in an account is created with his first name and last name details filled. Now if the user changed his First Name or Last Name in his Google Account and tries logging in to Moodle, Moodle does not update the First Name or Last Name fields.

How can I get Moodle to update all changed fields?


Thanks.

Re: Google reCAPTCHAv2

Re: Ynt: How to use multiple LDAP servers with Moodle 1.8

$
0
0

by Iñaki Arenaza.  

Hi Joan Luis,

find attached a version of the patch that should apply cleanly on Moodle 3.1.7, 3.1.8 and 3.1.9.

Saludos.

Iñaki.


Re: Ynt: How to use multiple LDAP servers with Moodle 1.8

$
0
0

by Iñaki Arenaza.  

And here's a version for Moodle 3.4.

I've changed the way I maintain the patches, which means the way to apply them has changed a bit. Now we just need to perform single step: executing ldapname.php

php ldapname.php ldap2

(substitute ldap2 with the new plugin name you want to use).

Saludos.

Iñaki.

Re: Authenticating 3rd party app in SCORM module

$
0
0

by Nathan Wallis.  

Looks like I am better off looking at LTI rather than wrapping my website in a SCORM wrapper... 

Anyone had more experience with LTI?  Any pitfalls I should watch out for?  Is it common for institutions to adopt LTI & do any disable it for any particular reasons?

Cheers.. 

Re: Google reCAPTCHAv2

$
0
0

by Prashu D.  

Hi Ken


 Sorry for the late reply , I really appreciate you time  and your guidance as i am stuck completely.


 I am still not able to get google recaptcha v2 working on moodle .


 Script is provided by google when you register your domain for recaptcha.


 I am not able to find a file where i can implement  both the client side and server side script.


 With the recaptha v1 we can paste the secret and public key within

Administration> Authentication>Manage authentication>scroll down and you will see ReCAPTCHA public key and  ReCAPTCHA private key and work is done.


 but with google v2 , it is little different where we have to implement client side and server side script and thats where i am stuck.


 Any guidance would be very useful


 Kind Regards


Prashu



 Any


 

Re: Google reCAPTCHAv2

$
0
0

by Ken Task.  

See @marwa's response - in which was linked: https://tracker.moodle.org/browse/MDL-48501

Note the tracker link was a suggestion for improvement and didn't seem to list 2.9 as an affected version?!!

Version 2.9 is no longer supported for anything ... including fixes to code.   Is it time to look into upgrading your site to at least a 3.2 or 3.3?

I don't have a running 2.9 anymore ... did look into and configured recaptcha on a 3.3 ... works as described.   That's v1??????  

The v2 directions found do show something different on google.  

Didn't see any expiration notice for version 1 however.   Can you provide that Google link so that core coders are made aware of upcoming change?

The current file used in Moodle code is in  lib/form/ and called recaptcha.php

Also see:

https://tracker.moodle.org/secure/attachment/43458/moodleorg-recaptcha-hack.patch

If you tinker with your 2.9, however, strongly suggest making a backup of code and DB *before tinkering*.

That's about the extent of my knowledge regarding recaptcha.

'spirit of sharing', Ken


Re: Google reCAPTCHAv2

$
0
0

by Prashu D.  

Hi Ken,

 Thanks I will follow what advice you have provided and will update soon on its progress.

 I think alot of people would be facing this issue as Google Recaptcha v1 is going to expire in March2018

 I will keep the group updated.

Thanking you

 Kind Regards

Prashu

Class "Object" not found

$
0
0

by Michael Rice.  

Recently I upgraded from moodle 3.3.1 to 3.4 and php to 7.0. After the update cron stopped working.  I am getting the error Class "Object" not found from my SSO module. I am using moodle-drupalservices as an SSO between our drupal site and moodle. The code that is throwing the error is $user = new object(); in auth.php. The comment right above the code is "// build the new user object to be put into the Moodle database".

Any ideas on how to fix the error?

Re: Class "Object" not found

$
0
0

by Dan Marsden.  

it's due to your upgrade to PHP 7  - google would probably help but you should be able to change "object()" to "stdclass()" - but you may run into other issues with 3rd party code that isn't supported well.


Re: Class "Object" not found

$
0
0

by Michael Rice.  

Thanks! I wasn't sure if it was the moodle or php update that broke the code.  I will look into stdclass() and make a note in the github repo.

Shorten signup details

$
0
0

by Karim Bhatti.  

Hi there, I'm currently working on a project based on Moodle 3.3 and I'm trying to reduce the required fields (and visually disable the others) at signup to: name, username (here would be great just to get a email), password, password confirmation and country, but I can't find where. Does this needs an external login to be accomplished? Or editing the signup_form.php is needed?


Thanks

Re: Shorten signup details

$
0
0

by Sandipa Mukherjee.  

Hi Karim Bhatti,

You can edit the <your moodle>/login/signup_form.php to achieve this. Username, password, email and name are mandatory field. If you remove one of them then user will not be created. You can remove city, country from here.

Hope this helps you.

Regards,

Sandipa

 

Scheduled task failed: LDAP users sync job),Error writing to database

$
0
0

by Aysar Hirzallah.  

Dears,


Greeting for the day, am facing an issue upon running the LDAP scheduled task here is the error that is getting when running the same.


LDAP users sync job

Execute scheduled task: LDAP users sync job (auth_ldap\task\sync_task)
... started 15:03:08. Current memory use 9.5MB.
Connecting to LDAP server...
Creating temporary table tmp_extuser
........................................................................................................... used 107 dbqueries
... used 0.055817842483521 seconds
Scheduled task failed: LDAP users sync job (auth_ldap\task\sync_task),Error writing to database
Appreciate your opinion on what can be the issue 

Re: Scheduled task failed: LDAP users sync job),Error writing to database

$
0
0

by Emma Richardson.  

Turn debugging on and try it again.  Hopefully you will get a detailed message.

Viewing all 8271 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>