You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by "Eternach, Andreas (EXT)" <an...@siemens.com> on 2008/07/22 10:10:43 UTC
Case-Sensitivity of DistinguishedName?
Hi guys,
i wonder whether it is possible to enable Case-sensitive-access to
Distinguished-Names in Apache-DS.
I am using Spring-LDAP on my client machine and all attribute-names of
the Distinguished-Name are lower cased.
Anybody has an idea how disable this conversion into lower-case?
Many thanks in advance, Andreas
Re: AW: AW: Case-Sensitivity of DistinguishedName?
Posted by Emmanuel Lécharny <el...@gmail.com>.
Eternach, Andreas (EXT) wrote:
> Hi,
>
> I am using ADS version 1.5.2.
>
> In the meantime I performed a network-analyses with WireShark. It turnet out, that Apache-DS returns case-sensitive distinguishednames.
>
> So the Java/Spring-implementation performes the conversion to lower-case.
>
ok, makes sense. Thanks for having checked !
> Best regards
>
> Andreas Eternach
> Software-Entwickler
>
> Siemens AG
> Automation and Drives, Stoneball
> Tel. : +49 (341) 4470-0
> mailto:andreas.eternach.ext@siemens.com
> http://www.siemens.com/automation
>
> Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard Cromme
> Managing Board: Peter Loescher, Chairman, President and Chief Executive Officer;
> Wolfgang Dehen, Heinrich Hiesinger, Joe Kaeser, Jim Reid-Anderson, Hermann Requardt,
> Siegfried Russwurm, Peter Y. Solmssen
> Registered offices: Berlin and Munich;
> Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684
> WEEE-Reg.-No. DE 23691322
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Emmanuel Lécharny [mailto:elecharny@gmail.com]
> Gesendet: Dienstag, 22. Juli 2008 11:10
> An: Eternach, Andreas (EXT)
> Betreff: Re: AW: Case-Sensitivity of DistinguishedName?
>
> Eternach, Andreas (EXT) wrote:
>
>>
>> What is the exact problem you have ?
>>
>> I am developing a program, which reads some configuration-objects via LDAP from Apache-DS.
>>
>> E.g. ProductId=ABC, dc=siemens, dc=com
>>
>> Internally I map the configuration on a Hashmap-interface. So far so good.
>> If another component queries for the item 'ProductId=ABC' I lowercase the query to 'productid=ABC' and everything is fine.
>>
>> But I have another component that calls BeanUtils.copyProperties on my HashMap-interface and performes the queries on the result ...
>>
>> So this is more an application-internal problem, but I thought LDAP supports case-sensitive distinguished names.
>> (At least the Apache-Studio displays case-sensitive Distinguished-Names).
>>
>>
> Apache Directory Server will return the DN as it ha been stored. For
> instance, if you inject a dn like :
> ProductID=ABC, dc=siemens,dc=com,
>
> you should get it back with the very same casing.
>
> Which version of apache DS are you using ? (some older versions did not
> correctly stored the DN as provided).
>
> Thanks !
>
>
--
--
cordialement, regards,
Emmanuel Lécharny
www.nextury.com
directory.apache.org
AW: Case-Sensitivity of DistinguishedName?
Posted by "Eternach, Andreas (EXT)" <an...@siemens.com>.
What is the exact problem you have ?
I am developing a program, which reads some configuration-objects via LDAP from Apache-DS.
E.g. ProductId=ABC, dc=siemens, dc=com
Internally I map the configuration on a Hashmap-interface. So far so good.
If another component queries for the item 'ProductId=ABC' I lowercase the query to 'productid=ABC' and everything is fine.
But I have another component that calls BeanUtils.copyProperties on my HashMap-interface and performes the queries on the result ...
So this is more an application-internal problem, but I thought LDAP supports case-sensitive distinguished names.
(At least the Apache-Studio displays case-sensitive Distinguished-Names).
Best regards
Andreas Eternach
Software-Entwickler
Siemens AG
Automation and Drives, Stoneball
Tel. : +49 (341) 4470-0
mailto:andreas.eternach.ext@siemens.com
http://www.siemens.com/automation
Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard Cromme
Managing Board: Peter Loescher, Chairman, President and Chief Executive Officer;
Wolfgang Dehen, Heinrich Hiesinger, Joe Kaeser, Jim Reid-Anderson, Hermann Requardt,
Siegfried Russwurm, Peter Y. Solmssen
Registered offices: Berlin and Munich;
Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684
WEEE-Reg.-No. DE 23691322
-----Ursprüngliche Nachricht-----
Von: Emmanuel Lecharny [mailto:elecharny@gmail.com]
Gesendet: Dienstag, 22. Juli 2008 10:46
An: users@directory.apache.org
Betreff: Re: Case-Sensitivity of DistinguishedName?
Eternach, Andreas (EXT) wrote:
> Hi guys,
>
> i wonder whether it is possible to enable Case-sensitive-access to
> Distinguished-Names in Apache-DS.
>
DN are not case sensitive or case insensitive. AttributeTypes are case
insensitive, but values will be case sensitive accordingly to their syntax.
>
> I am using Spring-LDAP on my client machine and all attribute-names of
> the Distinguished-Name are lower cased.
>
That should not be a problem at all. cn, CN, Cn; CommonName, commonNAME
and 2.5.4.3 are all valid. Ie, if you have a DN like :
cn=test,
then a DN containing any of those forms will be valid :
CN=test
Cn=test
CommonName=test
commonNAME=test
2.5.4.3=test
>
> Anybody has an idea how disable this conversion into lower-case?
>
you can't and you should not.
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org
Re: Case-Sensitivity of DistinguishedName?
Posted by Emmanuel Lecharny <el...@gmail.com>.
Eternach, Andreas (EXT) wrote:
> Hi guys,
>
> i wonder whether it is possible to enable Case-sensitive-access to
> Distinguished-Names in Apache-DS.
>
DN are not case sensitive or case insensitive. AttributeTypes are case
insensitive, but values will be case sensitive accordingly to their syntax.
>
> I am using Spring-LDAP on my client machine and all attribute-names of
> the Distinguished-Name are lower cased.
>
That should not be a problem at all. cn, CN, Cn; CommonName, commonNAME
and 2.5.4.3 are all valid. Ie, if you have a DN like :
cn=test,
then a DN containing any of those forms will be valid :
CN=test
Cn=test
CommonName=test
commonNAME=test
2.5.4.3=test
>
> Anybody has an idea how disable this conversion into lower-case?
>
you can't and you should not.
What is the exact problem you have ?
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org