NWとかLinuxなんかに関する技術的なものを記載してます。。。てかぶっちゃけ。備忘録ですw
一部Solarisとかも書いたりするかもしれませんw
最近は仮想化やストレージなんかにも興味あって手出したりしてますw
カテゴリー
最新記事
(11/29)
(11/24)
(11/24)
(11/24)
(11/23)
カレンダー
01 | 2025/02 | 03 |
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
ブログ内検索
Blogランキング
amazon
ムームードメイン
アクセス解析
2009/03/24 (Tue)
# yum -y install openldap
# yum -y install openldap-servers
# yum -y install openldap-clients
# slappasswd -h {MD5}
New password:
Re-enter new password:
{MD5}AXXXXXXXXXXXXXX
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/samba.schema
# Allow LDAPv2 client connections. This is NOT the default.
allow bind_v2
~~~~以下略~~~~
database bdb
#suffix "dc=my-domain,dc=com"
suffix "dc=mydomain,dc=com"
rootdn "cn=manager,dc=mydomain,dc=com"
#rootdn "cn=Manager,dc=my-domain,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoided. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
# rootpw secret
# rootpw {crypt}ijFYNcSNctBYg
rootpw {MD5}AXXXXXXXXXXXXXX
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /var/lib/ldap
# cp -rf /usr/share/doc/samba-3.0.XX /LDAP/samba /etc/openldap/schema/
とりあえず今日は時間切れ…。ここまでかな…。
残りは明日にでもしよう。
1.OpenLDAPの設定
1-1.OpenLDAPのインストール
# yum -y install openldap
# yum -y install openldap-servers
# yum -y install openldap-clients
1-2.slappasswdを実行
# slappasswd -h {MD5}
New password:
Re-enter new password:
{MD5}AXXXXXXXXXXXXXX
1-3.slapd.confの設定
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/samba.schema
# Allow LDAPv2 client connections. This is NOT the default.
allow bind_v2
~~~~以下略~~~~
database bdb
#suffix "dc=my-domain,dc=com"
suffix "dc=mydomain,dc=com"
rootdn "cn=manager,dc=mydomain,dc=com"
#rootdn "cn=Manager,dc=my-domain,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoided. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
# rootpw secret
# rootpw {crypt}ijFYNcSNctBYg
rootpw {MD5}AXXXXXXXXXXXXXX
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /var/lib/ldap
1-4.samba.schemaをコピー
# cp -rf /usr/share/doc/samba-3.0.XX /LDAP/samba /etc/openldap/schema/
とりあえず今日は時間切れ…。ここまでかな…。
残りは明日にでもしよう。