Project

General

Profile

Problem accessing subversion repo with SASL/LDAP authentification

Added by support macomnet over 11 years ago

I've configured subversion server to work with LDAP. All works fine.
But I can't access to subversion repos from Redmine.

Info:

Redmine 1.4.7.stable (Bitnami stack)
MySQL 5.5.28
Ruby 1.9.3p327
Rails 2.3.15
Subversion server version 1.7.8, Cyrus SASL authentication is available.
Subversion client version 1.7.8,

  • ra_svn : Module for accessing a repository using the svn network protocol.
    - with Cyrus SASL authentication
    - handles 'svn' scheme

configuration.yml

  scm_subversion_command: /usr/bin/svn
  scm_mercurial_command:
  scm_git_command:
  scm_cvs_command:
  scm_bazaar_command:
  scm_darcs_command:

When I try to acces repo throught command line it works:

> /usr/bin/svn ls --username redmine --password <password> -v svn://mysvnserver/myrepo
    202 il                    Feb 21 17:17 ./
     72 il                    Feb 03  2011 branches/
      1 il                    Dec 09  2009 tags/
    202 il                    Feb 21 17:17 trunk/

But if I create subversion repository in Redmine I got an error:

production.log

<list
   path="svn://mysvnserver/myrepo">
Rendering template within layouts/base
Rendering common/error (404)
Completed in 134ms (View: 35, DB: 3) | 404 Not Found [https://redmineserver/redmine/projects/myproject/repository]

error.log (Apache)

svn: E210007: Unable to connect to a repository at URL 'svn://mysvnserver/myrepo'
svn: E210007: Cannot negotiate authentication mechanism

When subversion server used simple user/password authentication (throught passwd file) all works fine, but with now I have problem with Subversion+LDAP+Redmine.
Need help.


Replies (1)

RE: Problem accessing subversion repo with SASL/LDAP authentification - Added by support macomnet over 11 years ago

Promlem solved. It's not redmine bug, but bitnami.
In /var/log/messages I saw

unable to dopen /usr/lib/sasl2/liblogin.so :wrong ELF class: ELFCLASS32
unable to dopen /usr/lib/sasl2/libsasldb.so :wrong ELF class: ELFCLASS32
unable to dopen /usr/lib/sasl2/libplain.so :wrong ELF class: ELFCLASS32
No worthy mechs found

Bitnami uses built-in library libsasl in /opt/redmine/common/lib - this library tries to load x32 sasl libraries.
So I removed files /opt/redmine/common/lib/libsasl* and all works fine.

    (1-1/1)