Google Authenticator 和gitlab使用的方法配置Google AuthenticatorGoogle

Survive by day and develop by night.
talk for import biz , show your perfect code,full busy,skip hardness,make a better result,wait for change,challenge Survive.
happy for hardess to solve denpendies.

目录

在这里插入图片描述

概述

Google Authenticator 和gitlab使用的方法

需求:

gitlab 的方法:
让GitLab支持ldap账号登录将是很好的体验。

设计思路

实现思路分析

1.配置过程:

GitLab可以通过LDAP(Lightweight Directory Access Protocol)进行身份验证。LDAP是一种用于访问分布式目录服务的协议。在GitLab中配置LDAP认证可以让用户在使用GitLab时使用他们在LDAP中的身份验证信息。下面是GitLab配置LDAP认证的步骤:

  1. 打开GitLab管理员页面,转到“设置”>“LDAP”选项卡。

  2. 配置LDAP服务器的相关信息,如服务器地址、端口、基础DN等。

  3. 配置LDAP用户过滤器,以过滤掉不需要认证的用户。

  4. 配置LDAP组过滤器,以将LDAP中的组映射到GitLab的组。

  5. 配置LDAP属性映射,以将LDAP中的属性映射到GitLab中的属性,如用户名、电子邮件地址等。

  6. 点击“测试”按钮测试LDAP连接是否正常。

  7. 点击“保存”按钮保存配置。

成功配置LDAP认证后,用户可以通过其LDAP凭据登录GitLab,并访问其帐户和权限,这将大大简化用户管理并提高安全性。

其中可以设置对应的安全策略中心,
Google AuthenticatorGoogle:

Google Authenticator is a security application developed by Google. It provides two-factor authentication for online services by generating time-based one-time passwords (TOTP). It works by linking a user’s Google account or other online accounts with the Google Authenticator app. The app then generates a unique code that changes every 30 seconds, which the user enters when prompted as a second layer of authentication. This helps to protect against unauthorized access to online accounts. It can be used for services such as Google, Facebook, Dropbox, and many others.

参考资料和推荐阅读

参考资料
官方文档
开源社区
博客文章
书籍推荐

  1. https://blog.csdn.net/l2931050/article/details/124843967
  2. https://baike.baidu.com/item/Google%20Authenticator/58350750?fr=ge_ala

欢迎阅读,各位老铁,如果对你有帮助,点个赞加个关注呗!同时,期望各位大佬的批评指正~

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

执于代码

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值