Redmine用户SVN auth LDAP无法正常工作 - 在存储库中的redmine中提交404之后

时间:2013-09-17 15:41:53

标签: svn authentication ldap redmine

我有一个大问题。

我在openuse上使用subversion安装了redmine。我可以使用

自动创建存储库
ruby /srv/redmine/extra/svn/reposman.rb --redmine https://redmine.serverip.tld --scm Subversion --svn-dir /srv/svn/repos --owner redmineowner --group wwwgroup --url file:///srv/svn/repos --key=[API key] >> /var/log/reposman.log

所以,我可以毫无问题地在redmine中打开存储库。

这是我的svn.conf

PerlLoadModule Apache::Redmine

PerlLoadModule Authen :: Simple :: LDAP      DAV svn      SVNParentPath“/ srv / svn / repos”

 Order deny,allow
 Deny from all
 Satisfy any
 # If a client tries to svn update which involves updating many files,
 # the update request might result in an error Server sent unexpected
 # return value (413 Request  Entity Too Large) in response to REPORT
 # request,because the size of the update request exceeds the limit
 # allowed by the server. You can avoid this error by disabling the
 # request size limit by adding the line LimitXMLRequestBody 0
 # between the <Location...> and </Location> lines.
 LimitXMLRequestBody 0

 # Only check Authentication for root path, nor again for recursive
 # folder.
 # Redmine core does only permit access on repository level, so this
 # doesn't hurt security. On the other hand it does boost performance
 # a lot!
 SVNPathAuthz off

 PerlAccessHandler Apache::Authn::Redmine::access_handler
 PerlAuthenHandler Apache::Authn::Redmine::authen_handler

 AuthType Basic
 AuthName "Redmine SVN Repository"
 #AuthUserFile /etc/apache2/dav_svn.passwd
 #read-only access

 <Limit GET PROPFIND OPTIONS REPORT>
    Require valid-user
    Allow from [my redmine server IP]
     #Allow from another-ip
     Satisfy any
 </Limit>

 # write access
 <LimitExcept GET PROPFIND OPTIONS REPORT>
   Require valid-user
 </LimitExcept>
# SSLRequireSSL

 ## for mysql
 RedmineDSN "DBI:mysql:database=redmine_db;host=DB_HOST_IP;"
 RedmineDbUser "redmine"
 RedmineDbPass "DB_PW"
RedmineCacheCredsMax 50

如果我在浏览器中打开存储库,它会询问用户和pw。但我无法登录:

Can't locate object method "new" via package "Authen::Simple::LDAP" at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Apache/Redmine.pm line 489, line 522. 

好的,现在我已经用redmine创建了一个新用户,我可以登录!!!

但是,如果我在IDE中提交了一个新文件,那么redmine中没有该存储库

404 - Eintrag und/oder Revision existiert nicht im Projektarchiv.

我已将LDAP.pm文件复制到

/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Authen/Simple

使用mkdir创建Authen和Simple目录。

有什么问题?有人能帮助我吗?

谢谢!

编辑:

另一个问题是:如果我在浏览器中使用新的redmine用户浏览存储库,我可以使用新的提交文件。但是如果在我的shell / srv / svn / repos / myrepositry中打开存储库我看不到新文件?????

EIDT2:

YES!有用!我再次安装了Authen :: Simple,然后再安装了Authen :: Simple :: LDAP

现在我可以使用redmine LDAP用户登录,但是在第一次提交后我无法解决redmine中404消息的问题!

我该怎么办?我可以在浏览器中看到,我提交了一个新的html文件。但我在我的shell中的svn存储库中看不到这个文件?!?!?!

0 个答案:

没有答案