gpt4 book ai didi

ubuntu - 了解 Gitlab 中的所有 LDAP 用户

转载 作者:行者123 更新时间:2023-12-04 18:31:41 24 4
gpt4 key购买 nike

是否有任何命令或任何方法可以查看 Gitlab 中 LDAP 设置中指定的所有用户及其详细信息(如 CN、OU、DC)或 Ubuntu terminal

最佳答案

LDAP 将用作身份验证的一种方式,但任何可能尚未登录 GitLab 的 LDAP 用户都不会被报告:GitLab 仅在第一次连接时创建用户。

含义:并不是因为您有 2000 个可以通过 LDAP 进行身份验证的用户,GitLab 才会显示 2000 个用户。

关于 LDAP,只有 ldapsearch 可以列出潜在用户:

ldapsearch -H ldap://ad-your-server:<yourPort> -x \
-D "<yourBindACcount>" -w <yourBindpassword> -b "DC=xxx,DC=yyy,DC=zz" \
-s sub -a always -z 1000 \
"(&(memberOf=CN=<aGRoup>,OU=aaa,OU=bbb,OU=...,DC=xxx,...)"

关于 GitLab,请查看 Rake task LDAP :
# Omnibus installation
sudo gitlab-rake gitlab:ldap:check

By default, the task will return a sample of 100 LDAP users. Change this limit by passing a number to the check task:


rake gitlab:ldap:check[50]

这仅用于检查:这不会列出所有用户。

关于ubuntu - 了解 Gitlab 中的所有 LDAP 用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50576417/

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