Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a need to retrieve a value of a property in lower case, can LDAP have any built-ins to perform this? I know that I can do substrings and concatenations.

The need is for a software product we are using that i want a property retrieved in lower case (username property actually).

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Not in an LDAP query. You need to take the value returned and process it yourself.

As a subtle difference to your question. the underlying LDAP servers schema usually defines how queries work. That is, you can have attributes who schema define their values as case sensitive or case insensitive. Thus in a CE attribute, querying for JSmith will not work if the data is stored as jsmith. Whereas it would work on a CI string.

share|improve this answer
    
Thanks mate, I was trying to get around a problem with a package where we can't alter which stores information against the username in it's database, unfortunately some of our users in LDAP have upper case names, this isn't a problem in itself but is when you want to query the user in the said package. I knew I could concatenate strings in LDAP so thought there might be a way to lower(). –  Brett Ryan Mar 30 '11 at 4:37

A custom attribute with a specific matching rule can be defined to accomplish what you ask.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.