LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by Danny Garner -
Number of replies: 13

I've using the Upload Users method of adding AD users because this is a pilot project that will likely replace Blackboard.  Staff and Students really like it.  However, I went to upload a user from a file yesterday just like I have always been doing and the LDAP option is no longer listed as an option.  Only Manual, No Login and Email Auth are available.  LDAP is obviously still running because my other users are still able to get in and use Moodle.  Something must've happened when I upgraded at the end of November as I haven't had to add a user since the upgrade or I would have noticed this before.  We upgraded from 2.0 to 2.1.  Any ideas would be greatly appreciated.

Attachment moodle_ldap_missing.JPG
Average of ratings: -
In reply to Danny Garner

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by Danny Garner -

I've tried with the 'auth' column and the message was that the LDAP plugin was not supported.  I have disabled it and re-enabled it.  Is there another work around/

In reply to Danny Garner

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by jon catuccio -

Was this an option in 1.9? We have never noticed it in our version of 2.0, and now testing 2.1.

 

Would be very useful to have this option and no password submitted on upload.

In reply to Danny Garner

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by Rosario Carcò -

In my case I had to rise memory limits. See here: http://moodle.org/mod/forum/discuss.php?d=174277

Rosario

In reply to Rosario Carcò

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by William Lu -
Picture of Particularly helpful Moodlers

I don't think the memory limits related to this issue.

In reply to Danny Garner

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by Cameron Penna -

I've had this issue since v2.0.2, but we resolved it by adding the auth field to the csv file with ldap as the entry. Yes it will complain about it not being supported, just ignore it and upload anyway and it works.

Have successfuly done this for the past few months and still works with v2.1.1. I'm pretty certain I even tried on a standalone fresh 2.2 XAMP.

In reply to Cameron Penna

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by William Lu -
Picture of Particularly helpful Moodlers

Dear Cameron,

I don't know how to say my thousands THANKS to you! You saved my life.

You saved Moodle on my school as well. If I can not get the Uploads users done. Our School will get rid of Moodle soon.

Sure, as you said:

  1. Add one column as 'auth', then upload.
  2. Moodle error says: 'auth plug in in not supported here.'. IGNORE it.
  3. 'Continue'..check it , all WORKS!

I will report a bug for this.

Upload users, even LDAP users in file is very IMPORTANT and very USEFULL feature. It should be Kept for ever.

Why? Because, by upload users from a .csv file, which is generated from a spreed sheet, Admin can add users into the right courses/groups/cohorts, before a new term starts.

When new staff and students come to a classroom at the first day, they login and see EVERYTHING in the RIGHT places! Then they can start a class without any hassle.

We NEVER rely on a staff (any staff, no matter they are clever or not) to enroll students into a group/course. It is impossible!

Moodle geeks, please fix the 'Upload Users' problem, add the option for LDAP as in 1.9, and keep this function forever!!!

In reply to William Lu

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by Cameron Penna -

You're most welcome William.

Our department had very lenghty conversations over enrolment methods and came to the same conclusions you did. csv files are quick and clean,

Thanks for reporting the bug to moodle. Lets hope they do keep it working.

In reply to Danny Garner

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by William Lu -
Picture of Particularly helpful Moodlers

I am having exacting same problem. I need to upload hundreds student use LDAP auth as soon as possible.

It is a BIG loss, if the option LDAP disappeared.

I am in Moodle2.2.1, MySql5.0.51/PHP5.3.8.

In reply to Danny Garner

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by William Lu -
Picture of Particularly helpful Moodlers
In reply to William Lu

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by Rosario Carcò -

OK, now I ran into this issue because I extended the built in uploaduser.php to uploadusersandcourses.php with a silent version to be run as nightly cron job uploadusersandcourses_silently.php you will find in these forums.

I am rewriting my code for Moodle 2.3 now and it is vital, that I can choose the auth column in the csv-file to contain either ldap or shibboleth Authentication while creating/enrolling the students and teachers during this unattended job where I create new courses in the first pass through the csv-file and enroll the users in the second pass through the file.

For the moment I added 'ldap' and 'shibboleth' to the code that validates the input columns of the csv-file. But I have no clue, whether this could have any impact on the Moodle-Database.

If you succeeded in importing with ldap auth, then I assume that the user-table didn't change from Moodle 1.9 to 2.x regarding this aspect and so I do not see any reason why the core programmers changed the uploaduser.php code of Moodle 1.9 which admitted/accepted the auth column in the csv-file to be any value of the enabled auth plugins. This code should be restored as soon as possible I think, so as not to hardcode 'manual' as the only possible authorization when uploading users. Any other enabled auth-plugin should be possible as before.

I made an according comment in the mentioned tracker-issue, hoping that a core programmer will answer, as the case was already closed. Aha, might be I have to reopen it first. I'll see if I have the rights to do so.

Rosario

In reply to Rosario Carcò

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
Hi Rosario,

the message is just a warning, not an error. I.e., the users are still added and work flawlessly. And as far as I know, nothing has changed in the mdl_user table (only a couple of additional fields added from 1.9 to 2.3, as far as I can see).

What Petr says in the bug entry (well, my interpretation of what he says) is that the warning is there for a reason. If you upload your users via CSV and then you also use LDAP sync, (some or all of) your CSV-uploaded users might disappear (depending on your LDAP settings).

It's exactly the same situation for external db, CAS, or any other external authentication plugin (specially if they have sync scripts). That's why only the internal authentication plugins are availble in the drop down menu (i.e., they are safe in this respect), and why you get the warning (not error!) with any other external auth plugin.

Saludos.
Iñaki.
In reply to Iñaki Arenaza

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by Rainer Schaufelberger -

Hi

I just found this post because I wanted to know why I can't use "Shibboleth" as authentication for the "Upload users".

In my case users normaly login with shibboleth and enroll themselves into courses.

But I have also courses where we don't use self enrollment.

Therefore I have to upload users manually. Some users are already in Moodle others not. Authentication for new users should be Shibboleth of course.

Why should this not be a "normal task"?

I would appreciate to have this feature in the "Upload users"

In reply to Rainer Schaufelberger

Re: LDAP not listed in Upload Users menu after upgrade from 2.0 to 2.1

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
Repeat after me smile "You can do this right now!"

As I said before, this is just a warning to the administrator. That if she uses any external authentication plugin and upload users manually specifiying that particular plugin, she should know what she's doing and is fully aware of the implications of, e.g., running auth/shibboleth/cli/sync.php (in case that would exist, but you get the idea).

Other than that, it just works (i.e., users are created, enrolled, etc.).

Saludos.
Iñaki.