samba/ホームディレクトリ/autofs
コピペ注意†
下のattr.ldif、class.ldifをコピーしてフィルにペーストする際、空行部分に問題があり、ldbmodifyで読み込む際に問題が発生します
確認はodコマンドを使ってください。
たとえば、下記のattr.ldifを単純にコピーペーストしたファイルをodで見ると
:
0000500 o M S y n t a x : sp 2 2 nl i s S
0000520 i n g l e V a l u e d : sp T R U
0000540 E nl sp nl d n : sp C N = a u t o m
0000560 o u n t K e y , C N = S c h e m
:
これは
oMSyntax: 22
isSingleValued: TRUE
dn: CN=automountKey,CN=Schem
の部分に該当します。エントリー間の空行が「nl sp nl」と認識されます。
一方、適切に処理をして、実際に正しく読み込まれるファイルは
0000500 o M S y n t a x : sp 2 2 nl i s S
0000520 i n g l e V a l u e d : sp T R U
0000540 E nl nl d n : sp C N = a u t o m o
0000560 u n t K e y , C N = S c h e m a
となり、エントリー間の空行は「nl nl」である。
対処は、単にこの部分の行を削除して、再度改行を作れば言いだけですが、コピペしてそのまま使うとエラーになります。
attr.ldif†
注意 下記をコピーペーストする場合、改行コードに注意して下さい
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
29
30
31
32
33
34
35
36
37
38
| dn: CN=automountMapName,CN=Schema,CN=Configuration,DC=sybyl,DC=local
objectClass: top
objectClass: attributeSchema
attributeID: 1.3.6.1.1.1.1.31
schemaIdGuid:: SQGtFScvaoDZ8hUMHirmCw==
cn: automountMapName
name: automountMapName
lDAPDisplayName: automountMapName
description: automount Map Name
attributeSyntax: 2.5.5.5
oMSyntax: 22
isSingleValued: TRUE
dn: CN=automountKey,CN=Schema,CN=Configuration,DC=sybyl,DC=local
objectClass: top
objectClass: attributeSchema
attributeID: 1.3.6.1.1.1.1.32
schemaIdGuid:: qGFH0ubAc2p2pJgxor8N7A==
cn: automountKey
name: automountKey
lDAPDisplayName: automountKey
description: Automount Key value
attributeSyntax: 2.5.5.5
oMSyntax: 22
isSingleValued: TRUE
dn: CN=automountInformation,CN=Schema,CN=Configuration,DC=sybyl,DC=local
objectClass: top
objectClass: attributeSchema
attributeID: 1.3.6.1.1.1.1.33
schemaIdGuid:: WJnCqDrTLttu+RyBBWWpPQ==
cn: automountInformation
name: automountInformation
lDAPDisplayName: automountInformation
description: Automount information
attributeSyntax: 2.5.5.5
oMSyntax: 22
isSingleValued: TRUE
|
class.ldif†
注意 下記をコピーペーストする場合、改行コードに注意して下さい
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
29
| dn: CN=automountMap,CN=Schema,CN=Configuration,DC=sybyl,DC=local
objectClass: top
objectClass: classSchema
governsID: 1.3.6.1.1.1.2.16
schemaIdGuid:: d51ct3yZs79jXxoAG2zfHA==
cn: automountMap
name: automountMap
lDAPDisplayName: automountMap
subClassOf: top
objectClassCategory: 3
mustContain: automountMapName
mayContain: description
defaultObjectCategory: CN=automountMap,CN=Schema,CN=Configuration,DC=sybyl,DC=local
dn: CN=automount,CN=Schema,CN=Configuration,DC=sybyl,DC=local
objectClass: top
objectClass: classSchema
governsID: 1.3.6.1.1.1.2.17
schemaIdGuid:: LKPdMpqFmsHw2t6Ewsj9Rw==
cn: automount
name: automount
lDAPDisplayName: automount
subClassOf: top
objectClassCategory: 3
description: Automount information
mustContain: automountKey
mustContain: automountInformation
mayContain: description
defaultObjectCategory: CN=automount,CN=Schema,CN=Configuration,DC=sybyl,DC=local
|
automount.ldif†
1
2
3
4
5
| dn: OU=automount,DC=sybyl,DC=local
objectClass: top
objectClass: organizationalUnit
ou: automount
name: automount
|
auto.master.ldif†
1
2
3
4
5
6
7
| dn: ou=auto.master,ou=automount,DC=sybyl,DC=local
objectClass: top
objectClass: automountMap
objectClass: organizationalUnit
ou: auto.master
name: auto.master
automountMapName: auto.master
|
auto.home.ldif†
1
2
3
4
5
6
7
| dn: ou=auto.home,ou=automount,DC=sybyl,DC=local
objectClass: top
objectClass: automountMap
objectClass: organizationalUnit
ou: auto.home
name: auto.home
automountMapName: auto.home
|