LDAP authentication module for Apache 2.x

http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap_apache2.html


いまさらながら試してみようかな。

@IT:LDAPによるパスワードの一元管理(3/3)

http://www.atmarkit.co.jp/flinux/rensai/root02/root02c.html


このあたりか。

for Red Hat Linux 8.0

# apt-get install httpd-devel openldap-devel openssl-devel
# wget http://www.muquit.com/muquit/software/mod_auth_ldap/modauthldap_apache2.tar.gz
# tar xvzf modauthldap_apache2.tar.gz
# cd modauthldap_apache2
# ./configure --with-apxs=/usr/sbin/apxs --with-ldap-dir=/usr --with-ssl=yes
# make
# make install
# vi /etc/httpd/conf/httpd.conf

AuthName "WebDAV on HTTPS Server"
AuthType Basic

Require valid-user

LDAP_Server ldapserver.example.com
LDAP_Port 389
Base_DN "o=ROOT"
UID_Attr uid

# /etc/init.d/httpd restart
うまくいかなかった(わら
# tail /etc/httpd/logs/error_log
[Thu Apr 08 12:33:07 2004] [error] [client 192.168.1.8] [mod_auth_ldap.c] - ldap_search_s() failed
[Thu Apr 08 12:33:07 2004] [error] [client 192.168.1.8] [mod_auth_ldap.c] - Error: Operations error