Hi Emmanuel,
thanks for your answer.
>From DefaultCoreSession.java:
...
public SocketAddress getClientAddress()
{
if ( ioSession != null )
{
return ioSession.getRemoteAddress();
} else {
return null;
}
}
...
In Anonymous Mode is the IOSession == null. Only in Authentication Mode is the
IOSession != null.
--
Ado
> Date: Fri, 19 Jul 2013 13:52:42 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: getClientAddress() does not provide remote connection info for
> anonymous connections
>
> Le 7/19/13 11:17 AM, Ado Dao a écrit :
> > The following bug is fixed in ApacheDS M13,
> > https://issues.apache.org/jira/browse/DIRSERVER-1489. Super work.
> > But when I connect via anonymous, getClientAddress() does not provide the
> > IP. What should I do so that getClientAddress() provides the remote IP for
> > anonymous connections?
>
> The CoreSession.getRemoteAddress() shoudl return the IP for the client,
> even if it's an anonymous client. Isn't it the case ?
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>