KOHA
Zotero WebDAV server: Revision 7

Zotero is a free, easy-to-use Firefox extension
to help you collect, manage, and cite your research sources. It lives right where you do
your work—in the web browser itself.

Izazov

Problem (err, izazov) je u tome da želimo imati Zotero koji se autorizira WebDAV-om koristeći račune iz Kohe. Jedna od mogućnosti je koristiti jednostavno AAIEdu LDAP server ali onda nemamo korisnike koji su samo u Kohi.

Druga ideja je bila koristiti libapache2-mod-auth-mysql za autorizaciju direktno na Koha bazu, ali nažalost izgleda da se neda konfigurirati za isti oblik md5 hash-a passworda koji koristi koha (sigh)

Ostatak uputa je strgan (i/ili star) dok ne rješim problem!

http://bugs.rot13.org/rt/Ticket/Display.html?id=397



Za korisnike Zotera

Install Zotero Firefox plugin 2.0

install

Podešavanje servera

Apache kao SSL proxy

dpavlin@koha-dev:~$ sudo a2enmod proxy_http
Considering dependency proxy for proxy_http:
Enabling module proxy.
Enabling module proxy_http.
Run '/etc/init.d/apache2 restart' to activate new configuration!

    <Proxy *>
        Order deny,allow
#       Deny from all
#       Allow from localhost
        Allow from all
    </Proxy>

    ProxyRequests       on
    ProxyPass           /zotero http://localhost:4242/zotero
    ProxyPassReverse    /zotero http://localhost:4242/zotero

Apache WebDAV

dpavlin@koha-dev:~$ sudo a2enmod dav_fs dav
Considering dependency dav for dav_fs:
Enabling module dav.
Enabling module dav_fs.
Module dav already enabled
Run '/etc/init.d/apache2 restart' to activate new configuration!
dpavlin@koha-dev:~$ sudo /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting.

Apache auth

dpavlin@koha-dev:~$ sudo apt-get install libapache2-mod-auth-mysql

dpavlin@koha-dev:~$ sudo a2enmod auth_mysql
Enabling module auth_mysql.
Run '/etc/init.d/apache2 restart' to activate new configuration!
dpavlin@koha-dev:~$ sudo /etc/init.d/apache2 restart

Directory

dpavlin@koha-dev:~$ sudo mkdir /srv/zotero

Apache vhost

dpavlin@koha-dev:~$ cat /etc/apache2/sites-available/zotero-dev.vzb.ffzg.hr 
<VirtualHost *>
        ServerName zotero-dev.vbz.ffzg.hr
        DocumentRoot /srv/zotero
        <Directory /home/srw/example.com>
                Options Indexes MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

                Auth_MySQL_Info localhost LOGIN PASSWORD

        <Location />

                Auth_MYSQL on

                Auth_MySQL_Password_Table borrowers
                Auth_MySQL_Username_Field userid
                Auth_MySQL_Password_Field password
                Auth_MySQL_Empty_Passwords off
                Auth_MySQL_Encryption_Types Crypt_MD5
                #PHP_MD5

                DAV On
                AuthType Basic
                AuthName "Zotero WebDAV server - use Koha login and password"
                Require valid-user

        </Location>

</VirtualHost>

dpavlin@koha-dev:/etc/apache2/sites-enabled$ sudo a2ensite zotero-dev.vzb.ffzg.hr

Test

dpavlin@koha-dev:~$ sudo apt-get install cadaver

dpavlin@koha-dev:~$ cadaver http://zotero-dev.rot13.org