Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. LDAP First Name not passed on to application

LDAP First Name not passed on to application

Scheduled Pinned Locked Moved Solved Support
ldapuser directory
5 Posts 2 Posters 877 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • andreasduerenA Offline
    andreasduerenA Offline
    andreasdueren
    wrote on last edited by girish
    #1

    Hello there,

    I'm facing this weird issue, and I'm at loss at how to troubleshoot further. I installed Leantime in a LAMP stack which works perfectly, but I'm having issues with the LDAP connector. For some reason some parameters are not passed properly. For example the first name. This is my configuration:

    ## Ldap
    LEAN_LDAP_USE_LDAP = true                            # Set to true if you want to use LDAP
    LEAN_LDAP_LDAP_TYPE = 'OL'                           # Select the correct directory type. Currently Supported: OL - OpenLdap, AD - Active Directory
    LEAN_LDAP_HOST = '172.18.0.1'                        # FQDN
    LEAN_LDAP_PORT = 3002                                # Default Port
    LEAN_LDAP_DN = 'ou=users,dc=cloudron'                # Location of users, example: CN=users,DC=example,DC=com
    
    # Leantime->Ldap attribute mapping
    LEAN_LDAP_KEYS="{
            \"username\":\"username\",
            \"groups\":\"memberof\",
            \"email\":\"mail\",
            \"firstname\":\"givenName\",
            \"lastname\":\"sn\",
            \"phonenumber\":\"telephoneNumber\"
    }"
    

    According to the packaging documentation, givenNameshould pass the first name, correct? Unfortunately the field stays blank. Using displayName instead works for example so I don't think the issue is with Leantime.

    Screenshot 2023-06-09 at 07.49.06.png

    girishG 1 Reply Last reply
    0
    • andreasduerenA andreasdueren

      Hello there,

      I'm facing this weird issue, and I'm at loss at how to troubleshoot further. I installed Leantime in a LAMP stack which works perfectly, but I'm having issues with the LDAP connector. For some reason some parameters are not passed properly. For example the first name. This is my configuration:

      ## Ldap
      LEAN_LDAP_USE_LDAP = true                            # Set to true if you want to use LDAP
      LEAN_LDAP_LDAP_TYPE = 'OL'                           # Select the correct directory type. Currently Supported: OL - OpenLdap, AD - Active Directory
      LEAN_LDAP_HOST = '172.18.0.1'                        # FQDN
      LEAN_LDAP_PORT = 3002                                # Default Port
      LEAN_LDAP_DN = 'ou=users,dc=cloudron'                # Location of users, example: CN=users,DC=example,DC=com
      
      # Leantime->Ldap attribute mapping
      LEAN_LDAP_KEYS="{
              \"username\":\"username\",
              \"groups\":\"memberof\",
              \"email\":\"mail\",
              \"firstname\":\"givenName\",
              \"lastname\":\"sn\",
              \"phonenumber\":\"telephoneNumber\"
      }"
      

      According to the packaging documentation, givenNameshould pass the first name, correct? Unfortunately the field stays blank. Using displayName instead works for example so I don't think the issue is with Leantime.

      Screenshot 2023-06-09 at 07.49.06.png

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @andreasdueren bizzarely, LDAP is case insensitive (!). Can you try with givennameintead of givenName (nothing the fact that somehow displayName did work for you).

      Cloudron also has no UI to enter first name and last name explicity. We derive the parts like so:

              const nameParts = displayName.split(' ');
              const firstName = nameParts[0];
              const lastName = nameParts.length > 1  ? nameParts[nameParts.length - 1] : ''; // choose last part, if it exists
      

      Just wondering, does your name have a <space> in it?

      andreasduerenA 1 Reply Last reply
      0
      • girishG girish

        @andreasdueren bizzarely, LDAP is case insensitive (!). Can you try with givennameintead of givenName (nothing the fact that somehow displayName did work for you).

        Cloudron also has no UI to enter first name and last name explicity. We derive the parts like so:

                const nameParts = displayName.split(' ');
                const firstName = nameParts[0];
                const lastName = nameParts.length > 1  ? nameParts[nameParts.length - 1] : ''; // choose last part, if it exists
        

        Just wondering, does your name have a <space> in it?

        andreasduerenA Offline
        andreasduerenA Offline
        andreasdueren
        wrote on last edited by
        #3

        @girish givenname worked, thanks!

        1 Reply Last reply
        2
        • andreasduerenA andreasdueren marked this topic as a question on
        • andreasduerenA andreasdueren has marked this topic as solved on
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @andreasdueren did you try OpenID - https://github.com/Leantime/leantime/blob/d9d9a020135f6b77b8f63c34289644a62077b96d/.dev/.env#L95 ?

          andreasduerenA 1 Reply Last reply
          0
          • girishG girish

            @andreasdueren did you try OpenID - https://github.com/Leantime/leantime/blob/d9d9a020135f6b77b8f63c34289644a62077b96d/.dev/.env#L95 ?

            andreasduerenA Offline
            andreasduerenA Offline
            andreasdueren
            wrote on last edited by andreasdueren
            #5

            @girish Yeah, unfortunately won't work yet.
            https://forum.cloudron.io/topic/8940/apps-with-openid-connect-provider-beta/13

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search