External Authentication + Editing User Profiles + Naughty Students

External Authentication + Editing User Profiles + Naughty Students

de către Peter Jansen-
Număr de răspunsuri: 2
Put the 3 of them together and you get a big headache big grin

Ok anyhow here's my current situation {kindly let me know if it is possible}

Current Situation
===============
Currently I use external authentication which looks into an external login table. This table however only contains an ID and a PWD.  I understand that is is possible to map the First Name / Last Name / Address etc into moodle however is appears that i may need to join tables which I do no know if moodle or myself are able to do it . So since I am unable to draw the Personal Details from my other table, Upon the first Login, Moodle requests for personal Details of the new student (Name, Address , Description etc) I also understand that this is a one-off request. After saving the changes, it is also possible to go back and modify them.

*phew* ok here's the problem bit

Problem 1
=========
Would it be possible for me to join tables and populate the fields such as "First Name , Last Name etc" so that moodle would not ask the user for their Input? This is because it would not be very pleasant having to deal with 40 students with celebrity names.

Problem 2
=========
Would it be possible to disable the "Edit User Profile" page? This is because as per the previous problem, i do not wish to have my students changing their names.

A possible solution i read was to edit the "Edit Profile" page {user/edit.php} and set the "First Name , Last name" as a label or something. However i did notice that there were different types of "instances" for that page hence I am unsure if that was a possible solution.

Thanks for reading and would greatly appreciate any feedback.


Media notelor: -
Ca răspuns la Peter Jansen

Re: External Authentication + Editing User Profiles + Naughty Students

de către Martin Dougiamas-
Imaginea Core developers Imaginea Documentation writers Imaginea Moodle HQ Imaginea Particularly helpful Moodlers Imaginea Plugin developers Imaginea Testers
1.  You will have to do this externally to produce one table Moodle can use.

2.  You can lock fields in Moodle 1.5:   Admin >> Users >> Authentication.  There is even a "Lock after first time" option.
Ca răspuns la Peter Jansen

Re: External Authentication + Editing User Profiles + Naughty Students

de către Jarkko Leponiemi-
This is exatly like our own situation. Our university (UTA in short) has a separate user database which is used for authentication in almost all of our web applications. Currently, we are using Radius for authentication, and we have implemented a special 'auth/uta' module for authentication.

I have created a separate table 'mdl_uta_user' in the Moodle database. All of the user accounts get dumped to this table from the user database every night. During this process first name, last name and email address of each user will be checked for changes and changed to 'mdl_user' if necessary.

When a new user logs in to Moodle, his/her basic personal data will be automatically copied from 'mdl_uta_user' to 'mdl_user'. Our customized authentication module provides function 'auth_get_userinfo' for this purpose.

The fields (first name, last name) are locked in profile page, as Martin suggested in his post to this discussion.

All of this was relatively easy to implement, and I'm quite reluctant to start using LDAP authentication even though it would be possible with our current user database. BTW: See

http://moodle.org/mod/forum/discuss.php?d=25790