directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ado Dao <ado...@hotmail.de>
Subject RE: getClientAddress() does not provide remote connection info for anonymous connections
Date Sat, 20 Jul 2013 00:22:18 GMT

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: elecharny@gmail.com
> To: users@directory.apache.org
> 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 
> 
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message