1. <tfoot id='Ulfx5'></tfoot>

      <legend id='Ulfx5'><style id='Ulfx5'><dir id='Ulfx5'><q id='Ulfx5'></q></dir></style></legend>
        <bdo id='Ulfx5'></bdo><ul id='Ulfx5'></ul>
    2. <small id='Ulfx5'></small><noframes id='Ulfx5'>

      <i id='Ulfx5'><tr id='Ulfx5'><dt id='Ulfx5'><q id='Ulfx5'><span id='Ulfx5'><b id='Ulfx5'><form id='Ulfx5'><ins id='Ulfx5'></ins><ul id='Ulfx5'></ul><sub id='Ulfx5'></sub></form><legend id='Ulfx5'></legend><bdo id='Ulfx5'><pre id='Ulfx5'><center id='Ulfx5'></center></pre></bdo></b><th id='Ulfx5'></th></span></q></dt></tr></i><div id='Ulfx5'><tfoot id='Ulfx5'></tfoot><dl id='Ulfx5'><fieldset id='Ulfx5'></fieldset></dl></div>

        使用 MySQL 的 SVN 身份验证

        时间:2023-08-21

          <tbody id='ybF3f'></tbody>
      1. <tfoot id='ybF3f'></tfoot>
        • <bdo id='ybF3f'></bdo><ul id='ybF3f'></ul>

              <small id='ybF3f'></small><noframes id='ybF3f'>

                • <i id='ybF3f'><tr id='ybF3f'><dt id='ybF3f'><q id='ybF3f'><span id='ybF3f'><b id='ybF3f'><form id='ybF3f'><ins id='ybF3f'></ins><ul id='ybF3f'></ul><sub id='ybF3f'></sub></form><legend id='ybF3f'></legend><bdo id='ybF3f'><pre id='ybF3f'><center id='ybF3f'></center></pre></bdo></b><th id='ybF3f'></th></span></q></dt></tr></i><div id='ybF3f'><tfoot id='ybF3f'></tfoot><dl id='ybF3f'><fieldset id='ybF3f'></fieldset></dl></div>

                  <legend id='ybF3f'><style id='ybF3f'><dir id='ybF3f'><q id='ybF3f'></q></dir></style></legend>
                  本文介绍了使用 MySQL 的 SVN 身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在尝试通过 MySQL 设置每个存储库的 SVN 身份验证,但我遇到了一些问题.

                  I'm trying to setup per repository SVN authentication via MySQL but I'm having a few problems.

                  首先mod_authn_dbdmod_auth_mysql有什么区别?

                  其次,我已经有一个 MySQL 数据库设置,其中包含一个用于用户、组和权限的表.是否可以使用这些 mod 中的任何一个链接到我当前的权限系统,其中需要用户名、密码和权限才能访问存储库(每个存储库最好具有读取权限和写入权限)

                  Secondly I already have a MySQL database setup with a table for users, groups and permissions. Is it possible using either of these mods to link into my current permission system where by a username, password and permission is required to access the repository (Preferable with a read permission and write permission per repository)

                  tbl_users:user_id、user_name、user_hash

                  tbl_users: user_id, user_name, user_hash

                  tbl_group: group_id, group_name

                  tbl_group: group_id, group_name

                  tbl_permission:permission_id、permission_name

                  tbl_permission: permission_id, permission_name

                  tbl_user_group: user_id, group_id

                  tbl_user_group: user_id, group_id

                  tbl_group_permission:group_id、permission_id

                  tbl_group_permission: group_id, permission_id

                  tbl_user_permission:user_id、permission_id

                  tbl_user_permission: user_id, permission_id

                  推荐答案

                  首先是区别.

                  mod_authn_dbd 提供身份验证前端,例如 mod_auth_digest 和 mod_auth_basic通过在 SQL 表中查找用户来验证用户.

                  mod_authn_dbd provides authentication front-ends such as mod_auth_digest and mod_auth_basic to authenticate users by looking up users in SQL tables.

                  mod_auth_mysql 是一个 Apache 模块,允许使用存储在 MySQL 数据库中的用户和组数据进行身份验证.该项目似乎自 2005 年以来就没有更新过,所以我会选择 mod_authn_dbd.

                  mod_auth_mysql is an Apache module that allows authentication using user and group data stored in MySQL databases. The project seems to not have updated since 2005, so I'd go for mod_authn_dbd.

                  要正确设置,首先需要在 apache 配置中正确配置 mod_authn_dbd 和 mod_dbd,mod_dbd 负责数据库连接.完成此操作后(确保您的 Apache 在这些模块处于活动状态的情况下运行),然后您可以继续配置它们.

                  To set this up properly, first you need to configure mod_authn_dbd and mod_dbd up properly in your apache configuration, mod_dbd takes care of your database connection. Once you've done this (make sure your Apache is running with those modules active), then you can go ahead configuring them.

                  在您的 apache 配置中添加类似的内容以配置数据库连接:

                  Add something like this to your apache configuration to configure the database connection:

                  <IfModule mod_dbd.c>
                    DBDriver mysql
                    DBDParams "host=(your_db_server, p.e. 127.0.0.1) dbname=your_db_name user=your_db_user pass=your_db_pass"
                    DBDMin 1
                    DBDKeep 8
                    DBDMax 20
                    DBDExptime 200
                  </IfModule> 
                  

                  现在将您想要的身份验证配置添加到 apache 配置中:

                  Now add your desired authentication configuration into the apache configuration:

                  <Directory "/your/svn/repository/path/">
                    Options FollowSymLinks Indexes MultiViews
                    AuthType Basic
                    AuthName "Allowed users Only"
                    AuthBasicProvider dbd
                    AuthDBDUserPWQuery "SELECT pwd FROM tbl_users, tbl_user_group WHERE tbl_users.user_id=%s AND tbl_user.user_id=tbl_user_group.user_id"
                    Require valid-user
                    AllowOverride None
                    Order allow,deny
                    Allow from all
                  </Directory>
                  

                  为了更好的可读性,我已经简化了 SELECT 语句,您必须扩展它以完善您的配置.

                  I've simplified the SELECT-statement for better readability, you have to expand this to get your configuration refined.

                  打字后我在网上找到了一个很好的例子,也许可以阅读它此处,也是.它比我的简化答案更深入.

                  After typing I've found a very good example in the web, maybe read it here, too. It goes alot deeper than my simplified answer.

                  这篇关于使用 MySQL 的 SVN 身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Ubuntu:无法通过套接字'/var/run/mysqld/mysqld.sock& 下一篇:控制器文件已加载但类不存在?

                  相关文章

                  最新文章

                  <tfoot id='Txyvm'></tfoot>

                    <legend id='Txyvm'><style id='Txyvm'><dir id='Txyvm'><q id='Txyvm'></q></dir></style></legend>

                    1. <small id='Txyvm'></small><noframes id='Txyvm'>

                      • <bdo id='Txyvm'></bdo><ul id='Txyvm'></ul>

                      <i id='Txyvm'><tr id='Txyvm'><dt id='Txyvm'><q id='Txyvm'><span id='Txyvm'><b id='Txyvm'><form id='Txyvm'><ins id='Txyvm'></ins><ul id='Txyvm'></ul><sub id='Txyvm'></sub></form><legend id='Txyvm'></legend><bdo id='Txyvm'><pre id='Txyvm'><center id='Txyvm'></center></pre></bdo></b><th id='Txyvm'></th></span></q></dt></tr></i><div id='Txyvm'><tfoot id='Txyvm'></tfoot><dl id='Txyvm'><fieldset id='Txyvm'></fieldset></dl></div>