How to get mod_auth_pam running on Apache 2.2.x.

mod_auth_pam is not supported and/or developed any longer and the latest available version works only with apache 2.0.x. The new apache 2.2 uses a new authentication mechanism and the old mod_auth_pam does not work, if you only install it to your local apache and use it with the follow configuration:

  1.  AuthPAM_Enabled On
  2.   AuthPAM_FallThrough Off
  3.   AuthType Basic
  4.   AuthName "Testingarea"

You have to turn off the new apache 2.2 basic authentication to get the module up and running. You can do this in two different ways. The first one is to disable the whole module, the second and better one is to disable it through a directive.

For the first solution, you can use the tool a2dismod to disable the module mod_auth_basic.

For the second way, you have to add this lines to the configuration above.

  1. AuthPAM_Enabled On
  2. AuthPAM_FallThrough Off
  3. AuthBasicAuthoritative Off

In the second way, the error.log of apache shows the following lines:

  1. [Wed Feb 21 20:01:35 2007] [error] Internal error: pcfg_openfile() called with NULL filename
  2. [Wed Feb 21 20:01:35 2007] [error] [client 192.168.0.201] (9)Bad file descriptor: Could not open password file: (null)

The positive message is: you can ignore them ;-) It means, that the mod_auth_pam does not register an AuthBasicProvider and therefore it is null and crashes. Not nice, but it works.

Debian stable vs. testing

Yesterday, I installed Debians current stable version 3.1 rev 4 ‘sarge’ on a vmware. After the installation, I tried to install python2.4, apache2.2, subversion1.4.2 …

I could install the python2.4 package, but the package python was only available for python2.3. After creating the links (e.g. python -> python2.4) manually, I tried to get the apache2.2 package. To use debians apt for this job, I had to add the testing sources to the apt list. After this step, he tried to upgrade my system with a new kernel and some new tools. Enough for me! ;) I went to the debian package page and downloaded the testing net boot cd.

SuSE’s YaST can stress…

This is an entry of pure frustration. Today I tried to install rsync on a modified SLES 8 installation to create a case study to use rsync to create a mirror of one of our working folders in basel, switzerland.

While I used YaST to install the package, the automatic conflict solving reinstalled an old version of samba2. But we use samba3 on our systems.

The installation of 500 kbs of software crashed the hole infrastructure… Thanks to YaST!

I’m happy that I could fix it within 10 or 15 minutes while reinstalling the samba3 packages.

Trac 0.10

I updated my trac version from 0.9.3 to 0.10 and must say that this was the easiest update of any bug tracking system I ever made!

I use trac for my personal project management and tracking.

Arcor macht mich heute aggresiv

Heute ist echt einer der Tage, an denen ich richtig sauer bin, zu Arcor gewechselt zu haben. Alle 10-15 Minuten bricht meine Internetverbindung zusammen und ist ne Minute später wieder da. Kein Webradio, Instant Messaging geht auch nicht vernünftig. Nichtmal Webseiten kann man in Ruhe besuchen.