[Date Prev][Date Next] [Chronological] [Thread] [Top]

case sensitive attributes



Hi,
	I am having an unusual problem with storage of attribute names.
I have defined my attributes in slapd.conf file.
To give you some example,

attribute       HostName                                ces
attribute       ShortHostName                           ces
attribute       OtherAliases                            ces

I have the server up and running with the data populated.
I am also able to use ldapmodify and ldapsearch commands to retrieve the
data.

so far so good. Now the problem

When I retrieve the data along with the attribute names, the openldap
protects the case of the data but the case of attribute names are not
protected.

For example I have an attribute HostName, but when I retrieve the
attribute name, I get it as hostname instead of HostName.
It ignores the case.

Why is it a problem for me ?
Well, I am using perl-ldap to search the server and retrieve the
attributes as well as attribute names and use array of hashes to store the
attribute value indexed by attribute names.
There are several (rather many) existing programs which uses such data
structure and I need to be compatible with those routines, hence its my
requirement that the case of attribute names (and not vale) should be
restored.

Any suggestion ?

Thanks in advance
Himanshu