File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -852,7 +852,7 @@ rm -rf /bitnami/openldap/slapd.d/*
852852slapadd -F /bitnami/openldap/slapd.d -n 0 -l config-backup.ldif
853853```
854854
855-
855+
856856
857857恢复成功后需要重启容器才能生效
858858
Original file line number Diff line number Diff line change @@ -253,7 +253,28 @@ gitea-db-1 mysql:8 "docker-entrypoint.s…" db About a m
253253
254254gitea配置文件是 ` gitea/gitea/conf/app.ini `
255255
256- 例如,手动关闭页面注册按钮,修改 ` app.ini ` 文件中的` SHOW_REGISTRATION_BUTTON ` 一项
256+ 例如,手动关闭页面注册按钮,修改 ` app.ini ` 文件中的` DISABLE_REGISTRATION ` 一项
257+
258+ ``` shell
259+ [service]
260+ DISABLE_REGISTRATION = true
261+ ```
262+
263+
264+
265+
266+
267+ 默认是允许注册的
268+
269+ ![ iShot_2025-09-26_11.40.24] ( https://raw.githubusercontent.com/pptfz/picgo-images/master/img/iShot_2025-09-26_11.40.24.png )
270+
271+
272+
273+ 关闭注册后注册按钮就不见了
274+
275+ ![ iShot_2025-09-26_12.31.00] ( https://raw.githubusercontent.com/pptfz/picgo-images/master/img/iShot_2025-09-26_12.31.00.png )
276+
277+
257278
258279
259280
Original file line number Diff line number Diff line change @@ -16,9 +16,39 @@ ldap认证类型有 [LDAP (via BindDN)](https://docs.gitea.cn/usage/authenticati
1616
1717
1818
19+ ## 配置认证源
20+
1921ldap via BindDN 配置页面
2022
2123![ iShot_2025-09-18_10.15.34] ( https://raw.githubusercontent.com/pptfz/picgo-images/master/img/iShot_2025-09-18_10.15.34.png )
2224
2325
2426
27+ 更多详细配置可参考 [ 官方文档] ( https://docs.gitea.cn/usage/authentication#ldapvia-binddn )
28+
29+
30+
31+ 绑定DN
32+
33+ ``` shell
34+ cn=admin,dc=ops,dc=com
35+ ```
36+
37+
38+
39+ 用户搜索基准
40+
41+ ``` shell
42+ ou=ou_name1,dc=ops,dc=com
43+ ```
44+
45+
46+
47+ 用户过滤规则
48+
49+ ``` shell
50+ (& (objectClass=posixAccount)(| (uid=%[1]s)(mail=%[1]s)))
51+ ```
52+
53+
54+
Original file line number Diff line number Diff line change 44
55
66
7- ## 1. 简介
7+ ## 简介
88
99gvm是一个go版本管理工具,可以很方便的切换当前系统使用的go的不同版本,以解决在不同开发环境下go版本和api等的依赖关系
1010
1111
1212
13- ## 2. 安装
13+ ## 安装
1414
1515:::tip 说明
1616
@@ -212,7 +212,7 @@ Go Version Manager v1.0.22 installed at /Users/pptfz/.gvm
212212
213213
214214
215- ## 3. 使用
215+ ## 使用
216216
217217列出所有已安装的go版本
218218
You can’t perform that action at this time.
0 commit comments