Project

General

Profile

Actions

Mod waklog

mod_waklog is an Apache module developed at UIC in the USA to allow apache webservers to get AFS tokens and access protected files.

Links/reference

Procedure

Assumes Ubuntu 12.04

  1. Grab the original 1.0 waklog source
    git clone git://modwaklog.git.sourceforge.net/gitroot/modwaklog/modwaklog
  2. Grab Aaron's patches
     mkdir patches-aaronk; cd patches-aaronk
    wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/README
    wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/fix_build_scripts.patch
    wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/gnu_source.patch
    wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/have_stropts_h.patch
    wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/modwaklog.spec
    wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/waklog.conf
    cd ..
    
  3. Grab Stephen's packages
    mkdir patches-stephen.quinny; cd patches-stephen.quinny
    wget http://old.nabble.com/attachment/33632100/0/modwaklog-libs.patch
    wget http://old.nabble.com/attachment/33632100/1/modwaklog-weakcrypto.patch
    cd ..
    
  4. Run the patches
    patch -p1 < patches-aaronk/fix_build_scripts.patch
    patch -p1 < patches-aaronk/have_stropts_h.patch
    patch -p1 < patches-aaronk/gnu_source.patch
    patch -p1 < patches-stephen.quinny/modwaklog-weakcrypto.patch
    patch -p1 < patches-stephen.quinny/modwaklog-libs.patch
    
  5. Regenerate build files (from INSTALL) and build with appropriate options.
    ./regen
    ./configure --with-afs-libs=/usr/lib/afs --with-afs-headers=/usr/include/afs --with-apxs=/usr/bin/apxs2
    make
    

Discussion

From by Staffan Hamala <>

I got mod_waklog to work on apache 2.2 at least.

I've found a lot of info in this posting:
https://lists.openafs.org/pipermail/openafs-info/2009-May/031480.html

Stephen Quinney's patches are available here:
http://old.nabble.com/mod_waklog-tt33632100.html

Aaron Knister's patches here:
http://userpages.umbc.edu/~aaronk/waklog/patches_for_git

I downloaded mod_waklog from git, and applied the patches in this order:
patch -p1 < ../patches_aaron_knister/fix_build_scripts.patch
patch -p1 < ../patches_aaron_knister/have_stropts_h.patch
patch -p1 < ../patches_aaron_knister/gnu_source.patch

patch -p1 < ../patches_stephen_quinney/modwaklog-weakcrypto.patch
patch -p1 < ../patches_stephen_quinney/modwaklog-libs.patch

As I said, mod_waklog seems to work perfectly. However, I haven't got filedrawers to work yet. It does not seem to work with PHP 5.4.11 and Smarty 3.1.13.

I've read that it should work with PHP 5.x, but apparently not with 5.4, though I think I managed to fix that. (by loading some module statically instead of using "dl" - dynamically loaded modules, which is deprecated in 5.4).

Smarty 3.1.13 seems to be more difficult, I just get strange error messages.

I've found a note somewhere that it does not work with Smarty 2.x, and that version 1.x works. Maybe version 3.x has the same problem, and we need to downgrade to version 1.x.

--S

Updated by Joseph Foley over 9 years ago · 1 revisions