Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Apache + mod_auth_pam not working (SOLVED)

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
pelckyboy
n00b
n00b
Posts: 36
Joined: Sat May 10, 2003 7:53 pm

Apache + mod_auth_pam not working (SOLVED)

  • Quote

Post by pelckyboy » Sun Jun 24, 2007 8:45 pm

Hello,

I cannot seem to get the mod_auth_pam working :-(

My configuration in /etc/apache2/httpd.conf :

Code: Select all

<Directory /var/www/localhost/htdocs/mediawiki>
      AllowOverride None
      AuthPAM_Enabled on
      AuthType Basic
      AuthName "secure"
      Require group users
</Directory>
The error :

Code: Select all

apache2: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
apache2: PAM unable to dlopen(<*unknown module path*>)
apache2: PAM [dlerror: <*unknown module path*>: cannot open shared object file: No such file or directory]
apache2: PAM adding faulty module: <*unknown module path*>
apache2: PAM unable to dlopen(/lib/security/pam_nologin.so )
apache2: PAM [dlerror: /lib/security/pam_nologin.so : cannot open shared object file: No such file or directory]
apache2: PAM adding faulty module: /lib/security/pam_nologin.so
apache2: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
apache2: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
apache2: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
My /etc/pam.d/ directory :

Code: Select all

-rw-r--r--  1 root apache  199 jun 24 22:22 apache2
-rw-r--r--  1 root apache  402 jun 24 22:04 system-auth
My /lib/security/ directory:

Code: Select all

-rwxr-xr-x  1 root root 6,1K jun 24 22:04 pam_nologin.so
According to the file permissions everything seems right ?!? Can someone point me out why apache cannot execute the pam directives ?

/etc/pam.d/apache2 contains :

Code: Select all

auth       include      system-auth
auth       required     pam_nologin.so
account    include      system-auth
password   include      system-auth
session    include      system-auth
Thanks for any suggestions !

Kristof
Last edited by pelckyboy on Mon Jun 25, 2007 12:32 pm, edited 1 time in total.
Top
pelckyboy
n00b
n00b
Posts: 36
Joined: Sat May 10, 2003 7:53 pm

  • Quote

Post by pelckyboy » Mon Jun 25, 2007 11:16 am

I read somewhere that you can force pam to debug by putting debug at the end of the /etc/pam.d/apache2 file, but it does not work.
Top
pelckyboy
n00b
n00b
Posts: 36
Joined: Sat May 10, 2003 7:53 pm

  • Quote

Post by pelckyboy » Mon Jun 25, 2007 12:32 pm

Well, if I put debug behind every line... IT WORKS ! It does not seem to produce debug messages, but at least it works :-D

It seems like there is something wrong with the file parsing of /etc/pam.d/apache2.

Code: Select all

#%PAM-1.0
auth       include      system-auth debug
auth       required     pam_nologin.so debug
account    include      system-auth debug
password   include      system-auth debug
session    include      system-auth debug
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic