Skip to content

Commit 03367b9

Browse files
committed
feat: modify readme
1 parent 0d42c6f commit 03367b9

File tree

3 files changed

+90
-36
lines changed

3 files changed

+90
-36
lines changed

.github/workflows/docker-image.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
# Allows you to run this workflow manually from the Actions tab
12-
# 可以手动触发
12+
# 可以手动触发
1313
workflow_dispatch:
1414
inputs:
1515
logLevel:
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/checkout@v2
2929
- name: Get current date
3030
id: date
31-
run: echo "::set-output name=today::$(date +'%Y-%m-%d')"
31+
run: echo "::set-output name=today::$(date +'%Y-%m-%d_%H-%M')"
3232
-
3333
name: Set up QEMU
3434
uses: docker/setup-qemu-action@v1
@@ -51,11 +51,11 @@ jobs:
5151
with:
5252
context: .
5353
file: ./Dockerfile
54-
# 所需要的体系结构,可以在 Available platforms 步骤中获取所有的可用架构
54+
# 所需要的体系结构,可以在 Available platforms 步骤中获取所有的可用架构
5555
platforms: linux/amd64,linux/arm64/v8
56-
# 镜像推送时间
56+
# 镜像推送时间
5757
push: ${{ github.event_name != 'pull_request' }}
58-
# 给清单打上多个标签
58+
# 给清单打上多个标签
5959
tags: |
6060
eryajf/go-ldap-admin-ui:${{ steps.date.outputs.today }}
6161
eryajf/go-ldap-admin-ui:latest
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Generate a list of contributors
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
contrib-readme-en-job:
10+
runs-on: ubuntu-latest
11+
name: A job to automate contrib in readme
12+
steps:
13+
- name: Contribute List
14+
uses: akhilmhdh/[email protected]
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

README.md

+69-31
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,37 @@
1010
</p>
1111
</div>
1212

13-
## 缘起
14-
15-
我曾经经历的公司强依赖openLDAP来作为企业内部员工管理的平台,并通过openLDAP进行各平台的认证打通工作。
16-
17-
但成也萧何败也萧何,给运维省力的同时,ldap又是维护不够友好的。
18-
19-
[godap](https://github.com/bradleypeabody/godap)项目中,作者这样描述对ldap的感受:
20-
21-
> The short version of the story goes like this: I hate LDAP. I used to love it. But I loved it for all the wrong reasons. LDAP is supported as an authentication solution by many different pieces of software. Aside from its de jure standard status, its wide deployment cements it as a de facto standard as well.
22-
>
23-
> However, just because it is a standard doesn't mean it is a great idea.
24-
>
25-
> I'll admit that given its age LDAP has had a good run. I'm sure its authors carefully considered how to construct the protocol and chose ASN.1 and its encoding with all of wellest of well meaning intentions.
26-
>
27-
> The trouble is that with today's Internet, LDAP is just a pain in the ass. You can't call it from your browser. It's not human readable or easy to debug. Tooling is often arcane and confusing. It's way more complicated than what is needed for most simple authentication-only uses. (Yes, I know there are many other uses than authentication - but it's often too complicated for those too.)
28-
>
29-
> Likely owing to the complexity of the protocol, there seems to be virtually no easy to use library to implement the server side of the LDAP protocol that isn't tied in with some complete directory server system; and certainly not in a language as easy to "make it work" as Go.
30-
31-
他说他对ldap又爱又恨,因为ldap出现的最早,许多的三方软件都兼容支持它,它成了这方面的一个标准。但问题在于,它对于维护者而言,又是复杂麻烦的。就算是有Phpldapadmin这样的平台能够在浏览器维护,但看到那样上古的界面,以及复杂的交互逻辑,仍旧能够把不少人劝退。
32-
33-
鉴于此,我开发了这个现代化的openLDAP管理后台。
13+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
14+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
15+
**目录**
16+
17+
- [在线体验](#%E5%9C%A8%E7%BA%BF%E4%BD%93%E9%AA%8C)
18+
- [项目地址](#%E9%A1%B9%E7%9B%AE%E5%9C%B0%E5%9D%80)
19+
- [核心功能](#%E6%A0%B8%E5%BF%83%E5%8A%9F%E8%83%BD)
20+
- [快速开始](#%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B)
21+
- [本地开发](#%E6%9C%AC%E5%9C%B0%E5%BC%80%E5%8F%91)
22+
- [生产部署](#%E7%94%9F%E4%BA%A7%E9%83%A8%E7%BD%B2)
23+
- [感谢](#%E6%84%9F%E8%B0%A2)
24+
- [另外](#%E5%8F%A6%E5%A4%96)
25+
- [贡献者](#%E8%B4%A1%E7%8C%AE%E8%80%85)
26+
- [加群](#%E5%8A%A0%E7%BE%A4)
27+
- [为什么有这个项目](#%E4%B8%BA%E4%BB%80%E4%B9%88%E6%9C%89%E8%BF%99%E4%B8%AA%E9%A1%B9%E7%9B%AE)
28+
29+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
3430

3531
## 在线体验
3632

3733
> admin / 123456
3834
3935
演示地址:[http://demo-go-ldap-admin.eryajf.net](http://demo-go-ldap-admin.eryajf.net)
36+
37+
## 项目地址
38+
39+
| 分类 | GitHub | Gitee |
40+
| :--: | :--------------------------------------------------: | :-------------------------------------------------: |
41+
| 后端 | https://github.com/eryajf/go-ldap-admin.git | https://gitee.com/eryajf-world/go-ldap-admin.git |
42+
| 前端 | https://github.com/eryajf/go-ldap-admin-ui.git | https://gitee.com/eryajf-world/go-ldap-admin-ui.git |
43+
4044
## 核心功能
4145

4246
- 基于 GIN WEB API 框架,基于Casbin的 RBAC 访问控制模型,JWT 认证,Validator 参数校验
@@ -52,7 +56,7 @@
5256

5357
你可以通过docker-compose在本地快速拉起进行体验。
5458

55-
快速拉起的容器包括:MySQL-5.7,openLDAP-1.4.0,phpldapadmin-0.9.0,go-ldap-admin。
59+
快速拉起的容器包括:MySQL-5.7,openLDAP-1.4.0,phpldapadmin-0.9.0,go-ldap-admin-server,go-ldap-admin-ui
5660

5761
服务端口映射如下:
5862

@@ -66,14 +70,15 @@
6670
拉起之前确认是否有与本地端口冲突的情况。
6771

6872
```
69-
$ git clone https://github.com/eryajf-world/go-ldap-admin.git
73+
$ git clone https://github.com/eryajf/go-ldap-admin.git
7074
7175
$ cd docs/docker-compose
7276
7377
$ docker-compose up -d
7478
```
7579

76-
当看到容器都正常运行之后,可以在本地访问:http://localhost:8090,用户名/密码:admin/123456
80+
当看到容器都正常运行之后,可以在本地进行访问:http://localhost:8090,用户名/密码:admin/123456
81+
如果想要访问PhpLdapAdmin,则可访问:http://localhost:8091,用户名/密码:cn=admin,dc=eryajf,dc=net/123456
7782

7883
`登录页:`
7984

@@ -89,7 +94,7 @@ $ docker-compose up -d
8994

9095
`分组管理:`
9196

92-
![](http://t.eryajf.net/imgs/2022/05/cb7bcd851b2c972f.png)
97+
![](http://t.eryajf.net/imgs/2022/05/e49632b76a4327ec.png)
9398

9499
`分组内成员管理:`
95100

@@ -105,10 +110,10 @@ $ docker-compose up -d
105110

106111
```
107112
# 后端代码
108-
$ git clone https://github.com/eryajf-world/go-ldap-admin.git
113+
$ git clone https://github.com/eryajf/go-ldap-admin.git
109114
110115
# 前端代码
111-
$ git clone https://github.com/eryajf-world/go-ldap-admin-ui.git
116+
$ git clone https://github.com/eryajf/go-ldap-admin-ui.git
112117
```
113118

114119
后端目录结构:
@@ -135,7 +140,7 @@ $ cd go-ldap-admin
135140
# 文件路径 config.yml
136141
$ vim config.yml
137142
138-
# 根据自己本地的情况,调整数据库以及openLDAP的配置信息
143+
# 根据自己本地的情况,调整数据库以及openLDAP等配置信息
139144
```
140145

141146
### 启动服务
@@ -149,7 +154,8 @@ $ make run
149154
150155
# 启动前端
151156
$ cd go-ldap-admin-ui
152-
$ yarn
157+
$ git config --global url."https://".insteadOf git://
158+
$ npm install --registry=http://registry.npmmirror.com
153159
$ yarn dev
154160
```
155161

@@ -162,7 +168,7 @@ $ yarn dev
162168
```nginx
163169
server {
164170
listen 80;
165-
server_name go-ldap-admin.eryajf.net;
171+
server_name demo-go-ldap-admin.eryajf.net;
166172
167173
root /data/www/web/dist;
168174
@@ -201,4 +207,36 @@ server {
201207

202208
- 如果觉得项目不错,麻烦动动小手点个⭐️star⭐️!
203209
- 如果你还有其他想法或者需求,欢迎在issue中交流!
204-
- 程序还有很多bug,欢迎各位朋友一起协同共建!
210+
- 程序还有很多bug,欢迎各位朋友一起协同共建!
211+
212+
## 贡献者
213+
214+
<!-- readme: collaborators,contributors -start -->
215+
<!-- readme: collaborators,contributors -end -->
216+
217+
218+
## 加群
219+
220+
可通过搜索 eryajf 添加我的微信,备注 ldap 拉你进群。
221+
222+
## 为什么有这个项目
223+
224+
我曾经经历的公司强依赖openLDAP来作为企业内部员工管理的平台,并通过openLDAP进行各平台的认证打通工作。
225+
226+
但成也萧何败也萧何,给运维省力的同时,ldap又是维护不够友好的。
227+
228+
[godap](https://github.com/bradleypeabody/godap)项目中,作者这样描述对ldap的感受:
229+
230+
> The short version of the story goes like this: I hate LDAP. I used to love it. But I loved it for all the wrong reasons. LDAP is supported as an authentication solution by many different pieces of software. Aside from its de jure standard status, its wide deployment cements it as a de facto standard as well.
231+
>
232+
> However, just because it is a standard doesn't mean it is a great idea.
233+
>
234+
> I'll admit that given its age LDAP has had a good run. I'm sure its authors carefully considered how to construct the protocol and chose ASN.1 and its encoding with all of wellest of well meaning intentions.
235+
>
236+
> The trouble is that with today's Internet, LDAP is just a pain in the ass. You can't call it from your browser. It's not human readable or easy to debug. Tooling is often arcane and confusing. It's way more complicated than what is needed for most simple authentication-only uses. (Yes, I know there are many other uses than authentication - but it's often too complicated for those too.)
237+
>
238+
> Likely owing to the complexity of the protocol, there seems to be virtually no easy to use library to implement the server side of the LDAP protocol that isn't tied in with some complete directory server system; and certainly not in a language as easy to "make it work" as Go.
239+
240+
他说他对ldap又爱又恨,因为ldap出现的最早,许多的三方软件都兼容支持它,它成了这方面的一个标准。但问题在于,它对于维护者而言,又是复杂麻烦的。就算是有Phpldapadmin这样的平台能够在浏览器维护,但看到那样上古的界面,以及复杂的交互逻辑,仍旧能够把不少人劝退。
241+
242+
鉴于此,我开发了这个现代化的openLDAP管理后台。

0 commit comments

Comments
 (0)