1. 31 Oct, 2016 1 commit
    • Rémy Coutable's avatar
      Merge branch 'sh-ldap-handle-utf8-dn' into 'master' · 7a1a90f2
      Rémy Coutable authored
      Convert ASCII-8BIT LDAP DNs to UTF-8 to avoid unnecessary user deletions
      
      Issue #1159 exposed a bug where LDAP DNs would be loaded in ASCII-8BIT encoding
      but compared against UTF-8-encoded values. This comparison would always
      fail, causing the LDAP group sync to evict users with Unicode characters.
      The problem was quietly masked because the user would be re-added later
      in the group sync worker.
      
      This commit forces the UTF-8 encoding and falls back to the original value
      if that fails.
      
      The net-ldap library has an outstanding issue
      (https://github.com/ruby-ldap/ruby-net-ldap/issues/4) to load data in UTF-8
      format instead of ASCII-8BIT. Per
      https://tools.ietf.org/html/rfc4514#section-3, LDAP DNs should be in UTF-8.
      
      See merge request !828
      7a1a90f2
  2. 28 Oct, 2016 10 commits
  3. 27 Oct, 2016 8 commits
  4. 26 Oct, 2016 6 commits
  5. 25 Oct, 2016 15 commits