AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 106476
Accepted
rlbond
rlbond
Asked: 2010-01-27 09:26:17 +0800 CST2010-01-27 09:26:17 +0800 CST 2010-01-27 09:26:17 +0800 CST

如何在 Windows Server 上设置 SVN 和 Trac 服务器

  • 772

我需要为我在研究生院的实验室安装 SVN 和 Trac。我们有一台运行 Windows Server 2003 的机器,我希望使用它。我们真正需要的一件事是通过登录到 windows 域进行身份验证。学校使用 AD 在一个域上设置。我以前从来没有做过这样的事情,所以有人可以告诉我这有多难/有可能/怎么做。

谢谢

svn trac
  • 4 4 个回答
  • 1935 Views

4 个回答

  • Voted
  1. proy
    2010-01-27T10:21:11+08:002010-01-27T10:21:11+08:00

    在这里解释整个事情可能很困难。查看设置 svn 的链接和设置trac的链接。要让 trac 使用 Windows 域进行身份验证,您可以在此处查看此链接。

    • 2
  2. Best Answer
    David Antaramian
    2010-01-27T13:10:13+08:002010-01-27T13:10:13+08:00

    虽然我不确定这是否正是您正在寻找的东西,但我之前曾在我自己的个人工作中使用过一些 BitNami 的自包含自包含堆栈,它们在处理脏活方面做得很好。它们同时具有 Subversion 和 Trac 模块,因此您所要做的就是安装两者,然后更改配置文件以处理 Windows 身份验证。另外,由于 BitNami 堆栈使用 Apache 为 Trac 安装提供服务,因此很容易按照上面给出的链接进行操作。

    • 1
  3. Flo
    2010-02-03T07:23:03+08:002010-02-03T07:23:03+08:00

    已经很好的链接(尤其是 proy),但一个真实的例子可能会有所帮助。

    这是用于 Windows (XP) 服务器的 httpd.conf 的一些部分,带有旧的 2.2.11 apache。

    <...>
    # Dynamic Shared Object (DSO) Support
    <..>
    LoadModule dav_svn_module modules/mod_dav_svn.so
    LoadModule authz_svn_module  modules/mod_authz_svn.so
    LoadModule sspi_auth_module modules/mod_auth_sspi.so
    <...>
    # provides list of repo with anonymous access
    <Location /svn>
        DAV svn
        SVNParentPath "C:/data/repositories/"
        SVNListParentPath on
        SVNIndexXSLT "/svnindex.xsl"
        SVNAutoversioning on
    </Location>
    
    <Location /svn/>
        # Checked access for a deeper look
        # for single repository configuration (access right, etc), use a more specific entry in 'Location',
        # and use 'SVNPath "<path to repository>"' instead of 'SVNParentPath
        DAV svn
        SVNParentPath "C:/data/repositories/"
        SVNListParentPath on
        # for web browsing
        SVNIndexXSLT "/svnindex.xsl"
        SVNAutoversioning on
        # --- windows authentication
        AuthName "a nice, friendly and informative message"
        AuthType SSPI
        SSPIAuth On
        SSPIAuthoritative On
        SSPIDomain <YOUR_DOMAIN>
        SSPIUsernameCase lower
        # let non-IE client authentification (YES)
        SSPIOfferBasic On
        # comment the next line if you want to keep domain name in userid string passed down to mod_authz_svn
        SSPIOmitDomain On
        Satisfy Any
        Require valid-user
        # specific access control policy enforced by mod_authz_svn
        AuthzSVNAccessFile "C:/controls/svnaccesspolicy.private"
    </Location>
    ...
    # And the config for a series of Trac sites
    # No authentication for read only
    <Location /bugs>
        SetHandler mod_python
        # Date and Time localization, with the standard (fast)cgi
        SetEnv LC_TIME "fr_CH"
        SetEnv PYTHON_EGG_CACHE "C:/cache/egg"
        # Date and Time localization, with the modpython
        PythonOption TracLocale "French_Switzerland"
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnvParentDir "C:/data/trac"
        PythonOption TracUriRoot /bugs
    </Location>
    <LocationMatch "/bugs/[^/]+/login">
        SetEnv LC_TIME "fr_CH"
        SetEnv PYTHON_EGG_CACHE "C:/cache/egg"
        AuthName "Another nice and informative message"
        AuthType SSPI
        # NT Domain auth config
        SSPIAuth On
        SSPIAuthoritative On
        SSPIDomain <YourDomain>
        SSPIUsernameCase lower
        SSPIOfferBasic On
        SSPIOmitDomain On
        # following line squishes bug #1168 if IE has troubles editing wiki pages.
        SSPIBasicPreferred On
        BrowserMatch "MSIE 6\.0; Windows NT 5\." nokeepalive
        BrowserMatch "MSIE 7\.0; Windows NT 5\." nokeepalive
        # and this one is a tentative to solve some login issue with IE7 (http://trac.edgewall.org/ticket/4560#comment:22)
        SSPIOfferSSPI off
        SSPIPerRequestAuth On
        # Satisfy Any
        Require valid-user
    </LocationMatch>
    <snip>
    

    如您所见,两个站点都可以使用相同的方式来查询 DC 以进行验证。

    请注意,它是旧服务器(winXp)的配置 - 可能有点过时,并且不使用您的情况可能需要的 ssl。此外,trac 和 subversion 都是“手动”安装的(即不是集成环境)——当出现一些问题时这也很好(你会更好地了解将手指放在哪里)。

    • 1
  4. gbjbaanb
    2010-01-29T15:38:13+08:002010-01-29T15:38:13+08:00

    SVN - 使用VisualSVN服务器,它是 Windows 上的终极易用性,与 Active Directory 集成并在几秒钟内安装/升级。

    Trac - VisualSVN 人员有安装 Trac以使用它的指南。他们确实说“不支持”、“非官方”等,但他们仍然为您提供代码和指南。

    • 0

相关问题

  • 使用 crontab 和 /etc/cron.hourly,daily,weekly 的区别

  • 如何定期复制 SVN 存储库而不会丢失目标标签和分支?

  • 如何通过 SVN 命令行接受 SSL 证书?

  • 如何在 slicehost 上设置集市

  • 如何在 Mac OS X 中正确安装 Subversion?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve