directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ayyagarikiran <ayyagariki...@gmail.com>
Subject Re: ldap attributes names
Date Fri, 30 Jan 2009 12:57:07 GMT


hi Mikolaj,

    I confirm that this issue exists, though I don't have any idea on the top of my head why
is this so.
    Give us sometime to identify the cause.

  thanks for reporting this

Kiran Ayyagari

MikoĊ‚aj Habdank wrote:
> 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
> 

Mime
View raw message