•  
      request #8008 SVN Tree LDAP Problem
    Infos
    #8008
    Jimmy Jones (jimmy)
    2017-02-03 16:13
    2015-04-15 12:03
    8027
    Details
    SVN Tree LDAP Problem

    After creating a new project and trying to open the svn tree i got this error below. LDAP authentication works fine, i am out of ideas. Tuleap version is 8.0.99.26

     

    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 47, in get_login_from_eduid
        username = entry[include.sys_ldap_uid][0].lower();
    KeyError: 'samaccountname'

     

    SCM/Subversion
    Empty
    CentOS 6
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2017-02-03
    Attachments
    References
    References list is empty

    Follow-ups

    User avatar
    • Status changed from New to Closed
    • Reported in version cleared values: 8.0
    • Close date set to 2017-02-03
    User avatar
    Jimmy Jones (jimmy)2015-04-15 15:20
    last edited by: Jimmy Jones (jimmy) 2015-04-15 15:21
    I solved by editing the file /usr/share/tuleap/src/utils/svn/codendildap.py and managing the exception on KeyError. This appens because for standard authentication samaccount(as defined in my configuration file) is used(all the users are logging fine with ldap), while in svn ldap authentication is using sAMAccount as uid. So when i have this exception i am taking the value from dictionary using 'sAMAccount'. Guess there is a problem with ldap and svn and reading from config.