by Howard Miller.
Get it working outside of Moodle.
Find an LDAP search client that will run on your server and make sure it can connect to the LDAP server and find users. Almost always, these things have better error messages than Moodle does.
by Howard Miller.
Get it working outside of Moodle.
Find an LDAP search client that will run on your server and make sure it can connect to the LDAP server and find users. Almost always, these things have better error messages than Moodle does.
by Emma Richardson.
There are normally three possible reasons for this error -
1. The bind user is not entered correctly or the password is not correct
2. The bind user does not have appropriate permissions on the ou specified in the context field
3. The context is not entered correctly
Using your domain admin account is not the best idea but once you get it working you can create a user just for this and then give it the necessary permissions.
by Gun Karagoz.
I can access my moodle instance with ldap users. But I want to sync ldap users to restrict courses before they login. So, I try to use scheduled tasks for syncing LDAP user accounts.
I believe LDAP users sync ( \auth_ldap\task\sync_task) task doesn't work and I cannot not understand why. Last run is always "Never" and Next run is always "ASAP". What may have gone wrong? Is there any log for it?
Moodle 3.1.2+ (Build: 20161020) on Windows.
by Emma Richardson.
Is it enabled? What time frame is it set for? Is cron running?
by John Okely.
After making sure the task is turned on and cron is set up as Emma suggests, you can try running it manually. (If you have console access)
php admin/tool/task/cli/schedule_task.php --execute="\auth_ldap\task\sync_task"
And view the output
by Nano A.
Moodle 3.2.1
Some users are reporting that when they click on "Click to enter text" they are rediected to the top of the page instead of revealing the password field.
Does anyone know how to fix this?
Thanks
by Gun Karagoz.
@Emma Richardson i tried to configured every day / every hour, nothing happened.
@John Okely that was what I was looking for, thanks! now i could understand db configuration error, now ldap sync worked via console (with error)
I'm trying to solve "Scheduled task failed: LDAP users sync job (auth_ldap\task\sync_task),The given username contains invalid characters" . Is there a way to see which "user name" causes this problem?
by Emma Richardson.
Normally it is the name just before the error but that does not always show. If you can download your users to a csv file that is often a good way to find it.
The other thing you can do is to go into your settings and allow additional characters in your usernames. That might resolve it too though I normally find I have an errant space in an username which would still prompt the error.
by Gun Karagoz.
I went through Dashboard > Site administration > Security > Site policies and I set "Allow extended characters in usernames" to true, but still getting same error. It would be nice to see the user causing this problem on console.
by Vijay Shrinivas.
Hello friends,
Request your help in solving this mystery. Our moodle (3.1) hosted using xampp has suddnely stopped syncing with the LDAP server. it was working well untill monday night. We just realised that 4 new users have not been added into the moodle user db.
I noticed the following error, when I manually ran the cron on the browser. I am running cron using the schedule tasks.
We last meddled with moodle when we did manual back up of exisitng courses.
Any help, much appreciated.
Execute scheduled task: LDAP users sync job (auth_ldap\task\sync_task) ... started 14:16:57. Current memory use 13.5MB. Connecting to LDAP server... Creating temporary table tmp_extuser .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. used 787 dbqueries ... used 2.7495169639587 seconds Scheduled task failed: LDAP users sync job (auth_ldap\task\sync_task),Error writing to database Execute scheduled task: Check for updates (core\task\check_for_updates_task)
thank you
Vijay
by Ron Vitug.
Thanks John, I just wondering why it's not directing to the SAML2. It look like there 3 login option.
After I click the Login via SAML2 it's link to our ADFS but got Exception - Responder error.
by Iñaki Arenaza.
Unfortunately, current code doesn't show the problematic user name (in fact, doesn't show any user detail at all). The last name you get in the execution output is the last known good user, not the problematic one. If you want to get the details of the "faulty user", you need to modify the code a bit. Look for a line like this in auth/ldap/auth.php, around line 950 (in Moodle 3.2.1):
$id = user_create_user($user, false);
Then change it to look like this:
try {
$id = user_create_user($user, false);
} catch (Exception $e) {
echo "!!!! Could not add user. Exception details: ".print_r($e, true);
echo "\n!!!! Stopping so you can fix the problematic user...\n\n\n";
die();
}
That should display all the user details, plus the exception details (so you know why Moodle didn't like it), and then stops processing the rest of the users so you can try and fix the problematic user..
Saludos. Iñaki.
by Gun Karagoz.
Thanks Iñaki Arenaza! I found that some of SYSTEM/SERVICE users have $ in username.
It seems I cannot allow $ with site policy, so I need to skip those usernames to sync, is it possible also? I'm not very familiar with LDAP and I'm not the admin of AD, is there way to use some configuration in "User lookup settings" section (to filter out some users)?
by Roger Mepham.
Hi
I would like to allow users to choose the theme they would like to use on the signup page, for example to have an accessible high contrast theme. By setting allow user theme on they can do this from their edit profile page but ideally the drop down menu would also be on the sign up page as well.
Has anyone set this up? Or does anyone have an idea on how to make it work?
All suggestions and comments very welcome.
Thanks
Roger
by Kannan Eswar.
I want to integrate Moodle with Azure Active Directory to support SSO. I don’t have Office 365. Whether Office 365 is mandatory for SSO With Azure AD?
Moodle Version : 3.2.1
Thanks,
Kannan Eswar.
by Howard Miller.
I'd be inclined to check out - https://moodle.org/plugins/block_theme_selector
by Howard Miller.
What sort of authentication is this and is it reproducible?
by Roger Mepham.
Many thanks for the flag, that looks like a great plug-in and the code used might be helpful in getting a theme choice drop down field on the user sign up page.
by Dave Perry.
Azure is basically ADFS in the cloud. Office 365 uses ADFS, so can use Azure as a cloud-based login server.
Moodle has Azure plugins available, so this is what you want (you need the auth_ and block_ versions for some reason):
https://moodle.org/plugins/?q=azure
I've not actually implemented this, but believe you add your moodle site as an Azure application.
by RSA NOC.
Hello All
I have a Server 2008R2 With IIS 7.5 running the Moodle app.
About two weeks ago this server was rebooted and now when users open their browsers they are asked to log in were previously the were automatically logged in.
I have checked LDAP setting and everything seems fine.
I'm new to moodle and did not set up this instance
Anyone can help or provide guidance would greatly be appreciated.