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. Cloudron LDAP middle name not correctly propagated

Cloudron LDAP middle name not correctly propagated

Scheduled Pinned Locked Moved Unsolved Support
ldap
17 Posts 6 Posters 2.2k Views 6 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.
  • robiR robi

    why not include the middle part as the complete last name?

    That's what happens with many other names that have spaces , apostrophes or other punctuation in their last names.

    imc67I Offline
    imc67I Offline
    imc67
    translator
    wrote on last edited by
    #6

    @robi @girish that’s what I do now manually in WP and FreeScout as there are no middle name fields too. So it becomes:

    First name: Jan
    Last name: van der Steen

    1 Reply Last reply
    1
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by girish
      #7

      On Cloudron side, because we have only one input box, we simplistically just split on space and use the first and last words as first and last name. The middle name is just never exposed via LDAP. Obviously, this will break in a variety of names on apps that use separate first and last names.

      imc67I 1 Reply Last reply
      0
      • girishG girish

        On Cloudron side, because we have only one input box, we simplistically just split on space and use the first and last words as first and last name. The middle name is just never exposed via LDAP. Obviously, this will break in a variety of names on apps that use separate first and last names.

        imc67I Offline
        imc67I Offline
        imc67
        translator
        wrote on last edited by
        #8

        @girish then this will also give issues with people who has a double first name like Marie Therese van der Steen will be Marie Steen or double last names like Marie Therese van der Steen tot Oberndorff and that is also absolutely unacceptable.

        Maybe the solution is simple: your code is trying to divide the first and last names. If you create only a First Name and Last Name field and migrate current users accoding to the current code. Then admins are able to correct all double first, lastnames and add middle names to lastnames?

        btw: the names here are of course fiction but the names by itself do excist.

        girishG 2 Replies Last reply
        0
        • imc67I imc67

          @girish then this will also give issues with people who has a double first name like Marie Therese van der Steen will be Marie Steen or double last names like Marie Therese van der Steen tot Oberndorff and that is also absolutely unacceptable.

          Maybe the solution is simple: your code is trying to divide the first and last names. If you create only a First Name and Last Name field and migrate current users accoding to the current code. Then admins are able to correct all double first, lastnames and add middle names to lastnames?

          btw: the names here are of course fiction but the names by itself do excist.

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

          @imc67 while there is an issue in Cloudron with how it treats the names, I think what's actually needed is to fix the WP plugin. Practically none of the app require the first name and last name separated. Meaning, fixing the cloudron code may not actually fix your problem.

          I did a quick check, the following apps will have trouble:

          moodle-app
          redmine-app
          openproject-app
          wordpress-managed
          matomo-app
          metabase-app
          dolibarr-app

          Just going through the apps now to see if they support "middle name".

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #10

            moodle - https://docs.moodle.org/401/en/LDAP_authentication#Data_Mapping no middle name support

            redmine - https://www.redmine.org/projects/redmine/wiki/RedmineLDAP no middle name

            openproject - cannot find a link but has no middle name support

            metabase - https://www.metabase.com/docs/latest/configuring-metabase/environment-variables no middle name support

            ok, I will stop here.

            1 Reply Last reply
            0
            • imc67I imc67

              @girish then this will also give issues with people who has a double first name like Marie Therese van der Steen will be Marie Steen or double last names like Marie Therese van der Steen tot Oberndorff and that is also absolutely unacceptable.

              Maybe the solution is simple: your code is trying to divide the first and last names. If you create only a First Name and Last Name field and migrate current users accoding to the current code. Then admins are able to correct all double first, lastnames and add middle names to lastnames?

              btw: the names here are of course fiction but the names by itself do excist.

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

              @imc67 Generally, if a software has first name and last name as separate input boxes, do you just skip the middle name? Or do you put the middle name along in the last name input box? I think we can arrive at some workaround based on your answer.

              imc67I 1 Reply Last reply
              0
              • girishG girish

                @imc67 Generally, if a software has first name and last name as separate input boxes, do you just skip the middle name? Or do you put the middle name along in the last name input box? I think we can arrive at some workaround based on your answer.

                imc67I Offline
                imc67I Offline
                imc67
                translator
                wrote on last edited by
                #12

                @girish the middle name can be added in front of the last name. But hen what about the second first name? You wrote the Cloudron code only takes the first word and the last word?

                nebulonN 1 Reply Last reply
                0
                • imc67I imc67

                  @girish the middle name can be added in front of the last name. But hen what about the second first name? You wrote the Cloudron code only takes the first word and the last word?

                  nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #13

                  For further clarification Cloudron generally only takes a free form field for the name (basically firstname + lastname)

                  In LDAP this will be set as the displayName which is what most apps should use. But there are also givenName (firstname) and sn (surname) LDAP attributes, which we fill based on the first and the last word of that input field value.

                  jdaviescoatesJ 1 Reply Last reply
                  0
                  • nebulonN nebulon

                    For further clarification Cloudron generally only takes a free form field for the name (basically firstname + lastname)

                    In LDAP this will be set as the displayName which is what most apps should use. But there are also givenName (firstname) and sn (surname) LDAP attributes, which we fill based on the first and the last word of that input field value.

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by
                    #14

                    @nebulon said in Cloudron LDAP middle name not correctly propagated:

                    In LDAP this will be set as the displayName which is what most apps should use. But there are also givenName (firstname) and sn (surname) LDAP attributes, which we fill based on the first and the last word of that input field value.

                    If I've understood correctly what @imc67 is saying is why not:

                    1. Keep givenName (firstname) as the first word, just as you have it
                    2. Make sn (surname) all the rest of the words (not just the last word) to catch middle names and unhyphenated surnames with multiple words.

                    Sounds sensible to me. Is there a reason that wouldn't work?

                    I use Cloudron with Gandi & Hetzner

                    1 Reply Last reply
                    0
                    • girishG girish

                      Currently, we don't have first name and last name separate. I guess we have to make database changes to make this happen. Something for 8.0 maybe?

                      subvenS Offline
                      subvenS Offline
                      subven
                      wrote on last edited by
                      #15

                      @girish said in Cloudron LDAP middle name not correctly propagated:

                      Currently, we don't have first name and last name separate.

                      This would be also really nice in terms of privacy because I (and many others) don't want their full name exposed in certain apps and I had to come up with some workarounds in the past to ensure that.

                      1 Reply Last reply
                      1
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #16

                        Thanks for the input. I guess we have to have separate input boxes for first and last name in Cloudron to fix this. And also store them separately in the database instead of a single displayname field.

                        imc67I 1 Reply Last reply
                        2
                        • girishG girish

                          Thanks for the input. I guess we have to have separate input boxes for first and last name in Cloudron to fix this. And also store them separately in the database instead of a single displayname field.

                          imc67I Offline
                          imc67I Offline
                          imc67
                          translator
                          wrote on last edited by
                          #17

                          @girish πŸ‘πŸ»

                          1 Reply Last reply
                          0
                          • imc67I imc67 referenced this topic on
                          • imc67I imc67 referenced this topic on
                          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