Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-5311

LDAP hostname containing an underscore is empty when editing existing User Directory details

      Steps to reproduce issue

      1. Install Crowd 3.3.2
      2. Add an entry in /etc/hosts that has an underscore character
        127.0.0.1 my_ad_server
        
        • Assuming you have your AD server on 127.0.0.1 (or put the IP address of where AD server is located)
      3. Add in a new User Directory in Crowd pointing to my_ad_server
      4. This all adds okay

      What happened...

      1. When editing an existing LDAP User Directory in Crowd 3.3.2, the hostname entry is blank when the hostname contained an underscore

      What should have happened...

      1. The Hostname field should have displayed the Hostname of the LDAP Server even when it contains an underscore

      Root cause

      The LDAP hostname is stored as ldap://<ldap_host>:<port_number> in the single ldap.url field in the cwd_directory_attribute table.

      It appears this is parsed back out into the Front End User Directory screen / Hostname and Port fields.

      When the ldap.url contains an underscore in the LDAP hostname, it is not parsed into the front end resulting in a blank hostname field.

      Work around

      Re-enter the hostname of the AD server if you wish to make any changes in order to save the User Directory configuration changes.

      System Impact

      This issue does not appear the synchronisation of the User Directory and only affects the displaying of the User Directory details screen.

        1. blank_hostname.png
          47 kB
          Eric Lam
        2. KRAK-4568.png
          833 kB
          rtkachuk

            [CWD-5311] LDAP hostname containing an underscore is empty when editing existing User Directory details

            This bug fixed in Crowd version Crowd-3.4.4 in scope of CWD-5375

            Solution: two independent fields hostname and port were merged into one field URL

            rtkachuk (Inactive) added a comment - This bug fixed in Crowd version Crowd-3.4.4 in scope of CWD-5375 Solution: two independent fields hostname and port were merged into one field URL

              3dfb2c7ca3e0 rtkachuk (Inactive)
              hlam@atlassian.com Eric Lam
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: