Tuleap LDAP Subversion浏览Svn树问题

时间:2014-04-21 10:04:04

标签: python svn ldap tuleap

我在tuleap上启用了LDAP。但是当我去颠覆>浏览SVN树,我收到以下错误

发生了例外

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.initialize(server)   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')

$ sys_ldap_server ='X.X.X.X:xxx'; $ sys_ldap_cn = 'CN'; $ sys_ldap_people_dn = 'OU =用户,DC = XXXX,DC =组织'; $ sys_ldap_search_user = '(|(UID =%字%)(CN =%字%))'; $ 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 =基团,DC = XXXX,DC =组织'; $ sys_ldap_grp_cn ='cn'; $ sys_ldap_grp_member = 'uniquemember';

1 个答案:

答案 0 :(得分:0)

应使用ldap://(或ldaps://用于SSL LDAP)定义LDAP服务器配置变量