プロジェクト

全般

プロフィール

Vote #64075

未完了

SVN authentication needed for public project

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
New
優先度:
高め
担当者:
-
カテゴリ:
SCM extra_46
対象バージョン:
-
開始日:
2008/10/31
期日:
進捗率:

0%

予定工数:
category_id:
46
version_id:
0
issue_org_id:
2115
author_id:
742
assigned_to_id:
0
comments:
6
status_id:
1
tracker_id:
2
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

In some cases an administrator wants to track who is downloading from the svn. Using Redmine.pm that is easy, but only when the project is not public.

What I need is that users who are not a member of a public project, still need to authenticate when loggin into svn, meaning they need to register at the redmine project page.
So in Redmine.pm it needs to check if a project is public, but still needs svn auth access.

I'm not a perl programmer, so I could not change it.

Changes needed:

  • Redmine.pm should check if project is public, but not open for anonymous access
  • Redmine project settings need 'no anon access' switch

journals

+1 to the features request. :P

sander you can comment a line of code in redmine.pm to get basically what you want.
Where the redmine check if the project is public, let it ignore the flag.
I hope it helps.

--------------------------------------------------------------------------------
Overmind Eternal Will wrote:
> Where the redmine check if the project is public, let it ignore the flag.

The idea is nice, however ommitting that flag makes Redmine.pm wants the user to be a member of the project. And since members won't be that by default, it's still a problem.

--------------------------------------------------------------------------------
Apache option will be ok?
Something like RedminePublicProjectAnonAccess true|false?
--------------------------------------------------------------------------------
Yeah, that might work. Unless you work with a parent SVN path, in case it won't work.

--------------------------------------------------------------------------------
+1 :) Another suggestion for this feature would be to allow public & anon reads and writes to svn and to redmine separately.

Thanks Overmind. Commenting out lines 208 & 209 worked for me.

# $r->set_handlers(PerlAuthenHandler => [\&OK])
# if is_public_project($project_id, $r);

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリSCM extra_46 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0