Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4250466
  • 博文数量: 601
  • 博客积分: 15410
  • 博客等级: 上将
  • 技术积分: 6884
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-16 08:11
个人简介

独学而无友,则孤陋而寡闻!

文章分类

全部博文(601)

文章存档

2020年(1)

2018年(4)

2017年(7)

2016年(42)

2015年(25)

2014年(15)

2013年(36)

2012年(46)

2011年(117)

2010年(148)

2009年(82)

2008年(37)

2007年(41)

分类:

2010-12-01 23:10:33

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

%E8%BA%AB%E4%BB%BD%E9%AA%8C%E8%AF%81&variant=zh-cn



External database authentication

From MoodleDocs

Jump to: ,

Location: Administration > Plugins > Authentication > Manage authentication in 2.0 onwards or Administration > Users > Authentication > Manage authentication in 1.9


This method uses an external database table to check whether a given username and password is valid. If the account is a new one, then information from other fields may also be copied across into Moodle.

This is done by mapping fields at the bottom of the database authentication page. Each data field in the user profile has a text field next to it. Enter the name of the column in the external database that maps to the profile data field.

Update Local - Specifies that the external data will be entered into the local field in question

  • On Creation - specifies that this will only happen on the original login when the account is created for the first time.
  • On Every Login - specifies that changes in the external data will be updated on the local Moodle field in question the next time the user logs in again.

Update External - Specifies just the opposite, meaning changes in the local Moodle field in question will update the corresponding field in the external database

  • Never - Specifies this is disabled
  • On Update - Enables this to happen if a change is made locally (additional configuration is probably required)

Lock Value - Only determines whether the local user can make a change in the Moodle field and does not affect the two settings above.

  • Unlocked - A user can make changes locally in the Moodle field (assumably even if it contradicts the external database the next login would change it again if Update Local is set
  • Locked - A user can never make changes
  • Unlocked if empty - A user can only make changes if the field is not populated already from the external database (this would seem to indicate a user could only enter something into this field once and could not change it after saving)

Additional Notes

  • Some of the things that apply to apply to the External database
    • Set password to "changeme" to force password reset
      • If you do this, it is critical that you provide a URL to change the password!
  • Not all of the fields in the are available for the External Database authentication. The only available fields are the fields listed in the data mapping section of the admin page for the External Database connection.

See also

Retrieved from ""

阅读(2173) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~