![]() |
ノート/ApacheにLDAP認証を追加http://pepper.is.sci.toho-u.ac.jp/pepper/index.php?%A5%CE%A1%BC%A5%C8%2FApache%A4%CBLDAP%C7%A7%BE%DA%A4%F2%C4%C9%B2%C3 |
![]() |
ノート
訪問者数 3576 最終更新 2008-02-08 (金) 17:20:33
AuthLDAPURL "ldap://hogehoge:389/ou=arekore,dc=konohen,dc=ac,dc=jp?uid?sub?(objectClass=*)"に対して、これらのDirectiveに対応するモジュールが無いと言って怒る。
mod_authnz_ldap requires APR-util to have LDAP support built in. To fix add --with-ldap to ./configure.というエラーが出る。更に(このメッセージの言うとおりに)--with-ldapを追加しても 消えない。
./configure --enable-dav --enable-dav-fs --enable-dav-lock --enable-ssl \ --enable-php --with-ldap --with-ldap-include=/usr/local/include \ --with-ldap-lib=/usr/local/lib --enable-ldap=shared \ --enable-authnz-ldap=shared --with-included-apr --enable-modules=most \ --enable-mods-shared=mostぐらいのことをして、ビルドしてみる。
<Directory "/usr/local/apache2/foo/bar"> AuthType Basic AuthName "Test" AuthBasicProvider ldap file AuthUserFile /usr/local/apache2/.../passwordfile AuthLDAPURL "ldap://arekore:389/ou=konohen,dc=arekore,dc=ac,dc=jp?uid?sub?(objectClass=*)" Require valid-user AuthzLDAPAuthoritative off ####Require ldap-attribute objectClass=person </Directory>