Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96225 - mod_auth_pam apache modules has to be loaded before the others auth apache modules
Summary: mod_auth_pam apache modules has to be loaded before the others auth apache mo...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-15 16:20 UTC by Jesús García Crespo (aka Sevein)
Modified: 2005-07-11 20:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús García Crespo (aka Sevein) 2005-06-15 16:20:35 UTC
Gentoo httpd.conf with two lines added. This it works!

LoadModule access_module                 modules/mod_access.so
--> LoadModule auth_pam_module               modules/mod_auth_pam.so   
--> #LoadModule auth_sys_group_module        modules/mod_auth_sys_group.so
LoadModule auth_module                   modules/mod_auth.so
LoadModule auth_anon_module              modules/mod_auth_anon.so
LoadModule auth_dbm_module               modules/mod_auth_dbm.so
LoadModule auth_digest_module            modules/mod_auth_digest.so 

But modules.d/10_mod_auth_pam.conf it doesn't work for me because is loaded at
the end of httpd.conf loading-modules part:

I mean, this line "Include conf/modules.d/*.conf" is written in httpd.conf after
the "LoadModule" section. This is the reason. It seems to be necessary to load
mod_auth_pam.so before of mod_auth_*. My english is not very good, sorry.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-15 23:28:10 UTC
No, you are supposed to add AUTH_PAM to APACHE2_OPTS in /etc/conf.d/apache2
Comment 2 Jesús García Crespo (aka Sevein) 2005-06-16 09:55:09 UTC
If you do that, mod_auth_pam will be loaded by Apache after of loading:
LoadModule access_module                 modules/mod_access.so
LoadModule auth_module                   modules/mod_auth.so
LoadModule auth_anon_module              modules/mod_auth_anon.so
LoadModule auth_dbm_module               modules/mod_auth_dbm.so
LoadModule auth_digest_module            modules/mod_auth_digest.so

Ant that is the reason it didn't worked for me!

Take a look the place where "Include conf/modules.d/*.conf" in httpd.conf.
Comment 3 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-07-11 20:50:03 UTC
the order modules are loaded shouldn't matter for apache-2.0
this is because apache-2.0 uses hooks so modules can say they want to be used at
a certain point in time.
if the module isn't working correctly with the hooks, then it's a problem with
the module. please file a bug upstream.

reference:
http://httpd.apache.org/docs-2.0/new_features_2_0.html

New Apache API
    The API for modules has changed significantly for 2.0. Many of the
module-ordering/-priority problems from 1.3 should be gone. 2.0 does much of
this automatically, and module ordering is now done per-hook to allow more
flexibility. Also, new calls have been added that provide additional module
capabilities without patching the core Apache server.