WebDAV¤Ë¤Æ¥Õ¥¡¥¤¥ëžÁ÷¤ò¹Ô¤Ê¤¤¡¢Ç§¾Ú¤ÏOpenLDAP¤ò»ÈÍѤ·¤Þ¤¹¡£
¤¢¤é¤«¤¸¤á¤³¤Á¤é¥æ¡¼¥¶¡¼¤ò°ì¸µ´ÉÍý LDAP¤ÇOpenLDAP¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ª¤­¤Þ¤¹¡£

Apache¤ÎºÆ¥¤¥ó¥¹¥È¡¼¥ë

# ./configure --with-mpm=prefork --enable-rewrite --enable-ssl --enable-dav \
--with-ldap --enable-ldap --enable-authnz-ldap --with-included-apr
# make
# make install

WebDAV¤ÎÀßÄê

¸ø³«¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤·¡¢Apache¤ÎÀßÄê¤òÊѹ¹

# mkdir /home/webdav
# chown nobody.nobody /home/webdav
# mkdir /usr/local/apache2/var
# chown nobody.nobody /usr/local/apache2/var
# vi /usr/local/apache2/conf/httpd.conf

Include conf/extra/httpd-dav.conf

# vi /usr/local/apache2/conf/extra/httpd-dav.conf

DavLockDB "/usr/local/apache2/var/DavLock"
Alias /webdav "/home/webdav"

<Location "/webdav">
    Dav On

    Order Allow,Deny
    Allow from all

    AuthType     Basic
    AuthName     "WebDAV Server"
    AuthBasicProvider ldap
    AuthLDAPURL  ldap://example.com/dc=example,dc=com?uid?sub
    Require      ldap-attribute objectClass=person
</Location>

BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

mod_encoding¤Î¥¤¥ó¥¹¥È¡¼¥ë

mod_encoding-20021209.tar.gz ¤È mod_encoding.c.apache2.20040616 ¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤¹
http://webdav.todo.gr.jp/

WebDAV°Ê³°¤Çʸ»ú²½¤±¤Î¥È¥é¥Ö¥ë¤â¤¢¤ë¤è¤¦¤Ê¤Î¤Ç¥Ñ¥Ã¥Á¤âÅö¤Æ¤Þ¤¹

# tar xvzf mod_encoding-20021209.tar.gz
# cp mod_encoding.c.apache2.20040616 mod_encoding-20021209/mod_encoding.c
# cd mod_encoding-20021209/lib/
# ./configure
# make
# make install
# cd ..
# patch -p0 < ../mod_encoding.c-apache2.2-20060520.patch
# ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-iconv-hook
# vi Makefile

#LIBS =  -liconv_hook
LIBS = -L/usr/local/lib -liconv_hook
#install-exec-local:
#        $(APXS) -i mod_encoding.so
install-exec-local:
        $(APXS) -i -a -n encoding mod_encoding.la

# make
# make install

mod_encoding¤ÎÀßÄê¤òÄɲÃ

# vi /usr/local/apache2/conf/extra/httpd-dav.conf

EncodingEngine        on

SetServerEncoding     UTF-8

DefaultClientEncoding UTF-8 CP932 EUCJP-MS

AddClientEncoding "Microsoft .* DAV 1.1" ASCII CP932 UTF-8
AddClientEncoding "Microsoft .* DAV" UTF-8 CP932
AddClientEncoding "(Microsoft .* DAV $)" UTF-8 CP932
AddClientEncoding "(Microsoft .* DAV 1.1)" CP932 UTF-8
AddClientEncoding "Microsoft-WebDAV*" UTF-8 CP932
AddClientEncoding "RMA/*" CP932
AddClientEncoding "xdwin9x/" CP932
AddClientEncoding "cadaver/" UTF-8 EUCJP-MS
AddClientEncoding "Mozilla/" EUCJP-MS

ApacheºÆµ¯Æ°

 # /etc/rc.d/init.d/httpd graceful

»²¹Í¥µ¥¤¥È

http://www.atmarkit.co.jp/flinux/rensai/apache2_07/apache07a.html
mod_authnz_ldap


źÉÕ¥Õ¥¡¥¤¥ë: filemod_encoding.c.apache2.20040616 602·ï [¾ÜºÙ] filemod_encoding-20021209.tar.gz 644·ï [¾ÜºÙ] filemod_encoding.c-apache2.2-20060520.patch 636·ï [¾ÜºÙ]

¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2021-09-19 (Æü) 19:09:30