linux下 srv&gerrit 做ldap认证

博客介绍了SVN服务和Gerrit服务与LDAP的整合。在SVN服务中,基于saslauthd构建AD验证的SVN服务器,并给出了相关配置信息;在Gerrit服务中,展示了Gerrit整合LDAP的方法及gerrit.config的配置内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、svn服务(subversion)
1、基于saslauthd构建AD验证的SVN服务器
https://www.docin.com/p-1036806577.html
2、cat /etcsaslauthd.conf

ldap_servers: ldap://168.8.80.28
ldap_default_domain:hangsheng.cn
ldap_search_base:DC=hangsheng,DC=cn
ldap_bind_dn:hangsheng\jssvnuser1
ldap_password:jssvnuser1
ldap_deref: never
ldap_restart: yes
ldap_scope: sub
ldap_use_sasl: no
ldap_start_tls: no
ldap_version: 3
ldap_auth_method: bind
ldap_mech: DIGEST-MD5
ldap_filter:sAMAccountName=%u
ldap_password_attr:userPassword
ldap_timeout: 10
ldap_cache_ttl: 30
ldap_cache_mem: 32786

二、Gerrit服务
1、Gerrit 整合 ldap
https://blog.iamzhl.top/Gerrit-integrate-with-ldap-and-CAS.html
2、cat gerrit.config

[auth]

type = DEVELOPMENT_BECOME_ANY_ACCOUNT

    type = LDAP
    gitBasicAuthPolicy = LDAP

[receive]

enableSignedPush = true

     enableSignedPush = false

[ldap]
server = ldap://168.8.80.28:389
username = cn=jssvnuser1,OU=computer,DC=hangsheng,DC=cn
password = jssvnuser1
accountBase = DC=hangsheng,DC=cn
groupBase = DC=hangsheng,DC=cn
accountPattern = (sAMAccountName=${username})
accountFullName = uid
[sendemail]
enable = true
smtpServer = wxx.hangsheng.com.cn
smtpUser = jssvnuser1@hangsheng.com.cn
smtpPass = jssvnuser1
sslVerify = false
from = jssvnuser1@hangsheng.com.cn


转载于:https://blog.51cto.com/jackysz/2366327

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值