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

提供:MoodleDocs
移動先:案内検索
(Done :-))
 
(同じ利用者による、間の21版が非表示)
1行目: 1行目:
作成中です - [[利用者:Mitsuhiro Yoshida|Mitsuhiro Yoshida]] 2007年1月1日 (月) 06:40 (CST)
== LDAPユーザ登録 HOWTO ==
== LDAPユーザ登録 HOWTO ==


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


=== 前提 ===
=== 前提 ===


# You are running a recent version of moodle. We have tested the setup presented here on versions 1.5.2+ and 1.6dev. It is likely to work on moodle 1.4.5 as well.
# あなたは最新バージョンのMoodleを運用しています。私たちは、バージョン 1.5.2+および1.6devでテストしました。恐らく1.4.5でも同様に動作します。
# You are using LDAP authentication as your primary authentication method.
# あなたはLDAP認証を主認証方法として使用しています。
# Each user in has a uid attribute in the users LDAP record, that matches the “ID number” in the same users moodle profile (this can easily be arranged with a mapping on the moodle LDAP Authentication setup page).
# それぞれのユーザは、LDAPユーザレコード内に、MoodleユーザプロフィールのIDと合致するuid属性を持っています (この内容は、Moodle管理画面のLDAP認証設定ページで簡単に設定することができます)


=== コース設定 ===
=== コース設定 ===


Our setup involves the following course and user definitions:
下記コースおよびユーザ定義を設定で使用します:
 
* 2つのコース「Math101」「Eng201」
* 2名の教師「teachera」「teacherb」
* 3名の学生「studentd」「studente」「studentf」
* studentdおよびstudenteは、Math101に学生として登録されています。teacheraは、教師としてMath101に登録されています。studenteおよびstudentfは、学生としてEng201に登録されています。teacheraおよびteacherbは、それぞれ今日としてEng201に登録されています。
 
 
コース: Math101<br />
教師: teachera<br />
学生: studentd、studente


* Two courses, '''Math101''' and '''Eng201'''.
コース: Eng201<br />
* Two teachers, '''teachera''' and '''teacherb'''.
教師: teachera、teacherb<br />
* Three students, '''studentd''', '''studente''', and '''studentf'''.
学生: 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コンテナ設定 ===
=== LDAPコンテナ設定 ===


# Define two LDAP containers ou=StudentEnrollment and ou=TeacherEnrollment
# 2つのLDAPコンテナ、ou=StudentEnrollment および ou=TeacherEnrollment を定義してください。
# 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.
# それぞれのコースで、StudentEnrollmentおよびTeacherEnrollmentコンテナにLDAPグループエントリ (例 posixGroupエントリ) を作成します。従って、StudentEnrollmentの配下にMath101 posixGropuを作成し、TeacherEnrollment配下にMath101 posixGroupを作成することになります。同様にENG202グループを設定します。
# 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:
# 定義したLDAPグループに、学生および教師をメンバーとして登録します。これは、関連するグループのmemberUid属性にユーザのuidを入力することで登録することができます:
#* teachera is a member of the Math101 group under TeacherEnrollment.
#* teacheraは、TeacherEnrollment配下のMath101グループのメンバーです。
#* studentd and studente are a members of the Math101 group under StudentEnrollment.
#* studentdおよびstudenteは、StudentEnrollment配下のMath101グループのメンバーです。
#* teachera and teacherb are members of the Eng201 group under TeacherEnrollment
#* teacheraおよびteacherbは、TeacherEnrollment配下のEng201のメンバーです。
#* studente and studentf are a members of the Eng201 group under StudentEnrollment.
#* studenteおよびstudentfは、StudentEnrollment配下のEng201グループのメンバーです。


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


The LDAP enrollment settings in moodle corresponding to the above setup are as follows:
上記内容のMoodleにおけるLDAP登録設定は下記のとおりです:


{| 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:
67行目: 74行目:
|}
|}


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).
さらに、あなたがLDAP認証を使用しているため、ユーザのMoodle「ID number」をLDAPエントリの「uid」にマップする必要があります。この設定は、Moodle管理ページにあるユーザ登録ではなく、LDAP認証で行います。


=== メモ: ===
=== メモ: ===


# 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.
# あなたは、Moodleに手動でコースを作成する必要はありません。コースが存在しない場合、ユーザの初回ログイン時に自動作成されます。
# 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.
# ユーザLDAPレコードでは、同じストリングをcnおよびuidで使用します。これは必要ではないと思われますが、あなたが異なる値を設定する場合、LDAP認証設定のuidにldap_user_attributeを定義する必要があります。
# 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.
# 上記LDAPコンテナ設定のステップ2でグループに設定したグループIDナンバー (gidNumber) は、重要ではありません。また、セットアップでも使用されません。
# 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).
# .ldifファイルは、LDAPのou=peopleコンテナにユーザが登録されていることを前提としています。あなたは、LDAP認証設定をこのldap_contexts変数に反映させる必要があります。
# User passwords for this setup are defined in the attached .ldif file.
# この設定において、ユーザパスワードは.ldifファイルに定義されます。
# If you use the attached .ldif file, you'll need to edit the ldap server information (the "dn=" lines).
# あなたが.ldifファイルを使用する場合、LDAPサーバ情報 ("dn="の行) を編集してください。


==関連情報==
==関連情報==

2007年6月4日 (月) 20:59時点における最新版

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. それぞれのコースで、StudentEnrollmentおよびTeacherEnrollmentコンテナにLDAPグループエントリ (例 posixGroupエントリ) を作成します。従って、StudentEnrollmentの配下にMath101 posixGropuを作成し、TeacherEnrollment配下にMath101 posixGroupを作成することになります。同様にENG202グループを設定します。
  3. 定義したLDAPグループに、学生および教師をメンバーとして登録します。これは、関連するグループのmemberUid属性にユーザのuidを入力することで登録することができます:
    • teacheraは、TeacherEnrollment配下のMath101グループのメンバーです。
    • studentdおよびstudenteは、StudentEnrollment配下のMath101グループのメンバーです。
    • teacheraおよびteacherbは、TeacherEnrollment配下のEng201のメンバーです。
    • studenteおよびstudentfは、StudentEnrollment配下のEng201グループのメンバーです。

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

上記内容のMoodleにおけるLDAP登録設定は下記のとおりです:

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

さらに、あなたがLDAP認証を使用しているため、ユーザのMoodle「ID number」をLDAPエントリの「uid」にマップする必要があります。この設定は、Moodle管理ページにあるユーザ登録ではなく、LDAP認証で行います。

メモ:

  1. あなたは、Moodleに手動でコースを作成する必要はありません。コースが存在しない場合、ユーザの初回ログイン時に自動作成されます。
  2. ユーザLDAPレコードでは、同じストリングをcnおよびuidで使用します。これは必要ではないと思われますが、あなたが異なる値を設定する場合、LDAP認証設定のuidにldap_user_attributeを定義する必要があります。
  3. 上記LDAPコンテナ設定のステップ2でグループに設定したグループIDナンバー (gidNumber) は、重要ではありません。また、セットアップでも使用されません。
  4. .ldifファイルは、LDAPのou=peopleコンテナにユーザが登録されていることを前提としています。あなたは、LDAP認証設定をこのldap_contexts変数に反映させる必要があります。
  5. この設定において、ユーザパスワードは.ldifファイルに定義されます。
  6. あなたが.ldifファイルを使用する場合、LDAPサーバ情報 ("dn="の行) を編集してください。

関連情報