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
最新の60件
2026-02-16 2026-02-14 2026-02-11 2026-02-10 2026-02-09 2026-02-07 2026-02-06 2026-02-03 2026-02-02 2026-02-01 2026-01-31 2026-01-26 2026-01-24 2026-01-18 2026-01-17 2026-01-16 2026-01-12 2026-01-11 2026-01-10 2026-01-09 2026-01-08 2026-01-04 2026-01-01 2025-12-28 2025-12-27 2025-12-12 2025-12-11 2025-12-09 2025-12-08 2025-12-07 2025-12-05 2025-11-30 2025-11-24 2025-11-23 2025-11-18 2025-11-16 2025-11-05 2025-11-03 2025-11-02

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2017-02-25 (土) 23:56:46