Did you find a way to integrate Moodle and your HRMIS?
Did you find a way to integrate Moodle and your HRMIS?
Hi
I have created a webservice and I link it via zapier. My concern is the url in the post command sends the token in plain text in the url??
Isn't this a security issue??
Eg the url looks like below
Hi Dan,
i am not the security guy. But you shouldn't use "http" anymore. There is no reason for that.
If you allow this the login page is far more insecure than your Webservice.
If you use "https" with proper certificate validation your webservice url goes encrypted through the net.
best regards
Andreas
Hi Andreas
Thank you for explaining it to me in plain english! I was concerned that sending the key it could be read, but if encryted then that makes sense. On my production server it is https, so the example I gave was my test one that is http so all good!
Regards
Dan
Hi all,
I use core_user_create_users function to create a user, and it works perfectly,
but when email adresse exist, then i have got a message "incorrect parameter" and in debug : "this email exist"
So i want to check by webservice if a email existe and or something like : "getuseridbyemail function" that can return me an id of a specific email.
I don't want to check it directly by SQL,
Thanks for your help
Hi
Is anyone able to suggest how I create an event that would populate a user id field?
EG An event ON coursecompletion IF course ID=X or Y then update customfield checkbox to 1
I have no idea where to start,
Thank you kindly
Dan
Hi All,
I'm trying to retrieve a list of enrolled users for a particular course using python, but am having problems defining the options.
I can post the following:
{'courseid': 96, 'options': [{'name': 'userfields', 'value': 'role'}, {'name': 'userfields', 'value': 'username'}], 'wstoken': 'MY_TOKEN', 'wsfunction': 'core_enrol_get_enrolled_users', 'moodlewsrestformat': 'json'}
but get the response:
{'exception': 'invalid_parameter_exception', 'errorcode': 'invalidparameter', 'message': 'Invalid parameter value detected', 'debuginfo': "options => Invalid parameter value detected: Only arrays accepted. The bad value is: 'value'"}
I've tried a number of different ways of presenting the options, but from my understanding, the above *should* work.
On the other hand, this works as expected:
curl -X POST 'https://mymoodlesite/webservice/rest/server.php' -d 'courseid=207&options[0][name]=userfields&options[0][value]=username&options[1][name]=userfields&options[1][value]=roles&wstoken=MY_TOKEN&wsfunction=core_enrol_get_enrolled_users&moodlewsrestformat=json'
Am I missing something obvious?
Thanks for your time in advance.
I would like to use a function "core_grede_get_grades", however it DEPRECATED so I am testing all different external service functions.
At this point, I realize I have to make an external service to get data which I would like to have, because in users section, ID number is not the id number in system and it doesn't allow me to change.
My question is as shown below.( and sincerely apologise for laziness)
1. is there any way to change external services?
2. if yes, would you guys please tell me where all these libraries for grading?
3. if no, I would like to know where i can implement the external function. ( I have a variety of input values)
Thanks for your time to read this silly questions.
Hello people.
I have an urgent demand. In my business, intranet authentication is done through LDAP,
and I need to do it on the Moodle platform as well. Only, I need to include in it the work schedule
of the employee. Therefore, the employee will have to validate the access with registration / password
and automatically, will be pulled his working hours and if, in compliance the employee can have access
to the platform moodle, otherwise will have access blocked, because it is not on time. Work What I still
can't understand is whether this modification is done in LDAP or MOODLE itself.
Our moodle hangs and shows this error message
Error message "Web server software (Apace/2.4.29 (Unix) OpenSSL/1.0.2k-fips PHP/7.2.16) is not supported, sorry."
What does it mean? How can we fix it and prevent it from occurring again?
Is that an Apache error screen you see or a Moodle error screen? And is this a copy and paste error in reporting the error?
What does it mean?
Yep! It's true! Moodle is looking for 'Apache' ...
In 20+ years working with Apache on Linux (some Ubuntu, but mostly Fedora/RH Family/CentOS) I have never seen, if Apache server signature left on, a report of:
(Apace/2.4.29 (Unix) OpenSSL/1.0.2k-fips PHP/7.2.16)
Note the bolded above. Now if Apache server signature left on (which should be off) and one forces a simple 404 error (not found), the server would show and should show if configured for ServerTokens set to OS:
(Apache/2.4.29 (Unix) OpenSSL/1.0.2k-fips PHP/7.2.16)
Note the missing 'h' in what you report from your server?
How can we fix it - possibly see below!
For for you in investigating config of your server:
ServerTokens
Configures the Server HTTP response header. Different ServerTokens directive options are following (add or modify httpd.conf file or apache.conf):
Prod or ProductOnly – Server sends (e.g.): Server: Apache
ServerTokens Prod
Major – Server sends (e.g.): Server: Apache/2
ServerTokens Major
Minor – Server sends (e.g.): Server: Apache/2.2
ServerTokens Minor
Min or Minimal – Server sends (e.g.): Server: Server: Apache/2.2.4
ServerTokens Min
OS – Server sends (e.g.): Server: Apache/2.2.4 (Ubuntu)
ServerTokens OS
Full or not specified – Server sends (e.g.): Server: Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.4
ServerTokens Full
ServerTokens setting applies to the entire server, and cannot be enabled or disabled on a virtualhost-by-virtualhost basis.
For reference:
https://www.if-not-true-then-false.com/2009/howto-hide-and-modify-apache-server-information-serversignature-and-servertokens-and-hide-php-version-x-powered-by/
And lastly ... prevent it from occurring again?
Since things like that really don't happen all by themselves, suggest server admin needs to quit messin' with config!
Major piece of advice ... show as little as possible to those that would do harm to your server.
Now I could be all wrong. Been messin' with anything lately?
'SoS', Ken
Hi
Is there any documentation or would anoyone be able to assist with syntax for webservices api for updating a students grades.
I'm trying to update a students quiz grade but don;t know some of the vairables...
Wht is "component" below referring to?
Activity ID?
&wsfunction=core_grades_update_grades&moodlewsrestformat=json&source=ap&courseid=252&component=mod_url&activityid=12637&itemnumber=0&itemdetails[itemname]=Activity&itemdetails[idnumber]=0&grades[0][studentid]=14289&grades[0][grade]=79
Thank you
Dan
Interesting ... typical CentOS 7 runs either httpd (apache) or nginx - but could run LIghtspeed other as well.
This
/usr/sbin/httpd -V
no such command
shows you are not running apache (httpd daemon)
netstat -tulpn | grep :80 (or :443)
whatis httpd
or whatis nginx
Are we trying to run a loadbalancer?
And this on a server where you had moodle running already?
Confused!
'SoS', Ken
Also noticed the ! in front of repos.
Suggest refreshing the repos ... yum clean all
yum check-update
will rebuild repos.
'SoS', Ken