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

提供:MoodleDocs
移動先:案内検索
15行目: 15行目:
下記コースおよびユーザ定義を設定に使用します:
下記コースおよびユーザ定義を設定に使用します:


* Two courses, '''Math101''' and '''Eng201'''.
* 2つのコース「Math101」「Eng201」
* Two teachers, '''teachera''' and '''teacherb'''.
* 2名の教師「teachera」「teacherb」
* Three students, '''studentd''', '''studente''', and '''studentf'''.
* 3名の学生「studentd」「studente」「studentf」
* studentd and studente are enrolled as students in Math101, and teachera is enrolled as teacher of Math101. studente and studentf are enrolled as students in Eng201, and teachera and teacherb are both enrolled as teachers of Eng201.
* studentd and studente are enrolled as students in Math101, and teachera is enrolled as teacher of Math101. studente and studentf are enrolled as students in Eng201, and teachera and teacherb are both enrolled as teachers of Eng201.



2007年5月31日 (木) 16:22時点における版

作成中です - 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 and studente are enrolled as students in Math101, and teachera is enrolled as teacher of Math101. studente and studentf are enrolled as students in Eng201, and teachera and teacherb are both enrolled as teachers of Eng201.

LDAPコンテナ設定

  1. Define two LDAP containers ou=StudentEnrollment and 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ユーザ登録設定T

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

LDAP Enrollment Variable: Value:
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).

関連情報