directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lecko Mio <leckomi...@gmail.com>
Subject ResponseCarryingMessageException: Incorrect DN given
Date Thu, 11 Sep 2014 14:21:19 GMT
Hi,

I am using the ApacheDS library to create an LdapServer as kind of a proxy
which is accessed from different clients, i.e. it receives a request, adapt
sit if necessary and forwards it to another Ldap Server. For the received
requests the DNs given can have different formats, e.g. following some
example searches our proxy has to handle:

ldapsearch -h xxx.xxx.xxx.xxx -p 389 -D uid=myadmin,ou=xxx -w yyyyy -b
p=33333333,o=corp,o=db objectclass=*

ldapsearch -h xxx.xxx.xxx.xxx -p 389 -D 444444444 -w yyyyy -b
p=444444444,o=corp,o=db objectclass=*

ldapsearch -h xxx.xxx.xxx.xxx -p 389 -D someUserName -w yyyyy -b
p=55555555,o=corp,o=db objectclass=*

The first request/search is processed without a problem. A problem arises
only with the last two searches above where we get passed only a number or
a user name as the DN (without prefix and equal sign) -> so the
LdapProtocolDecoder seems to have a problem with the format.

Thus the questions: is there a way to configure ApacheDs/my LdapServer in a
way that it also accepts "non-standard" DNs as above, e.g. '444444444'.

Kind regards,

John


Following the exception I get on message decoding:


15:55:00,757 ERROR
[org.apache.directory.api.ldap.codec.actions.bindRequest.StoreName]
(NioProcessor-9) Incorrect DN given : 444444444 is invalid : ERR_04202 A
value is missing on some RDN

org.apache.directory.api.ldap.model.exception.ResponseCarryingMessageException:
Incorrect DN given
at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:242)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:410)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:710)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1124)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_60]
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_60]
    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
Caused by:
org.apache.directory.api.ldap.model.exception.ResponseCarryingMessageException:
Incorrect DN given : 436646625516 (0x34 0x33 0x36 0x36 0x34 0x36 0x36 0x32
0x35 0x35 0x31 0x36 ) is invalid
    at
org.apache.directory.api.ldap.codec.protocol.mina.LdapProtocolDecoder.decode(LdapProtocolDecoder.java:169)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.directory.api.ldap.codec.protocol.mina.LdapProtocolDecoder.decode(LdapProtocolDecoder.java:94)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:232)
[apacheds-all-2.0.0-M17.jar:2.0.0-M17]
    ... 15 more

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message