「LDAPユーザ登録」の版間の差分

提供:MoodleDocs
移動先:案内検索
39行目: 39行目:
#* studente and studentf are a members of the Eng201 group under StudentEnrollment.
#* studente and studentf are a members of the Eng201 group under StudentEnrollment.


=== MoodleにおけるLDAPユーザ登録設定T ===
=== MoodleにおけるLDAPユーザ登録設定 ===


The LDAP enrollment settings in moodle corresponding to the above setup are as follows:
The LDAP enrollment settings in moodle corresponding to the above setup are as follows:


{| cellspacing="0"  cellpadding="5"  border="1"
{| cellspacing="0"  cellpadding="5"  border="1"
! LDAP Enrollment Variable:
! LDAP登録変数
! Value:
!
|-  
|-  
| enrol_ldap_student_contexts:
| enrol_ldap_student_contexts:

2007年6月2日 (土) 15:38時点における版

作成中です - Mitsuhiro Yoshida 2007年1月1日 (月) 06:40 (CST)

LDAPユーザ登録 HOWTO

ここでは、MoodleのLDAPユーザ登録の設定方法に関して説明します。LDAP認証を使用する場合、LDAPユーザ登録はMoodleに最適に動作します。そして私たちは、あなたがすでにLDAP認証をMoodleに設定しているものと仮定します。

前提

  1. あなたは最新バージョンのMoodleを運用しています。私たちは、バージョン 1.5.2+および1.6devでテストしました。恐らく1.4.5でも同様に動作します。
  2. あなたはLDAP認証を主認証方法として使用しています。
  3. それぞれのユーザは、LDAPユーザレコード内に、MoodleユーザプロフィールのIDと合致するuid属性を持っています (この内容は設定は、Moodle管理画面のLDAP認証設定ページで簡単に設定することができます)。

コース設定

下記コースおよびユーザ定義を設定に使用します:

  • 2つのコース「Math101」「Eng201」
  • 2名の教師「teachera」「teacherb」
  • 3名の学生「studentd」「studente」「studentf」
  • studentdおよびstudenteは、Math101に学生として登録されています。そして、teacheraは教師としてMath101に登録されています。studenteおよびstudentfは、Eng201学生として登録されています。そしてteacheraおよびteacherbは、それぞれ今日としてEng201に登録されています。


コース: Math101
教師: teachera
学生: studentd、studente

コース: Eng201
教師: teachera、teacherb
学生: studente、studentf

LDAPコンテナ設定

  1. 2つのLDAPコンテナ、ou=StudentEnrollment および ou=TeacherEnrollment を定義してください。
  2. For each course we define an LDAP group entry (e.g a posixGroup entry) in the StudentEnrollment and TeacherEnrollment containers. Thus, we define a Math101 posixGroup under StudentEnrollment, and we define a Math101 posixGroup under TeacherEnrollment. We define the two Eng201 groups in a similar way.
  3. Enroll students and teachers as members of in the LDAP-groups we just defined. This is done by entering the users uid attribute in the memberUid attribute of the relevant group:
    • teachera is a member of the Math101 group under TeacherEnrollment.
    • studentd and studente are a members of the Math101 group under StudentEnrollment.
    • teachera and teacherb are members of the Eng201 group under TeacherEnrollment
    • studente and studentf are a members of the Eng201 group under StudentEnrollment.

MoodleにおけるLDAPユーザ登録設定

The LDAP enrollment settings in moodle corresponding to the above setup are as follows:

LDAP登録変数
enrol_ldap_student_contexts: ou=StudentEnrollment,dc=ldapserver,dc=tmcc,dc=edu
enrol_ldap_student_memberattribute: memberUid
enrol_ldap_teacher_contexts: ou=TeacherEnrollment,dc=ldapserver,dc=tmcc,dc=edu
enrol_ldap_teacher_memberattribute: memberUid
enrol_ldap_objectclass: posixGroup
enrol_ldap_course_idnumber: cn
enrol_ldap_course_shortname: cn
enrol_ldap_course_fullname: cn
enrol_ldap_autocreate: Yes

Additionally, since you are using LDAP authentication, you should also map the moodle "ID number" of users to the "uid" in the ldap entry of the user. This is done on the moodle LDAP Authentication page (not the LDAP Enrollment page).

メモ:

  1. You do not need to create the courses manually in moodle. If they don't exist, they will be created when the first enrolled user login.
  2. We are using the same string cn and uid in a users LDAP record. This is not necessary, I believe. However, if you use different values, you will need to define the ldap_user_attribute to uid in the LDAP authentication setup.
  3. The value of the group id number (gidNumber) defined for the groups in step 2 of the LDAP Container Setup above is not critical. It is not used in this setup.
  4. The attached .ldif file assumes that users are in the ou=People container in LDAP. You will need to configure your LDAP Authentication setup to reflect this (ldap_contexts variable).
  5. User passwords for this setup are defined in the attached .ldif file.
  6. If you use the attached .ldif file, you'll need to edit the ldap server information (the "dn=" lines).

関連情報