Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55780

User property LastGrantedAuthoritiesProperty is not updated when LDAP user is login

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core, ldap-plugin
    • None
    • Ubuntu 16.04.5
      OpenJDK 1.8.0.191
      Jenkins 2.138.4
      LDAP plugin 1.20
      Role-based Authorization Strategy 2.9.0

      When a new user FIRST-TIME using LDAP credential to login,

      Jenkins will create

      <Jenkins_Install_DIR>/users/<USER_ID>/config.xml file,

      and update LastGrantedAuthoritiesProperty attribute with the current timestamp:

       
      <jenkins.security.LastGrantedAuthoritiesProperty>
      <roles>
      <string>authenticated</string>
      </roles>
      <timestamp>1548376473889</timestamp>
      </jenkins.security.LastGrantedAuthoritiesProperty>

       

      But any subsequent LDAP login,

      the timestamp of LastGrantedAuthoritiesProperty is not updated anymore.

       

       

       

       

       

          [JENKINS-55780] User property LastGrantedAuthoritiesProperty is not updated when LDAP user is login

          Rick Liu created issue -
          Rick Liu made changes -
          Description Original: When a new user *FIRST-TIME* using LDAP credential to login,

          Jenkins will create

          {{*<Jenkins_Install_DIR>/users/<USER_ID>/config.xml* file,}}

          {{and update *LastGrantedAuthoritiesProperty* attribute with the current timestamp:}}

           

          {{ <jenkins.security.*LastGrantedAuthoritiesProperty*>}}
          {{ <roles>}}
          {{ <string>authenticated</string>}}
          {{ </roles>}}
          {{ <timestamp>*1548376473889*</timestamp>}}
          {{ </jenkins.security.LastGrantedAuthoritiesProperty>}}

           

          But any subsequent LDAP login,

          the *timestamp* of {{*LastGrantedAuthoritiesProperty*}} is not updated anymore.

           

           

           

           

           
          New: When a new user *FIRST-TIME* using LDAP credential to login,

          Jenkins will create

          {{*<Jenkins_Install_DIR>/users/<USER_ID>/config.xml* file,}}

          {{and update *LastGrantedAuthoritiesProperty* attribute with the current timestamp:}}

           
          <jenkins.security.*LastGrantedAuthoritiesProperty*>
          <roles>
          <string>authenticated</string>
          </roles>
          <timestamp>*1548376473889*</timestamp>
          </jenkins.security.LastGrantedAuthoritiesProperty>

           

          But any subsequent LDAP login,

          the *timestamp* of {{*LastGrantedAuthoritiesProperty*}} is not updated anymore.

           

           

           

           

           
          Oleg Nenashev made changes -
          Component/s Original: role-strategy-plugin [ 15758 ]
          Oleg Nenashev made changes -
          Assignee Original: Oleg Nenashev [ oleg_nenashev ]

          Oleg Nenashev added a comment -

          The request is not related to the Role Strategy plugin

          Oleg Nenashev added a comment - The request is not related to the Role Strategy plugin

            Unassigned Unassigned
            totoroliu Rick Liu
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: