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

User property LastGrantedAuthoritiesProperty is not updated when LDAP user is login

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core, ldap-plugin
    • Labels:
      None
    • Environment:
      Ubuntu 16.04.5
      OpenJDK 1.8.0.191
      Jenkins 2.138.4
      LDAP plugin 1.20
      Role-based Authorization Strategy 2.9.0
    • Similar Issues:

      Description

      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.

       

       

       

       

       

        Attachments

          Activity

          totoroliu Rick Liu created issue -
          totoroliu Rick Liu made changes -
          Field Original Value New Value
          Description 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.

           

           

           

           

           
          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 Oleg Nenashev made changes -
          Component/s role-strategy-plugin [ 15758 ]
          oleg_nenashev Oleg Nenashev made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ]

            People

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

              Dates

              • Created:
                Updated: