LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 06-04-2009, 09:52 PM   #1
Stuart P. Bentley
LQ Newbie
 
Registered: Aug 2008
Posts: 9
Thanked: 0
Digest authentication not working on default Apache installation on Slackware 12.1


[Log in to get rid of this advertisement]
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.
Stuart P. Bentley is offline  
Tag This Post , , ,
Reply With Quote
Old 06-06-2009, 01:39 PM   #2
bmarx
Member
 
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 157
Thanked: 2
Try using AuthDigestFile as opposed to AuthUserFile (and htdigest as opposed to htpasswd):

http://httpd.apache.org/docs/1.3/howto/auth.html#digest
bmarx is offline     Reply With Quote
Old 06-07-2009, 07:55 AM   #3
Stuart P. Bentley
LQ Newbie
 
Registered: Aug 2008
Posts: 9
Thanked: 0

Original Poster
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 08:03 AM..
Stuart P. Bentley is offline     Reply With Quote
Old 06-08-2009, 04:33 PM   #4
Stuart P. Bentley
LQ Newbie
 
Registered: Aug 2008
Posts: 9
Thanked: 0

Original Poster
It appears that Digest authentication only looks for users with a realm matching AuthName. Why isn't this documented anywhere?
Stuart P. Bentley is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 01:34 AM
Digest Authentication Glitch paganinipro Linux - Server 3 02-01-2008 08:40 PM
apache hangs when starting -> Digest: generating secret for digest authentication ... jma Linux - Networking 4 02-22-2007 02:02 AM
PHP and Apache Digest Authentication newuser455 Programming 3 08-17-2006 08:05 AM
Apache Basic Authentication not working in Gentoo libregeek Linux - Networking 1 03-14-2006 10:16 AM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration