•  
      request #8957 Authorization failed for repository enabling svn token
    Infos
    #8957
    Marc TERRIER (mterrier)
    2016-04-04 13:53
    2016-03-15 12:25
    9061
    Details
    Authorization failed for repository enabling svn token

    Let's assume the following scenario:

    1. A subcontractor is hired by some company, and receives a Tuleap account based on a LDAP entry.
    2. When he/she stops working for that company, his/her Tuleap account is suspended and renamed from xxx to xxx_del.
    3. Some time later, that same contractor has to work again for the same company, and for some unknown reason, instead of his/her account being reactivated and renamed back from xxx_del to xxx, the subcontractor receives a new Tuleap account of the same name xxx, based on a modified or new LDAP entry (depending on which attributes are required to be unique in the LDAP schema).

    We now have two LDAP entries and two Tuleap accounts (one suspended and one active) for the same person:

    mysql> select user.user_id, ldap_uid, user_name, status from plugin_ldap_user join user using(user_id) where ldap_uid like "%con%";
    +---------+-------------+-----------------+--------+
    | user_id | ldap_uid    | user_name       | status |
    +---------+-------------+-----------------+--------+
    |     116 | scontractor | scontractor_del | S      |
    |     117 | scontractor | scontractor     | A      |
    +---------+-------------+-----------------+--------+
    2 rows in set (0.00 sec)

    From then on, the person can't checkout anymore in SVN. But if we delete the database entry (in plugin_ldap_user) corresponding to the suspended account (delete from plugin_ldap_user where user_id=116; here), the checkout works again perfectly.

    SCM/Subversion
    8.11
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2016-04-04
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2016-04-04 13:53
    Integrated into Tuleap 8.13.99.8.

    • Summary
      -Autorization failed for repository enabling svn token 
      +Authorization failed for repository enabling svn token 
    • Status changed from Under review to Closed
    • Close date set to 2016-04-04
    User avatar
    Marc TERRIER (mterrier)2016-03-16 15:35
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes