https://github.com/lldap/lldap logo
VeenarM - Seems when adding attributes to the g...
# troubleshooting
v
Seems when adding attributes to the group schema, it's not keeping case on the attribute. **Example**: I created attribute with name: groupType Looks like in lldap its just created it as grouptype all lowercase, and when using a search mapping of groupType it's not found. I'll take a further look, it may be an issue with backstages mappers
a
message has been deleted
n
That's intentional: attributes in LDAP are case insensitive. To facilitate matching, I lowercase them on creation
v
It seems the issue though is that if i only include the name in the filter it returns it what ever case i ask for
n
When requesting an attribute as part of a query, I return the name with the same case
v
e.g. filter attr is only say 'GroupType' or groupType it returns it as such, however when it's included in [ *, +, 'groupType' ], its lower cased
n
I believe it's a bug in the client if the matching is case sensitive
v
I'll check it out
n
Sorry, I meant mapping
v
ok i'll fix the implementation for lldap
Copy code
js
  return decode(entry, name.toLocaleLowerCase(), value => {
    return value.toString();
  });
actually that'll impact all vendors, i'll add it to the new ldap detection part.
Copy code
js
export const LldapVendor: LdapVendor = {
  dnAttributeName: 'dn',
  uuidAttributeName: 'uuid',
  decodeStringAttribute: (entry, name) => {
    return decode(entry, name.toLocaleLowerCase(), value => {
      return value.toString();
    });
  },
};