如何解决SVN在未经许可的https上访问repro时会挂起并反复重试
我正在尝试使用Apache,mod_dav等进行https访问。在迁移方面,我发现我的脚本巧妙地将用户移到了挂起状态,而不是当用户无权访问a时因错误而退出复制的特定部分。问题在于我们使用的是svn + ssh,但没有为我们提供足够的权限。
所以一旦我执行了 svn relocare ssh + svn://server.company.name/repo-path https://server.company.name/repro-path
用户在不再拥有其权限的目录上,svn命令只是简单地反复尝试访问服务器。糟糕,因为用户永远不会收到有关错误的通知,而且还会对服务器造成冲击。从日志中可以清楚地看到拒绝权限: 我反复在日志中得到以下内容,客户端坐在那里并挂起。
有什么方法可以使svn在一次失败后停止?
致谢 J
[Tue Oct 27 10:03:09.228185 2020] [core:debug] [pid 17782] util_cookies.c(59): [client 10.0.100.58:37486] AH00007: ap_cookie: user 'MyUser' set cookie: 'krb5_session=MagBearerToken=wUoHtvoqJgcTAIQ86oHhG5VaWQJfuHwRuGAFA7feslGZo21VFYY5%2b0syILcxBxA0hmEtfNBbAIwq6IwNzBoC6RQgW5jmS2Z0SNLspHmWQxYvGFFSSNIkyBxmPNME%2fD8mSF%2fpelF8bZu7UYdablxTZdek2wQWYZZvABoy7YkhdFQ%3d;path=/;httponly;secure;'
[Tue Oct 27 10:03:09.508215 2020] [authz_core:debug] [pid 17782] mod_authz_core.c(809): [client 10.0.100.58:37498] AH01626: authorization result of Require ldap-group-platform : denied (no authenticated user yet)
[Tue Oct 27 10:03:09.508231 2020] [authz_core:debug] [pid 17782] mod_authz_core.c(809): [client 10.0.100.58:37498] AH01626: authorization result of Require valid-user : denied (no authenticated user yet)
[Tue Oct 27 10:03:09.508234 2020] [authz_core:debug] [pid 17782] mod_authz_core.c(809): [client 10.0.100.58:37498] AH01626: authorization result of <RequireAll>: denied (no authenticated user yet)
[Tue Oct 27 10:03:09.508237 2020] [authz_core:debug] [pid 17782] mod_authz_core.c(809): [client 10.0.100.58:37498] AH01626: authorization result of <RequireAny>: denied (no authenticated user yet)
[Tue Oct 27 10:03:09.508243 2020] [auth_gssapi:debug] [pid 17782] mod_auth_gssapi.c(857): [client 10.0.100.58:37498] URI: /repo-directory,no main,no prev
[Tue Oct 27 10:03:09.529450 2020] [authnz_ldap:debug] [pid 17782] mod_authnz_ldap.c(840): [client 10.0.100.58:37498] AH01710: ldap authorize: Creating LDAP req structure
[Tue Oct 27 10:03:09.529474 2020] [authnz_ldap:debug] [pid 17782] mod_authnz_ldap.c(895): [client 10.0.100.58:37498] AH01713: auth_ldap authorize: require group: testing for group membership in "CN=svn_platform,CN=groups,CN=accounts,DC=subdomain,DC=Domain,DC=TOPLEVELDOMAIN"
[Tue Oct 27 10:03:09.529477 2020] [authnz_ldap:debug] [pid 17782] mod_authnz_ldap.c(903): [client 10.0.100.58:37498] AH01714: auth_ldap authorize: require group: testing for member: uid=MyUser,cn=users,cn=accounts,dc=subdomain.dc=domain,dc=topleveldomain (CN=svn_platform,DC=TOPLEVELDOMAIN)
[Tue Oct 27 10:03:09.529485 2020] [authnz_ldap:debug] [pid 17782] mod_authnz_ldap.c(922): [client 10.0.100.58:37498] AH01719: auth_ldap authorize: require group "CN=svn_platform,DC=TOPLEVELDOMAIN": didn't match with attr Comparison false (cached) [member][5 - Compare False]
[Tue Oct 27 10:03:09.529488 2020] [authnz_ldap:debug] [pid 17782] mod_authnz_ldap.c(903): [client 10.0.100.58:37498] AH01714: auth_ldap authorize: require group: testing for uniqueMember: uid=MyUser,DC=TOPLEVELDOMAIN)
[Tue Oct 27 10:03:09.530384 2020] [authnz_ldap:debug] [pid 17782] mod_authnz_ldap.c(922): [client 10.0.100.58:37498] AH01719: auth_ldap authorize: require group "CN=svn_platform,DC=TOPLEVELDOMAIN": didn't match with attr Comparison complete [uniqueMember][50 - Insufficient access]
[Tue Oct 27 10:03:09.530400 2020] [authnz_ldap:debug] [pid 17782] mod_authnz_ldap.c(939): [client 10.0.100.58:37498] AH01716: auth_ldap authorise: require group "CN=svn_platform,DC=TOPLEVELDOMAIN": failed [Comparison complete][50 - Insufficient access],checking sub-groups
[Tue Oct 27 10:03:09.530411 2020] [ldap:debug] [pid 17782] util_ldap.c(1469): [client 10.0.100.58:37498] AH01288: Making local copy of SGL for group (CN=svn_platform,DC=TOPLEVELDOMAIN)(objectClass=ipausergroup)
[Tue Oct 27 10:03:09.530423 2020] [ldap:debug] [pid 17782] util_ldap.c(1611): [client 10.0.100.58:37498] AH01296: User MyUser not found in subgroup (cn=my-company-operator,cn=groups,dc=topleveldomain) at level 1 of 2.
[Tue Oct 27 10:03:09.530431 2020] [ldap:debug] [pid 17782] util_ldap.c(1469): [client 10.0.100.58:37498] AH01288: Making local copy of SGL for group (cn=my-company-operator,dc=topleveldomain)(objectClass=ipausergroup)
[Tue Oct 27 10:03:09.530442 2020] [ldap:debug] [pid 17782] util_ldap.c(1611): [client 10.0.100.58:37498] AH01296: User MyUser not found in subgroup (cn=role_subversion,dc=topleveldomain) at level 2 of 2.
[Tue Oct 27 10:03:09.530444 2020] [authnz_ldap:debug] [pid 17782] mod_authnz_ldap.c(962): [client 10.0.100.58:37498] AH01718: auth_ldap authorise: require group (sub-group) "CN=svn_platform,DC=TOPLEVELDOMAIN": didn't match with attr Comparison no such attribute (cached) [member][5 - Compare False]
[Tue Oct 27 10:03:09.530448 2020] [authnz_ldap:debug] [pid 17782] mod_authnz_ldap.c(939): [client 10.0.100.58:37498] AH01716: auth_ldap authorise: require group "CN=svn_platform,DC=TOPLEVELDOMAIN": failed [Comparison no such attribute (cached)][5 - Compare False],checking sub-groups
[Tue Oct 27 10:03:09.530456 2020] [ldap:debug] [pid 17782] util_ldap.c(1469): [client 10.0.100.58:37498] AH01288: Making local copy of SGL for group (CN=svn_platform,DC=TOPLEVELDOMAIN)(objectClass=ipausergroup)
[Tue Oct 27 10:03:09.530959 2020] [ldap:debug] [pid 17782] util_ldap.c(1611): [client 10.0.100.58:37498] AH01296: User MyUser not found in subgroup (cn=my-company-operator,dc=topleveldomain) at level 1 of 2.
[Tue Oct 27 10:03:09.530990 2020] [ldap:debug] [pid 17782] util_ldap.c(1469): [client 10.0.100.58:37498] AH01288: Making local copy of SGL for group (cn=my-company-operator,dc=topleveldomain)(objectClass=ipausergroup)
[Tue Oct 27 10:03:09.531777 2020] [ldap:debug] [pid 17782] util_ldap.c(1611): [client 10.0.100.58:37498] AH01296: User MyUser not found in subgroup (cn=role_subversion,dc=topleveldomain) at level 2 of 2.
[Tue Oct 27 10:03:09.531788 2020] [authnz_ldap:debug] [pid 17782] mod_authnz_ldap.c(962): [client 10.0.100.58:37498] AH01718: auth_ldap authorise: require group (sub-group) "CN=svn_platform,DC=TOPLEVELDOMAIN": didn't match with attr Comparison complete [uniqueMember][5 - Compare False]
[Tue Oct 27 10:03:09.531791 2020] [authnz_ldap:debug] [pid 17782] mod_authnz_ldap.c(969): [client 10.0.100.58:37498] AH01720: auth_ldap authorize group: authorization denied for user MyUser to /repo-directory
[Tue Oct 27 10:03:09.531795 2020] [authz_core:debug] [pid 17782] mod_authz_core.c(809): [client 10.0.100.58:37498] AH01626: authorization result of Require ldap-group-platform : denied
[Tue Oct 27 10:03:09.531798 2020] [authz_core:debug] [pid 17782] mod_authz_core.c(809): [client 10.0.100.58:37498] AH01626: authorization result of <RequireAll>: denied
[Tue Oct 27 10:03:09.531800 2020] [authz_core:debug] [pid 17782] mod_authz_core.c(809): [client 10.0.100.58:37498] AH01626: authorization result of <RequireAny>: denied
[Tue Oct 27 10:03:09.531803 2020] [authz_core:error] [pid 17782] [client 10.0.100.58:37498] AH01631: user MyUser: authorization failure for "/repo-directory":
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。