「LDAPユーザ登録」の版間の差分
提供:MoodleDocs
Mitsuhiro Yoshida (トーク | 投稿記録) |
Mitsuhiro Yoshida (トーク | 投稿記録) |
||
41行目: | 41行目: | ||
=== MoodleにおけるLDAPユーザ登録設定 === | === MoodleにおけるLDAPユーザ登録設定 === | ||
上記内容のMoodleにおけるLDAP登録設定は下記のとおりです: | |||
{| cellspacing="0" cellpadding="5" border="1" | {| cellspacing="0" cellpadding="5" border="1" | ||
76行目: | 76行目: | ||
|} | |} | ||
さらに、あなたがLDAP認証を使用しているため、ユーザのMoodle「ID number」をLDAPエントリの「uid」にマップする必要があります。この設定は、Moodleユーザ登録方法ページではなく、LDAP認証ページで行います。 | |||
=== メモ: === | === メモ: === |
2007年6月3日 (日) 18:05時点における版
作成中です - Mitsuhiro Yoshida 2007年1月1日 (月) 06:40 (CST)
LDAPユーザ登録 HOWTO
ここでは、MoodleのLDAPユーザ登録の設定方法に関して説明します。LDAP認証を使用する場合、LDAPユーザ登録はMoodleに最適に動作します。そして私たちは、あなたがすでにLDAP認証をMoodleに設定しているものと仮定します。
前提
- あなたは最新バージョンのMoodleを運用しています。私たちは、バージョン 1.5.2+および1.6devでテストしました。恐らく1.4.5でも同様に動作します。
- あなたはLDAP認証を主認証方法として使用しています。
- それぞれのユーザは、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コンテナ設定
- 2つのLDAPコンテナ、ou=StudentEnrollment および ou=TeacherEnrollment を定義してください。
- それぞれのコースで、StudentEnrollmentおよびTeacherEnrollmentコンテナにLDAPグループエントリ (例 posixGroupエントリ) を作成します。従って、StudentEnrollmentの配下にMath101 posixGropuを作成し、TeacherEnrollment配下にMath101 posixGroupを作成することになります。同様にENG202グループを設定します。
- 定義した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認証ページで行います。
メモ:
- 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.
- 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.
- 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.
- 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).
- User passwords for this setup are defined in the attached .ldif file.
- If you use the attached .ldif file, you'll need to edit the ldap server information (the "dn=" lines).
関連情報
- Using Moodle LDAP Enrollment HOWTO フォーラムディスカッション - 英語
- Using Moodle LDAP Auto enrollment フォーラムディスカッション - 英語
- Using Moodle LDAP nightmare Part II フォーラムディスカッション - 英語
- Using Moodle Moodle + AD + LDAP = Confusion - Help Required and Provided フォーラムディスカッション - 英語