首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gerrit LDAP mandatoryGroup

Gerrit LDAP mandatoryGroup
EN

Stack Overflow用户
提问于 2018-12-12 05:35:40
回答 1查看 252关注 0票数 0

如何在Gerrit的LDAP中配置mandatoryGroup?我的gerrit.conf目前是这样的.我不确定LDAP值应该是mandatoryGroup语法还是计划文本。我不能根据文档来解决这个问题。

https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#ldap

代码语言:javascript
复制
ldap.mandatoryGroup

All users must be a member of this group to allow account creation or authentication.

Setting mandatoryGroup implies enabling of ldap.fetchMemberOfEagerly

By default, unset.

gerrit.config

代码语言:javascript
复制
[ldap]
    server = ldaps://company.com
    sslVerify = false
    username = ldapUsername
    password = ldapPassword
    accountBase = DC=COMPANY_DOMAIN,DC=LOCAL
    groupBase = DC=COMPANY_DOMAIN,DC=LOCAL
    referral = follow
    accountPattern = (sAMAccountName=${username})
    groupPattern = (cn=${groupname})
    accountFullName = displayName
    accountMemberField = memberOf
    accountEmailAddress = mail
    mandatoryGroup = grp_IT_SourceCode
EN

回答 1

Stack Overflow用户

发布于 2019-01-12 04:35:17

mandatoryGroup = ldap/"AD_Group_Name“适用于我...我不知道为什么,但是在AD组之前需要"ldap/“,现在一切都好了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53732683

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档