Moodle

upload users doesn't support auth plugins

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Not a bug
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/s: Authentication
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

The admin/uploadusers file which takes a csv file and creates user accounts in the database merely triggers update_record('user' or insert_record functions rather than using the auth plugin user_create and user_update functions.

My feeling is that it should support the plugins, because that way I could batch create users with the default site plugin and call its extra functionality. Or is it intended only for basic sites?

Issue Links

Activity

Hide
Iñaki Arenaza added a comment -

Jenny,

upload users is intented to be used with the internal (i.e., manual) authentication plugin. If you are using external authentication plugins (database, ldap, etc.) there are other ways to batch import users: auth_db_sync_users.php, auth_ldap_sync_users.php, etc.

So I'd say this is not a bug.

Saludos. Iñaki.

Show
Iñaki Arenaza added a comment - Jenny, upload users is intented to be used with the internal (i.e., manual) authentication plugin. If you are using external authentication plugins (database, ldap, etc.) there are other ways to batch import users: auth_db_sync_users.php, auth_ldap_sync_users.php, etc. So I'd say this is not a bug. Saludos. Iñaki.
Hide
Petr Škoda (skodak) added a comment -

What a coincidence, I am just rewriting the user upload page....

Show
Petr Škoda (skodak) added a comment - What a coincidence, I am just rewriting the user upload page....
Hide
Petr Škoda (skodak) added a comment -

Hello, again - I have committed a bit reworked user upload - it now at least detects unsupported operations related to auth plugins.

I agree with Iñaki that this script is not supposed to work with ldap and similar plugins.

Show
Petr Škoda (skodak) added a comment - Hello, again - I have committed a bit reworked user upload - it now at least detects unsupported operations related to auth plugins. I agree with Iñaki that this script is not supposed to work with ldap and similar plugins.
Hide
Jenny Gray added a comment -

OK thanks for the advice. I have my own auth plug-in, so I'll take a look at what ldap does and copy a bit.

Show
Jenny Gray added a comment - OK thanks for the advice. I have my own auth plug-in, so I'll take a look at what ldap does and copy a bit.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: