mods-available load script missing, and when loaded module does not work at all

Bug #700107 reported by Joshua Randall
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
libapache2-mod-auth-openid (Debian)
New
Undecided
Unassigned
libapache2-mod-auth-openid (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: libapache2-mod-auth-openid

There should be a file /etc/apache2/mods-available/authopenid.load included in the package, in order to allow "a2enmod authopenid" to work (as indicated in the package README.Debian).

If this file is manually created, the module loads, but open attempting the simplest example, I get the following [crit] message in the apache error log:
"configuration error: couldn't check user. Check your authn provider!"

I have now downloaded and compiled the module myself, and it works fine, so this appears to be a problem specific to this package.

Revision history for this message
netAction (launchpad-netaction) wrote :

Same in Debian Squeeze.

Revision history for this message
netAction (launchpad-netaction) wrote :

Workaround:

As you said you need to load the module:
# cat /etc/apache2/mods-available/auth_openid.load
LoadModule authopenid_module /usr/lib/apache2/modules/mod_auth_openid.so

Enable it:
# cd /etc/apache2/mods-enabled
# ln -s ../mods-available/auth_openid.load .

Use this in your Apache Directive:
AuthOpenIDEnabled On
AuthType OpenID

Restart Apache:
# apache2ctl restart

Now you should see the OpenID login screen on your webpage.

In PHP the user name is here:
echo $_SERVER['REMOTE_USER'];

If you want to give access to special users as you are used to do with "require user alice bob" do this:
http://findingscience.com/mod_auth_openid/authuserprogram.html

Changed in libapache2-mod-auth-openid (Ubuntu):
status: New → Confirmed
Revision history for this message
keppla (keppla) wrote :

The proposed workaround does not seem to work for me, same error in /var/log/apache2/error.log "configuration error: couldn't check user. Check your authn provider!"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.