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

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

$
0
0

by Aysar Hirzallah.  

Dear Emma, 


Appreciate your reply, I have tried the same with sync plus.plugin it was secured successfully but the total number of records created was matching the same one crated manually so there is around 350 Users but still not synced even from my LDAPserver ....


Any idea's ??


Regards


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

$
0
0

by Emma Richardson.  

Yes, turn debugging on!

Oauth 3.2 Help!

$
0
0

by Gerardo Demera.  

Hello,

Im trying to setup the google Authentication in my moodle site, i did all the step create my project in google console, create the credentials for the client id and secret id and enable the Google+ API but when i trying to log in via google give me an error: The OAuth client was not found. 

Capture form the error:Error

Re: Oauth 3.2 Help!

$
0
0

by Ken Task.  

First, suggest moderators might consider the op has shared too much info.

But, without that info, may have never had a specific suggestion as to how to fix and what to check.

You are using a plugin for Google Oauth2 that is NOT part of core but an addon (the built in not present in version 3.2).    That plugin did show the call back url you have to enter in the Google end setup.  Make sure that callback url is correct on the Google end.

Note the lines above that show values for variables ... see the client id= has a 'space' before the ID number.

So in your Moodle config, check the setup of both the key and the secret.   Hard to see but there could be a space at the beginning of both the secret and the key ... as well as a space at the end of each of those.

Remove the spaces at beginning and at end of both secret and key then save.   Then logout and TIA (try it again).

Also, your server is behind 'CloudFlare'.   Is there any setting you might need to change in your setup of CloudFlare?    Can't help ya with that one.

'spirit of sharing', Ken


Re: Oauth 3.2 Help!

$
0
0

by Gerardo Demera.  

Thx,

I removed the blank spaces and problem resolved.

Re: Oauth 3.2 Help!

$
0
0

by Ken Task.  

Great!   Good to hear it.   Consider marking the response that helped as 'useful' ... helps me 'earn' my badges! ;)

Also ... be forewarned ... when you upgrade to 3.3/3.4 there will be issues with the 3rd party plugin you are using and the core code which includes config of Oauth2 services ... Google is one.

Advise getting a look at your mdl_user table now to see how users that authenticate with your addon now.  That info will be useful when planning/doing a conversion of authentication of existing users in your system such that those users do NOT need to be removed nor do those users need to create a new account ... ie, their row in mdl_user keeps the same ID number (which means any work submitted, quiz taken, certs acquired, etc.) won't be orphaned or lost.

'spirit of sharing', Ken


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

$
0
0

by Aysar Hirzallah.  

i got this error this time 



Execute scheduled task: LDAP users sync job (auth_ldap\task\sync_task)
... started 10:39:46. Current memory use 9.9MB.
Connecting to LDAP server...
Creating temporary table tmp_extuser
.....................Got 21 records from LDAP
No updates to be done
User entries to be added: 20
	Inserted user android id 86
... used 38 dbqueries
... used 0.10443687438965 seconds
Scheduled task failed: LDAP users sync job (auth_ldap\task\sync_task),The given username contains invalid characters
and this is what appears in the logs 


Failed to send an email from the user with id '-10' to the user with id '85' due to the following error: "Could not instantiate mail function.".

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

$
0
0

by Emma Richardson.  

Ok, so now it tells you - you have a user with a username that contains invalid characters.  Two options, in user settings you can allow special characters in usernames or you can find the offending user and fix it in LDAP.  I find that sometimes I get an errant space in a username and that will have this effect.

The mail problem is something else.  You do not have your outgoing mail set up correctly.


Re: Help for a fix: Unable to manually edit students due to "authentication plugin radius not found"

$
0
0

by Giacomo Nalli.  

Dear John,

I'm Giacomo and I'm trying to configure RADIUS Auth for Moodle.

I install the plugin, and now i try to install the extensions like explained on this link: https://docs.moodle.org/32/en/RADIUS_authentication

Because of php5-auth-pam is deprecated, how I can install this module to permit Radius to work in Moodle?

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

$
0
0

by Aysar Hirzallah.  

Dears Emma,


Thanks for your help, we kept digging on the root cause and we found that an issue with the account attributes mapping configurations in addition to access limitation to the domain OUs.


Appreciate your help and everyone else help.

Redirection issue

Re: Redirection issue

$
0
0

by Leon Stringer.  

Just a warning here: the links redirect to an adult web site (NSFW). I'm assuming this post isn't an attempt to get us to click the links as there really is a Moodle site involved.

It looks like the server has been compromised, there appears to be a payload in one of the YUI JavaScript files causing the redirect.

Generally if your server may have been compromised I'd recommend rebuilding it from scratch if at all possible.

At the very least the Moodle source code should be replaced with a known good copy from the upstream repository.

Which version of Moodle is in use?

Re: Redirection issue

$
0
0

by John Doe.  

Hello Sir,



I can do following thins with my Moodle.?





  1. Configurable permissions/roles - Create and manage new

  roles/permissions

  2. Create, change and view user information/profile

  3. Ability to assign multiple roles to one user account

  4. Ability to create and manage user groups

  5. User can belong to multiple user groups

  6. User can belong to multiple domains

  7. Define student to supervisor relationship

  8. Secure account request form that includes a visual capture device

  (CAPTCHA) to prevent spamming

  9. Ability to view user site activity, including dates, times and pages..





please give me suggetion regarding this..







On Mon, Dec 4, 2017 at 4:46 PM, Leon Stringer (via Moodle.org) <

Re: Redirection issue

$
0
0

by Leon Stringer.  

I don't understand the question.

If you're asking for advice on making your Moodle site secure against exploits the best suggestion is to follow these recommendations.

If you're asking for more general help on using Moodle then the documentation is the best starting place, followed by some training if you need it.

If you need further help with a specific issue then these forums are a good place to start.

Re: Import AD users to Moodle3.2 automatically

$
0
0

by Sam Adams.  

thanks for your respond.

I am using LDAP server (Sync Plus) and I am not sure how can I schedule the task so the import could happen automatically.


Import security groups from AD to Moodle

$
0
0

by Sam Adams.  

Hi,

We are using LDAP server (Sync Plus) to sync the users from AD to the moodle and we want to have some mechanism to assign permissions based on the security groups in AD after importing it from the AD.

Is there any way to implement that?

Or even a way to add members in moodle  groups based on their name? to divide students from teachers?


Thanks 

Re: Import security groups from AD to Moodle

$
0
0

by Emma Richardson.  

LDAP enrollment is built in and allows for course enrollment as teachers or students.  Autogroup plugin will automatically create groups in course based on certain profile fields that you can sync from ldap.

Re: Import AD users to Moodle3.2 automatically

Problem to configure Oauth2 with Microsoft Office365

$
0
0

by Andrés Segovia.  

Hello,

In a Moodle 3.3 installation, I am trying to configure Oauth2 with Microsoft Office365.

I have a dedicated account for that purpose, and I configured the Oauth2 service without errors according to the guide:  https://docs.moodle.org/all/en/Service_OAuth_2_Microsoft

The problem I have is when I want to connect Moodle with Office365, it returns the error:

  error / Could not upgrade oauth token

I was searching on Google and I did not find any reference that could help me.

I validated the secret and the client id several times, to make sure they are correct.

I tried to configure and unconfigure several times, create the secret key several times and always return the same error.

I did not find errors in the related logs.

Can you please help me to solve this problem?

Thank you,
Andrés

Re: Custom Oauth2 Configuration

$
0
0

by Ken Task.  

Well, this is probably waisted data bits/time (cynical, huh?) .... but I'll ask ...

Custom Oauth2 there is Discovery in it's config.   Tool tip on that says if the end points can talk, the IDM system will populate user fields - which it did for two test users.   If not, then Moodle admin needs to manually map user fields fields and endpoints information.  

The manually mapping of fields provides a pick list shown below - the internal being Moodle fields.

internal field names














Know one can use language customization to change their labels ... what shows ... is there a way to change what shows above to reflect the same changes in language?

Looks like this will lead to customizing some core code. :\   Trying to avoid that if at all possible.

Thanks, in advance, Ken


Viewing all 8272 articles
Browse latest View live


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