mishimaの日記: smb.conf 中の LDAP 関係の書式が変更
samba サーバのバグフィクスを目的に、
sarge から etch にバージョンアップしたら、
こんなメッセージを出して smbd がうまく動かない。
[2007/01/04 13:02:08, 0] services/services_db.c:svcctl_init_keys(420)
init_services_keys: key lookup failed! (WERR_ACCESS_DENIED)
[2007/01/04 13:02:08, 0] smbd/server.c:main(960)
ERROR: failed to setup guest info.
なんでだろうと思ってデバッグレベルを上げてみたら、こんなログ。
[2007/01/04 13:41:58, 5] auth/auth_util.c:make_server_info_sam(625)
make_server_info_sam: made server info for user nobody -> nobody
[2007/01/04 13:41:58, 5] lib/smbldap.c:smbldap_search_ext(1179)
smbldap_search_ext: base => ["ou=Groups","dc=example,dc=org"], filter => [(&(objectClass=sambaGroupMapping)(sambaSID=S-1-5-32-544))], scope => [2]
[2007/01/04 13:41:58, 0] smbd/server.c:main(960)
ERROR: failed to setup guest info.
別に間違ってないけど…DN に「"」(ダブルクォート)が含まれているのがおかしいなー、これひょっとしてわざと付けてるんじゃなくてマジで付けてるの? と思って smb.conf 中を変更してみた。以下のように
ldap suffix = "dc=example,dc=org"
ダブルクォートで囲んであったのを
ldap suffix = dc=example,dc=org
取ってみたら…動くじゃないですか。
… samba-3.0.14a まではダブルクォート有りで動いたんだよぅ!!
smb.conf 中の LDAP 関係の書式が変更 More ログイン