LDAP - Subversion问题

时间:2014-10-13 13:40:44

标签: svn ldap tuleap

我们最近将LDAP与Tuleap集成,我们在过去的一年中使用了Tuleap,但最近我们集成了LDAP。我们在一个项目中面临一个问题,如下所示。我们无法访问“浏览SVN树”选项 - 当我转到subversion时 - >浏览SVN树(在Tuleap中。)出现以下错误:

An exception has occurred.
** Python Traceback.**
**Traceback (most recent call last):**

File "/usr/share/viewvc/lib/viewvc.py", line 3814, in main
     request.run_viewvc()
File "/usr/share/viewvc/lib/viewvc.py", line 318, in run_viewvc
        if not svnaccess.check_read_access(user.user_getname(), self.rootpath, self.where):
File "/usr/share/tuleap/src/www/../utils/svn/svnaccess.py", line 130, in check_read_access
        username = get_name_for_svn_access(svnrepo, username)
File "/usr/share/tuleap/src/www/../utils/svn/svnaccess.py", line 119, in get_name_for_svn_access
        return codendildap.get_login_from_username(username)
File "/usr/share/tuleap/src/www/../utils/svn/codendildap.py", line 60, in get_login_from_username
        return get_login_from_eduid(row['ldap_id'])
File "/usr/share/tuleap/src/www/../utils/svn/codendildap.py", line 43, in get_login_from_eduid
        l = ldap_connect()
File "/usr/share/tuleap/src/www/../utils/svn/codendildap.py", line 33, in ldap_connect
        l = ldap.open(server)
File "/usr/lib64/python2.6/site-packages/ldap/functions.py", line 104, in open
        return initialize('ldap://%s:%d' % (host,port),trace_level,trace_file,trace_stack_limit)
File "/usr/lib64/python2.6/site-packages/ldap/functions.py", line 85, in initialize
        return LDAPObject(uri,trace_level,trace_file,trace_stack_limit)
File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 69, in __init__
        self._l = ldap.functions._ldap_function_call(_ldap.initialize,uri)
File "/usr/lib64/python2.6/site-packages/ldap/functions.py", line 57, in _ldap_function_call
        result = func(*args,**kwargs)
    LDAPError: (0, 'Error')

以下是您参考的LDAP配置。

$sys_ldap_server = 'X.X.X.X:xxx'; 
$sys_ldap_cn='cn';
$sys_ldap_people_dn='ou=Users,dc=xxxx,dc=org'; 
$sys_ldap_search_user='(|(uid=%words%)(cn=%words%))'; 
$sys_ldap_default_user_status='A'; 
$sys_ldap_svn_auth=1; 
$sys_ldap_daily_sync=1; 
$sys_ldap_user_management=1; 
$sys_ldap_grp_enabled = 1; 
$sys_ldap_grp_dn='ou=groups,dc=xxxx,dc=org'; 
$sys_ldap_grp_cn = 'cn'; 
$sys_ldap_grp_member='uniquemember';

1 个答案:

答案 0 :(得分:0)

我建议您替换

$sys_ldap_server = 'X.X.X.X:xxx'

通过

$sys_ldap_server = 'ldap(s)://X.X.X.X:xxx'

(s)取决于您是否使用ssl