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

Expose LDAP custom attributes as (environment) variables

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ldap-plugin
    • None

      With ldap-plugin and build-user-vars-plugin we can get the jenkins user names and email from LDAP attributes, as environment variables (highly useful for Slack notifications for example).

      However, it would be even better to be able to expose any custom LDAP attribute as environment variables (the list of LDAP attributes and maybe also the mapping to env vars would be configurable).

      A use-case: If we store in LDAP the Slack username, we could then send the correct Slack username in the notification.

          [JENKINS-42288] Expose LDAP custom attributes as (environment) variables

          Oleg Nenashev added a comment -

          In order to set proper expectation, I have unassigned Kohsuke from this tickets.
          Currently there is no Default assignee in the LDAP plugin, any contributions will be appreciated.

          Oleg Nenashev added a comment - In order to set proper expectation, I have unassigned Kohsuke from this tickets. Currently there is no Default assignee in the LDAP plugin, any contributions will be appreciated.

            Unassigned Unassigned
            trsystran Thomas Riccardi
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: