Project

General

Profile

webdav https authentication problem solved cf HTTP/1.1 401

Added by Steve Gonzales almost 12 years ago

First about the installation

- standard squeeze debian

ROOT@server:/usr/share/redmine# RAILS_ENV=production script/about
./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.  Use #requirement
About your application's environment
Ruby version              1.8.7 (i486-linux)
RubyGems version          1.3.7
Rack version              1.1
Rails version             2.3.5
Active Record version     2.3.5
Active Resource version   2.3.5
Action Mailer version     2.3.5
Active Support version    2.3.5
Edge Rails revision       unknown
Application root          /usr/share/redmine
Environment               production
Database adapter          postgresql
Database schema version   20100819172912

About your Redmine plugins
Bots filter   1.02

logs

When trying
on another server

svn --trust-server-cert --non-interactive --username admin --password passwordgiven checkout https://server.dns.name:4435/svn/test/

i get the message:
svn: OPTIONS of 'https://server.dns.name:4435/svn/test': authorization failed: Could not authenticate to server: rejected Basic challenge (https://server.dns.name:4435)

and
i get on the server
94.225.36.189 - admin [07/May/2012:20:53:58 +0200] "OPTIONS /svn/test HTTP/1.1" 401 740 "-" "SVN/1.6.6 (r40053) neon/0.29.0" 
94.225.36.189 - admin [07/May/2012:20:53:58 +0200] "OPTIONS /svn/test HTTP/1.1" 401 740 "-" "SVN/1.6.6 (r40053) neon/0.29.0" 

no usefull info in syslog, apache or messages

setup

ldap auth works,
site works,
repo creation works,
local svn checkout works,
remote svn doesnt work (with admin account or any ldap account)

svn.config file for apache

# /svn location for users
PerlLoadModule Apache::Redmine
<Location /svn>
    DAV svn
    SVNParentPath "/var/svn" 
    Order deny,allow
    Deny from all
    Satisfy any

    PerlAccessHandler Apache::Authn::Redmine::access_handler
    PerlAuthenHandler Apache::Authn::Redmine::authen_handler
    AuthType Basic
    AuthName "Redmine Subversion Repository" 

    #read-only access    
    <Limit GET PROPFIND OPTIONS REPORT>
        Require valid-user
        # Allow from [my server ip]
        Allow from my server ip
        Allow from 127.0.0.1
        # Allow from another-ip
        Satisfy any
    </Limit>
        # write access
        <LimitExcept GET PROPFIND OPTIONS REPORT>
        Require valid-user
    </LimitExcept>

    # postgresql
    RedmineDSN "DBI:Pg:dbname=redmine_default;host=localhost" 
    RedmineDbUser "redmine" 
    RedmineDbPass "thecorrectpassword" 
</Location>

Suggestions?

I am running multiple ssl vhosts (different ports)

Solution:
it seems the package
lilibio-socket-ssl-perl
was needed,
not clear error messages though