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. import users into ldap changes case?

import users into ldap changes case?

Scheduled Pinned Locked Moved Solved Support
8 Posts 3 Posters 1.2k Views 3 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.
    • P Offline
      P Offline
      perler
      wrote on last edited by
      #1

      We are importing users from a nextcloud installation into cloudron LDAP.

      when we import this file:

      Tester,tester@domain.com,,Tester Name,
      

      we get this user:
      2119eb13-c4ac-4251-b525-d46021e3ca72-image.png

      The case of the username has changed from Tester to tester, which is a problem as we sync files from the old nextcloud installation and the data folder of user Tester is

      ../data/Tester
      

      whereby in the cloudron installation it is

      ../tester
      

      which gets created at first login instead of using the existing directory.

      bug or feature?

      jdaviescoatesJ 1 Reply Last reply
      0
      • P perler

        We are importing users from a nextcloud installation into cloudron LDAP.

        when we import this file:

        Tester,tester@domain.com,,Tester Name,
        

        we get this user:
        2119eb13-c4ac-4251-b525-d46021e3ca72-image.png

        The case of the username has changed from Tester to tester, which is a problem as we sync files from the old nextcloud installation and the data folder of user Tester is

        ../data/Tester
        

        whereby in the cloudron installation it is

        ../tester
        

        which gets created at first login instead of using the existing directory.

        bug or feature?

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

        @perler said in import users into ldap changes case?:

        feature

        Pretty sure it's intentional that LDAP usernames are always lowercase, as I seem to remember that being included in the release note announcement posts for one of the recent-ish updates...

        Yep, here it is:

        @girish said in Cloudron 7.2 released:

        Ensure LDAP usernames are always treated lowercase

        I use Cloudron with Gandi & Hetzner

        P 1 Reply Last reply
        1
        • jdaviescoatesJ jdaviescoates

          @perler said in import users into ldap changes case?:

          feature

          Pretty sure it's intentional that LDAP usernames are always lowercase, as I seem to remember that being included in the release note announcement posts for one of the recent-ish updates...

          Yep, here it is:

          @girish said in Cloudron 7.2 released:

          Ensure LDAP usernames are always treated lowercase

          P Offline
          P Offline
          perler
          wrote on last edited by
          #3

          @jdaviescoates all right, this complicates things. Is there a reason for this?

          jdaviescoatesJ 1 Reply Last reply
          0
          • P perler

            @jdaviescoates all right, this complicates things. Is there a reason for this?

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

            @perler said in import users into ldap changes case?:

            Is there a reason for this?

            Presumably, yes.

            I think it's because lots of apps require lowercase usernames.

            See eg

            @nebulon said in External Directory synchronisation:

            Cloudron will always lowercase the username, this is required also to be compatible with apps and how they handle usernames

            I use Cloudron with Gandi & Hetzner

            P 1 Reply Last reply
            1
            • jdaviescoatesJ jdaviescoates

              @perler said in import users into ldap changes case?:

              Is there a reason for this?

              Presumably, yes.

              I think it's because lots of apps require lowercase usernames.

              See eg

              @nebulon said in External Directory synchronisation:

              Cloudron will always lowercase the username, this is required also to be compatible with apps and how they handle usernames

              P Offline
              P Offline
              perler
              wrote on last edited by
              #5

              @jdaviescoates this is quite obviously not quite true, but thanks, we will manage 😉

              jdaviescoatesJ 1 Reply Last reply
              0
              • P perler

                @jdaviescoates this is quite obviously not quite true, but thanks, we will manage 😉

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

                @perler said in import users into ldap changes case?:

                this is quite obviously not quite true

                what is not quite true? some apps do require lowercase usernames, no?

                I use Cloudron with Gandi & Hetzner

                P 1 Reply Last reply
                1
                • jdaviescoatesJ jdaviescoates

                  @perler said in import users into ldap changes case?:

                  this is quite obviously not quite true

                  what is not quite true? some apps do require lowercase usernames, no?

                  P Offline
                  P Offline
                  perler
                  wrote on last edited by
                  #7

                  @jdaviescoates yes, but some apps are case aware, here: nextcloud. I think it's not quite the correct decision to force lowercase as if it is 1968 but as I said, we can work around this.

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

                    As @jdaviescoates said, we force small case for compatibility. I understand that in your specific context that being case sensitive might work though.

                    LDAP itself has a bunch of case sensitivity madness. See https://stackoverflow.com/questions/29897684/is-ldap-dn-case-insensitive and https://www.ibm.com/docs/en/oala/1.3.5?topic=SSPFMY_1.3.5/com.ibm.scala.doc/install/iwa_pinst_ldap_cnf_cse_sen_t.html . I remember we tried to make this case preserving but this causes lots of subtle very hard to debug failures.

                    There's a lot of things in play here 🙂 File systems, databases, frameworks, languages... each has their own level of case sensitivity support when it comes to usernames.

                    1 Reply Last reply
                    1
                    • girishG girish marked this topic as a question on
                    • girishG girish has marked this topic as solved 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