hi
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 = ldap.search('(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
camelCase)
best regards
Mikolaj Habdank