LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-04-2009, 08:52 PM   #1
Stuart P. Bentley
LQ Newbie
 
Registered: Aug 2008
Posts: 10

Rep: Reputation: 0
Digest authentication not working on default Apache installation on Slackware 12.1


Why is this working:
Code:
<Location /repo>
    DAV svn
    SVNPath /srv/repo

    AuthType Basic
    AuthName "NONE SHALL PASS"
    AuthDigestDomain /repo
    AuthUserFile /srv/auth/svn-auth-basic-file
    #AuthUserFile /srv/auth/svn-auth-digest

    Require valid-user
    #Allow users of a certain authentication level read-only access
    AuthzSVNAccessFile /srv/auth/svn-access-file

    #WebDAV accessibility settings
    SVNAutoversioning on
    ModMimeUsePathInfo on
</Location>
but this isn't?
Code:
<Location /repo>
    DAV svn
    SVNPath /srv/repo

    AuthType Digest
    AuthName "NONE SHALL PASS"
    AuthDigestDomain /repo
    #AuthUserFile /srv/auth/svn-auth-basic-file
    AuthUserFile /srv/auth/svn-auth-digest

    Require valid-user
    #Allow users of a certain authentication level read-only access
    AuthzSVNAccessFile /srv/auth/svn-access-file

    #WebDAV accessibility settings
    SVNAutoversioning on
    ModMimeUsePathInfo on
</Location>
Could my digest file be bad? Is there a rule for what to put in for realm? Also, the server is operating with 127.0.0.1 for ServerName.
 
Old 06-06-2009, 12:39 PM   #2
bmarx
Member
 
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
Try using AuthDigestFile as opposed to AuthUserFile (and htdigest as opposed to htpasswd):

http://httpd.apache.org/docs/1.3/howto/auth.html#digest
 
Old 06-07-2009, 06:55 AM   #3
Stuart P. Bentley
LQ Newbie
 
Registered: Aug 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bmarx View Post
Try using AuthDigestFile as opposed to AuthUserFile (and htdigest as opposed to htpasswd):

http://httpd.apache.org/docs/1.3/howto/auth.html#digest
I used htdigest for svn-auth-digest, and the example on http://httpd.apache.org/docs/2.2/mod...th_digest.html uses AuthUserFile: putting AuthDigestFile instead of AuthUserFile causes Apache 2.2 to throw up an error with AuthDigestFile as an unrecognized keyword on restart.

httpd -v:
Code:
Server version: Apache/2.2.8 (Unix)
Server built:   Feb 14 2008 15:37:26

Last edited by Stuart P. Bentley; 06-07-2009 at 07:03 AM.
 
Old 06-08-2009, 03:33 PM   #4
Stuart P. Bentley
LQ Newbie
 
Registered: Aug 2008
Posts: 10

Original Poster
Rep: Reputation: 0
It appears that Digest authentication only looks for users with a realm matching AuthName. Why isn't this documented anywhere?
 
  


Reply

Tags
apache, authentication, slackware


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
SVN and WebDAV on default Apache installation on Slackware 12.1 Stuart P. Bentley Linux - Server 5 06-03-2009 12:34 AM
Digest Authentication Glitch paganinipro Linux - Server 3 02-01-2008 07:40 PM
apache hangs when starting -> Digest: generating secret for digest authentication ... jma Linux - Networking 4 02-22-2007 01:02 AM
PHP and Apache Digest Authentication newuser455 Programming 3 08-17-2006 07:05 AM
Apache Basic Authentication not working in Gentoo libregeek Linux - Networking 1 03-14-2006 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:21 AM.

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