You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Tony Blanchard <bl...@wanadoo.fr> on 2005/06/21 18:40:14 UTC

Creating a sniffer with MINA for tests purposes

Hello to the list.

I tried to make a sniffer to hear what was on between my ldap client and 
apacheds and I used Mina 0.9-SNAPSHOT to do this.
I can hear what my client asks but only when the ldap server is down. It 
seems that once a connection is opened on localhost:10389 (my conf)
the other can not bind to the socket address.
As I am not a network specialist, could you please tell me in what 
direction to look for a solution. Maybe I should not use an IoAcceptor 
to sniff the connection ?

Maybe I missed something really easy ?
Thanks,
Tony Blanchard





Re: Creating a sniffer with MINA for tests purposes

Posted by Alex Karasulu <ao...@bellsouth.net>.
Alex Karasulu wrote:

> Tony Blanchard wrote:
>
> You online Tony?  I'm on IRC and you can reach me on IM here.  Might 
> be good to stay connected.
>
>      AIM: alexokarasulu
>      MSN: aok123@bellsouth.net
>   Yahoo!: alexkarasulu
>      IRC: aok
>
> I'm on IRC on freenode.net channels #directory and #directory-dev.

Oh and I'm using ethereal for all Sniffing btw so I can help out online 
if you have issues.  You don't have to deal with writing custom code to 
sniff this stuff its very easy.  I'll only be there for next few hours 
though.

Good luck,
Alex

Re: Creating a sniffer with MINA for tests purposes + IRC

Posted by Tony Blanchard <bl...@wanadoo.fr>.
Sorry, was not online for a while.

I downloaded ethereal and I will try it now to sniff my network.

I am not always connected and I often pop my mails only three or four 
times a day.
For the IRC, I already use Skype and it seems that I have to install new 
program to talk on your channels because it only recognise users of 
skype. It is too bad that the directory-dev channel is not like  the 
safehaus cgi irc script... It would limitate the needed program 
installations.

Thanks for this answer.
Tony
Alex Karasulu a écrit :

> Tony Blanchard wrote:
>
> You online Tony?  I'm on IRC and you can reach me on IM here.  Might 
> be good to stay connected.
>
>      AIM: alexokarasulu
>      MSN: aok123@bellsouth.net
>   Yahoo!: alexkarasulu
>      IRC: aok
>
> I'm on IRC on freenode.net channels #directory and #directory-dev.
>
> Alex
>
>
>
>



Re: Creating a sniffer with MINA for tests purposes

Posted by Alex Karasulu <ao...@bellsouth.net>.
Tony Blanchard wrote:

You online Tony?  I'm on IRC and you can reach me on IM here.  Might be 
good to stay connected.

      AIM: alexokarasulu
      MSN: aok123@bellsouth.net
   Yahoo!: alexkarasulu
      IRC: aok

I'm on IRC on freenode.net channels #directory and #directory-dev.

Alex


Re: Creating a sniffer with MINA for tests purposes

Posted by Alex Karasulu <ao...@bellsouth.net>.
Tony Blanchard wrote:

> Hello to the list.
>
> I tried to make a sniffer to hear what was on between my ldap client 
> and apacheds and I used Mina 0.9-SNAPSHOT to do this.
> I can hear what my client asks but only when the ldap server is down. 
> It seems that once a connection is opened on localhost:10389 (my conf)
> the other can not bind to the socket address.
> As I am not a network specialist, could you please tell me in what 
> direction to look for a solution. Maybe I should not use an IoAcceptor 
> to sniff the connection ?
>
> Maybe I missed something really easy ?

Yeah use ethereal :).  Seriously why don't you do that Tony.  I'm sure 
you can use a simple filter easily in Mina to do this but why bother 
unless you have an application other than inspecting the data.  Is that 
the case?

Alex