Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-26-2007, 04:23 PM   #1
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Rep: Reputation: 15
Question Apache 2.2.4 mod_auth_xradius issue

Okay, per my earlier post, I decided to try mod_auth_xradius to authenticate users on apache. I've dynamically loaded the module with apxs, and I've made sure the correct LoadModule statements are in place in httpd.conf. After that, I placed a directive at the bottom to limit access to a specific directory:

<Directory /var/www/html/CCNA1>
        AuthName "Private Area"
        AuthType basic
        AuthXRadiusAddServer "" "cntRADius"
        AuthXRadiusTimeout 2
        AuthXRadiusRetries 2
        require valid-user
Now, when I attempt to browse to a page in the CCNA1 directory, it pops up a little box asking for a username and password, just like it should. I type in a username and password, press enter, and then it brings back the same box seconds later. There is no problem with the RADIUS server as we have tested with other clients using the same username and password. Here's what I get in my httpd error_log:

[Tue Jul 24 13:01:48 2007] [error] [client] PAM: user 'cntuser' - not authenticated: Authentication failure, referer:
It looks to me as if for whatever reason, Apache is trying to use PAM to authenticate instead of RADIUS, unless this is what is supposed to happen and PAM sends it off to RADIUS for me. We also used wireshark to see if any UDP packets to port 1812 were being sent out from the server, but nothing was sent. Any ideas?
Old 08-07-2007, 09:25 PM   #2
LQ Newbie
Registered: Aug 2007
Distribution: RH*/SuSE*
Posts: 21

Rep: Reputation: 15
The auth_basic module seems to be defaulting to pam in your case which seems odd because I thought the default was 'file'.
Anyhow....put this in your code as well
AuthBasicProvider xradius
The auth_basic module needs to be told to use xradius. Was having a similar issue the other day.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache issue kidswipe Linux - Server 8 07-09-2007 08:16 AM
Apache 2.2.3 issue. Galaxy_Stranger Linux - Server 4 09-12-2006 03:57 AM
Apache Issue Jukas Linux - Software 3 07-14-2005 01:33 PM
Is this an apache issue? opsraja Linux - Networking 1 03-02-2005 11:03 PM
apache issue... Robin01 Linux - Newbie 3 09-21-2003 06:12 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration