directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MikoĊ‚aj>
Subject ldap attributes names
Date Fri, 30 Jan 2009 12:37:48 GMT

i am using groovy-ldap , but in our LDAP (apacheds) there is a lot of
problems with calmelCase names. Usually apacheds store only lower case
name of attributes (values are stored correctly). this leads to a big
problem even with somethink like this:

ldap = LDAP.newInstance('ldap://XXXX:10389/','XXXX' ,'XXXX')

results ='(objectClass=ipProtocol)',
'nmb=ipProtocols,nmb=local,dc=habdank,dc=pl', SearchScope.ONE )

for (entry in results) {
  println entry.dn
  println entry.ipProtocolNumber

because in apacheds name of second attribute is sometimes stored as:
ipprotocolnumber, and sometimes as ipProtocolNumber (god know why, but
i dont...).

is there any method which collects data with lower case keys? (cleaning
up LDAP is not a solution - it is impossible, because every time when
backup is restored all attributes names are converted do lower case,
but adding new attributes with Apache Stidio generates entries with

best regards

Mikolaj Habdank

View raw message