使用SASL和OpenLDAP对Active Directory进行SVN身份验证

时间:2011-08-29 16:40:53

标签: svn gentoo sasl

我一直在关注我在网上找到的所有指南,以获得正常工作的svnserve + SASL + OpenLDAP配置,我让所有工作都工作了大约一天,然后在玩svn + ssh之后我有点想破坏一些东西并且不能让它再次运作。

在我的/ srv / svn / repo / conf / authz文件中,我列出了这样的Active Directory组:

Admins = User One, User Two
Engineers = Other User, Someone Else

它正在使用每个用户的CN用于那些以前工作的组,但现在我可以让我的SVN客户端进行身份验证的唯一方法是,如果我在authz文件中为这些组指定用户名而不是CN。 / p>

以下是我的配置(在Gentoo系统上,为安全性编辑了域名和密码):

/etc/conf.d/saslauthd:

SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -a ldap"

/etc/saslauthd.conf:

# LDAP auth/lookup settings
ldap_servers: ldap://domain.com
ldap_default_domain: domain.com
ldap_search_base: DC=domain,DC=com
ldap_bind_dn: CN=LDAP Bind,CN=Users,DC=domain,DC=com
ldap_bind_pw: password

# AD Options
ldap_deref: never
ldap_restart: yes
ldap_use_sasl: no
ldap_start_tls: no
ldap_version: 3
ldap_auth_method: bind
ldap_filter: sAMAccountName=%U
ldap_password_attr: userPassword
ldap_timeout: 10
ldap_cache_ttl: 30
ldap_cache_mem: 32768
ldap_mech: PLAIN

/etc/sasl2/svn.conf:

pwcheck_method: saslauthd
auxprop_plugin: ldap
mech_list: PLAIN LOGIN
ldapdb_mech: PLAIN LOGIN

/srv/svn/repo/conf/svnserve.conf:

[general]
anon-access = none
auth-access = write
authz-db = /srv/svn/repo/conf/authz
realm = Engineering

[sasl]
use-sasl = true
min-encryption = 0

我无法弄清楚当我使用svn + ssh选项时可能会发生什么变化,当我意识到它不起作用时我会忘记恢复它们。任何帮助将不胜感激。

0 个答案:

没有答案