gpt4 book ai didi

GitLab CE : Block new users after manual registration

转载 作者:行者123 更新时间:2023-12-04 13:04:53 27 4
gpt4 key购买 nike

我正在锁定正确的 GitLab CE 服务器配置以阻止通过注册页面(用户名/名称/密码)手动注册的新用户。在管理员手动确认之前,应阻止此用户。

我找到了阻止新(自动创建的)用户的选项 LDAPOmniAuth gitlab.yml 但不适用于刚刚在注册页面注册的普通用户帐户:

## LDAP settings
ldap:
servers:
main:
block_auto_created_users: true

## OmniAuth settings
omniauth:
block_auto_created_users: true

我想让用户自己注册,所以不希望完全禁用管理区域:

admin area sign-in restrictions

如何配置 GitLab CE 以阻止刚刚注册的新用户,以便我对新用户进行管理员确认(不使用 LDAPOmniAuth)?

GitLab 版本是 8.5.7 CE .

最佳答案

您现在(2020 年 10 月)可以使用 GitLab 13.5 替代:

Required approval for new user registration

To reduce the operational burden on GitLab administrators without compromising security, GitLab 13.5 introduces a new instance-level option to require administrator approval for any new user accounts.

This option is disabled by default but when enabled, will require manual approval by instance administrators before users that completed the sign-up process can access the instance.

See Documentation and Epic.


和:
GitLab 13.6 (2020 年 11 月)

Admin approval required by default for new user registrations

In GitLab 13.5, we introduced the option to require administrator approval for new user registrations.

To increase security of our default configuration, GitLab 13.6 makes this option the default experience for new instances.

We have also introduced email notifications to instance administrators when a new signup occurs and to users when their registration is approved.
Email notifications at these critical steps in the process help reduce the turnaround time to onboard users when administrator approval is required.

See Documentation and Epic.

关于GitLab CE : Block new users after manual registration,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36039353/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com