気まぐれSE日記

地方でエンジニアしてます

LDAP

slapd.confの記述ではまってます


sambaでLDAPを使ったPDCを建てようとしてるのですが、

Vine4.0 に付属するOpenLDAP 2.3.27の slapd.confに次のアクセス制限を入れて
OpenLDAPを起動させようとするとエラーになってしまい起動しない...。



...

access to attribute=userPassword
by dn="cn=root,dc=test,dc=local" write
by anonymous auth
by self write
by * none

# samba
access to attribute=sambaLMPassword,sambaNTPassword
by dn="cn=root,dc=test,dc=local" write
by self
by * none

access to *
by dn="cn=root,dc=test,dc=local" write
by self write
by * read

省略

slaptestコマンドを実行すると、



/etc/openldap/slapd.conf: line 77: expecting got "attribute"

省略

slaptest: bad configuration file!

設定ファイルが間違っとる!と怒られる。書き方間違ってるんだろうけど...。
うーん。


解決。すぐ、わかりました。
attribute ⇒ attrs に変更されたらしい。