Apache Directory Project - support for LDAPv2 queries

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > June 2006 > support for LDAPv2 queries





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author support for LDAPv2 queries
niroshan hewakoparage

2006-06-06, 7:11 am

Hi,
Is it possible to configure ApacheDS to support LDAPv2 queries? At the moment i am getting the following exception with LDAPv2 queries, LDAPV3 woreks file.

If configuration is not possible is there a way to achive this? I only need to accept the LDAPv2 queries and direct it to a custom partition which will process the query with another LDAP server.(Custom partition acts like a LDAP proxy ).

[11:32:42,027] ERROR [org.apache.directory.shared.ldap.codec.bind.BindRequestGrammar] - The version 2 is invalid : it must be 3
[11:32:42,029] ERROR [org.apache.directory.server.ldap. LdapProtocolProvider$LdapProtocolHandler
] - [/10.6.13.70:50029] EXCEPTION:
org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.directory.shared.ldap.message.MessageException: decoder failture: Ldap Version 2 is not supported (Hexdump: 04 26 63 6E 3D 72 6F 6F 74 2C 64 63 3D 70 6F 63 6B 65 74 6E 65 74 2C 64 63 3D 74
65 6C 73 74 72 61 2C 64 63 3D 6E 65 74 80 09 63 34 6D 33 6C 65 75 63 68)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:68)
at org.apache.mina.common.support.AbstractIoFilterChain. callNextMessageReceived(AbstractIoFilter
Chain.java:494)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:761)
at org.apache.mina.filter.ThreadPoolFilter.processEvent(ThreadPoolFilter.java:665)
at org.apache.mina.filter.ThreadPoolFilter$Worker.processEvents(ThreadPoolFilter.java:421)
at org.apache.mina.filter.ThreadPoolFilter$Worker.run(ThreadPoolFilter.java:376)
Caused by: org.apache.directory.shared.ldap.message.MessageException: decoder failture: Ldap Version 2 is not supported
at org.apache.directory.shared.ldap.message.MessageDecoder.decode(MessageDecoder.java:210)
at org.apache.mina.filter.codec.asn1.Asn1CodecDecoder.decode(Asn1CodecDecoder.java:37)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:56)
... 6 more

Kind Regards
Niroshan




Emmanuel Lecharny

2006-06-06, 7:11 am

Hi Niroshan,

sorry, currently, there are no plan to support LdapV2 in ADS. I don't
think we will ever support it either... (for many reasons, summarized
here : http://www.rfc-archive.org/getrfc.php?rfc=3D3494).

Don't know. May be we may change our mind

Sorry about that.
Emmanuel

On 6/6/06, niroshan hewakoparage <niroshanhewa-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
> Hi,
> Is it possible to configure ApacheDS to support LDAPv2 queries? At th=

e moment i am getting the following exception with LDAPv2 queries, LDAPV3 w=
oreks file.
>
> If configuration is not possible is there a way to achive this? I only=

need to accept the LDAPv2 queries and direct it to a custom partition whic=
h will process the query with another LDAP server.(Custom partition acts li=
ke a LDAP proxy ).
>
> [11:32:42,027] ERROR [org.apache.directory.shared.ldap.codec.bind.Bind=

RequestGrammar] - The version 2 is invalid : it must be 3
> [11:32:42,029] ERROR [org.apache.directory.server.ldap.LdapProtocolProvi=

der$LdapProtocolHandler] - [/10.6.13.70:50029] EXCEPTION:
> org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.direct=

ory.shared.ldap.message.MessageException: decoder failture: Ldap Version 2 =
is not supported (Hexdump: 04 26 63 6E 3D 72 6F 6F 74 2C 64 63 3D 70 6F 63 =
6B 65 74 6E 65 74 2C 64 63 3D 74 65 6C 73 74 72 61 2C 64 63 3D 6E 65 74 80 =
09 63 34 6D 33 6C 65 75 63 68)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(=

ProtocolCodecFilter.java:68)
> at org.apache.mina.common.support.AbstractIoFilterChain.callNextMess=

ageReceived(AbstractIoFilterChain.java:494)
> at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(=

AbstractIoFilterChain.java:52)
> at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.=

messageReceived(AbstractIoFilterChain.java:761)
> at org.apache.mina.filter.ThreadPoolFilter.processEvent(ThreadPoolFi=

lter.java:665)
> at org.apache.mina.filter.ThreadPoolFilter$Worker.processEvents(Thre=

adPoolFilter.java:421)
> at org.apache.mina.filter.ThreadPoolFilter$Worker.run(ThreadPoolFilt=

er.java:376)
> Caused by: org.apache.directory.shared.ldap.message.MessageException: de=

coder failture: Ldap Version 2 is not supported
> at org.apache.directory.shared.ldap.message.MessageDecoder.decode(Me=

ssageDecoder.java:210)
> at org.apache.mina.filter.codec.asn1.Asn1CodecDecoder.decode(Asn1Cod=

ecDecoder.java:37)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(=

ProtocolCodecFilter.java:56)
> ... 6 more
>
> Kind Regards
> Niroshan
>
>
>
>



--=20
Cordialement,
Emmanuel L=E9charny

Alex Karasulu

2006-06-06, 7:11 am

niroshan hewakoparage wrote:

>Hi,
> Is it possible to configure ApacheDS to support LDAPv2 queries? At the moment i am getting the following exception with LDAPv2 queries, LDAPV3 woreks file.
>
> If configuration is not possible is there a way to achive this? I only need to accept the LDAPv2 queries and direct it to a custom partition which will process the query with another LDAP server.(Custom partition acts like a LDAP proxy ).
>
> [11:32:42,027] ERROR [org.apache.directory.shared.ldap.codec.bind.BindRequestGrammar] - The version 2 is invalid : it must be 3
> [11:32:42,029] ERROR [org.apache.directory.server.ldap. LdapProtocolProvider$LdapProtocolHandler
] - [/10.6.13.70:50029] EXCEPTION:
> org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.directory.shared.ldap.message.MessageException: decoder failture: Ldap Version 2 is not supported (Hexdump: 04 26 63 6E 3D 72 6F 6F 74 2C 64 63 3D 70 6F 63 6B 65 74 6E 65 74 2C 64 63 3D 7

4 65 6C 73 74 72 61 2C 64 63 3D 6E 65 74 80 09 63 34 6D 33 6C 65 75 63 68)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:68)
> at org.apache.mina.common.support.AbstractIoFilterChain. callNextMessageReceived(AbstractIoFilter
Chain.java:494)
> at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
> at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:761)
> at org.apache.mina.filter.ThreadPoolFilter.processEvent(ThreadPoolFilter.java:665)
> at org.apache.mina.filter.ThreadPoolFilter$Worker.processEvents(ThreadPoolFilter.java:421)
> at org.apache.mina.filter.ThreadPoolFilter$Worker.run(ThreadPoolFilter.java:376)
> Caused by: org.apache.directory.shared.ldap.message.MessageException: decoder failture: Ldap Version 2 is not supported
> at org.apache.directory.shared.ldap.message.MessageDecoder.decode(MessageDecoder.java:210)
> at org.apache.mina.filter.codec.asn1.Asn1CodecDecoder.decode(Asn1CodecDecoder.java:37)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:56)
> ... 6 more
>
>


Yeah sorry as Emmanuel stated we do not support LDAPv2 specific filters.

Alex


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com