最終更新日: 2019-10-27 日 13:48
ホーム | 文書トップ | 目次

DD-WRT OpenLDAP サーバ設定 スキーマ

Table of Contents

概要

LDAPサーバのスキーマ、主にsamba用のスキーマについて。

DD-WRT のスキーマ

DD-WRT の Entware の openldap-server 2.4.47-2 に含まれているスキーマは下記のようだ

root@DD-WRT:/opt/home/ldapuser# ls -la /opt/etc/openldap/schema/
drwxr-xr-x    2 root     root          4096 Oct 27 13:38 .
drwxr-xr-x    3 root     root          4096 Aug 25 15:39 ..
-rw-r--r--    1 root     root          3512 May 21 20:47 README
-rw-r--r--    1 root     root           764 May 21 20:47 autofs.schema
-rw-r--r--    1 root     root          2036 May 21 20:47 collective.ldif
-rw-r--r--    1 root     root          6190 May 21 20:47 collective.schema
-rw-r--r--    1 root     root          1845 May 21 20:47 corba.ldif
-rw-r--r--    1 root     root          8063 May 21 20:47 corba.schema
-rw-r--r--    1 root     root         20612 May 21 20:47 core.ldif
-rw-r--r--    1 root     root         20499 May 21 20:47 core.schema
-rw-r--r--    1 root     root         12006 May 21 20:47 cosine.ldif
-rw-r--r--    1 root     root         73994 May 21 20:47 cosine.schema
-rw-r--r--    1 root     root          4842 May 21 20:47 duaconf.ldif
-rw-r--r--    1 root     root         10388 May 21 20:47 duaconf.schema
-rw-r--r--    1 root     root          3330 May 21 20:47 dyngroup.ldif
-rw-r--r--    1 root     root          3289 May 21 20:47 dyngroup.schema
-rw-r--r--    1 root     root          3481 May 21 20:47 inetorgperson.ldif
-rw-r--r--    1 root     root          6267 May 21 20:47 inetorgperson.schema
-rw-r--r--    1 root     root          2979 May 21 20:47 java.ldif
-rw-r--r--    1 root     root         13901 May 21 20:47 java.schema
-rw-r--r--    1 root     root          2082 May 21 20:47 misc.ldif
-rw-r--r--    1 root     root          2387 May 21 20:47 misc.schema
-rw-r--r--    1 root     root          6809 May 21 20:47 nis.ldif
-rw-r--r--    1 root     root          7640 May 21 20:47 nis.schema
-rw-r--r--    1 root     root          3308 May 21 20:47 openldap.ldif
-rw-r--r--    1 root     root          1514 May 21 20:47 openldap.schema
-rw-r--r--    1 root     root          6904 May 21 20:47 pmi.ldif
-rw-r--r--    1 root     root         20467 May 21 20:47 pmi.schema
-rw-r--r--    1 root     root          4570 May 21 20:47 ppolicy.ldif
-rw-r--r--    1 root     root         20489 May 21 20:47 ppolicy.schema

README

root@DD-WRT:/opt/home/ldapuser# cat /opt/etc/openldap/schema/README
This directory contains user application schema definitions for use
with slapd(8).

File                    Description
----                    -----------
collective.schema       Collective attributes (experimental)
corba.schema            Corba Object
core.schema             OpenLDAP "core"
cosine.schema           COSINE Pilot
duaconf.schema          Client Configuration (work in progress)
dyngroup.schema                 Dynamic Group (experimental)
inetorgperson.schema    InetOrgPerson
java.schema             Java Object
misc.schema             Miscellaneous Schema (experimental)
nadf.schema             North American Directory Forum (obsolete)
nis.schema              Network Information Service (experimental)
openldap.schema         OpenLDAP Project (FYI)
ppolicy.schema          Password Policy Schema (work in progress)

(略)

samba.schema

探す

CentOS7 の方で samba.schema を探す

$ sudo find . -iname samba.schema
./usr/share/doc/samba-4.8.3/LDAP/samba.schema

コピー

samba.schema と samba.ldif を DD-WRT の方の opt/etc/openldap/schema にscpでコピーする

root@DD-WRT:/opt/home/ldapuser# ls -la /opt/etc/openldap/schema/
drwxr-xr-x    2 root     root          4096 Oct 27 13:38 .
drwxr-xr-x    3 root     root          4096 Aug 25 15:39 ..
-rw-r--r--    1 root     root          3512 May 21 20:47 README
-rw-r--r--    1 root     root           764 May 21 20:47 autofs.schema
-rw-r--r--    1 root     root          2036 May 21 20:47 collective.ldif
-rw-r--r--    1 root     root          6190 May 21 20:47 collective.schema
-rw-r--r--    1 root     root          1845 May 21 20:47 corba.ldif
-rw-r--r--    1 root     root          8063 May 21 20:47 corba.schema
-rw-r--r--    1 root     root         20612 May 21 20:47 core.ldif
-rw-r--r--    1 root     root         20499 May 21 20:47 core.schema
-rw-r--r--    1 root     root         12006 May 21 20:47 cosine.ldif
-rw-r--r--    1 root     root         73994 May 21 20:47 cosine.schema
-rw-r--r--    1 root     root          4842 May 21 20:47 duaconf.ldif
-rw-r--r--    1 root     root         10388 May 21 20:47 duaconf.schema
-rw-r--r--    1 root     root          3330 May 21 20:47 dyngroup.ldif
-rw-r--r--    1 root     root          3289 May 21 20:47 dyngroup.schema
-rw-r--r--    1 root     root          3481 May 21 20:47 inetorgperson.ldif
-rw-r--r--    1 root     root          6267 May 21 20:47 inetorgperson.schema
-rw-r--r--    1 root     root          2979 May 21 20:47 java.ldif
-rw-r--r--    1 root     root         13901 May 21 20:47 java.schema
-rw-r--r--    1 root     root          2082 May 21 20:47 misc.ldif
-rw-r--r--    1 root     root          2387 May 21 20:47 misc.schema
-rw-r--r--    1 root     root          6809 May 21 20:47 nis.ldif
-rw-r--r--    1 root     root          7640 May 21 20:47 nis.schema
-rw-r--r--    1 root     root          3308 May 21 20:47 openldap.ldif
-rw-r--r--    1 root     root          1514 May 21 20:47 openldap.schema
-rw-r--r--    1 root     root          6904 May 21 20:47 pmi.ldif
-rw-r--r--    1 root     root         20467 May 21 20:47 pmi.schema
-rw-r--r--    1 root     root          4570 May 21 20:47 ppolicy.ldif
-rw-r--r--    1 root     root         20489 May 21 20:47 ppolicy.schema
-rw-r--r--    1 root     root         14892 Oct 27 13:38 samba.ldif
-rw-r--r--    1 root     root         22900 Oct 26 15:32 samba.schema
ホーム | 文書トップ | 目次
Created by Emacs 27.1 (Org mode 9.3)