Quantcast
Channel: Authentication
Viewing all articles
Browse latest Browse all 8256

Changing usernames in bulk or filtering text on username input

$
0
0
by Paul Mooney.  

Hi

We have just changed our authentication method from External Database to LDAP

When using the external database, usernames were in the format of {studentno} (a 6-7 digit unique number)

All our current Moodle usernames are stored in this format

I would like for students to log on with their email address which is {studentno}@institution.com. I can get the LDAP plugin to search for {studentno}@institution.com and authenticate against this, we use Microsoft Active Directory and I just match the userprincipaname which is set to {studentno}@institution.com in our AD

However, if i do this the username is not matched to the internal Moodle username as these were all previously set as just {studentno}, we bulk upload students in advance of their courses

Is there a way that I can

  • Bulk change all existing usernames to {studentno}@institution.com ? There may be another problem with this as the default email address for our students is set to {studentno}@institution.com (unless they change it themselves)?
    or
  • Filter the username input to strip out the @institution.com before it maps to the internal Moodle username?

Or if anyone has come across this before, would there be another method?

Many thanks

Paul





Viewing all articles
Browse latest Browse all 8256

Trending Articles



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