mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Machhindra Nale <machhindra.n...@yahoo.com>
Subject sftpsubsystem and filesystemview
Date Tue, 07 Dec 2010 09:56:57 GMT
Hello Dev,
 
I am using sftpsubsystem in my project. 
 
I understand that SSHD 0.5.0 has improved SftpSubsystem allowing developer to 
use custom FileSystemView.
 
I want to intercept each SFTP call to perform some "custom actions" on my 
"custom filesystem".

This is what I have done - 
	1. I have implemented my own authenticator by extending "PasswordAuthenticator" 
class. In this class I call a web service which returns me a "authenticatoin 
token". 

	2. I have defined my "FileSystemView", it is a logical view of my objects. 
Subsequently extended "SSHFile" class. I need to access the "authentication 
token" in this class to call few more web services. How to access? 

	3. Is it good idea to "extend" the "SftSubsystem" class to perform custom 
actions on each sftp call? The problem is that some of the variables like 
session, root are private. 

	4. I liked the idea of spring beans in 'apache ftplets - apache ftpserver'. Are 
we planning to have such facility in SSHD as well?
Thanks in advance,
Mac





________________________________
From: "users-help@mina.apache.org" <users-help@mina.apache.org>
To: machhindra.nale@yahoo.com
Sent: Tue, December 7, 2010 2:49:53 PM
Subject: WELCOME to users@mina.apache.org

Hi! This is the ezmlm program. I'm managing the
users@mina.apache.org mailing list.

I'm working for my owner, who can be reached
at users-owner@mina.apache.org.

Acknowledgment: I have added the address

  machhindra.nale@yahoo.com

to the users mailing list.

Welcome to users@mina.apache.org!

Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.


--- Administrative commands for the users list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

To subscribe to the list, send a message to:
  <users-subscribe@mina.apache.org>

To remove your address from the list, send a message to:
  <users-unsubscribe@mina.apache.org>

Send mail to the following for info and FAQ for this list:
  <users-info@mina.apache.org>
  <users-faq@mina.apache.org>

Similar addresses exist for the digest list:
  <users-digest-subscribe@mina.apache.org>
  <users-digest-unsubscribe@mina.apache.org>

To get messages 123 through 145 (a maximum of 100 per request), mail:
  <users-get.123_145@mina.apache.org>

To get an index with subject and author for messages 123-456 , mail:
  <users-index.123_456@mina.apache.org>

They are always returned as sets of 100, max 2000 per request,
so you'll actually get 100-499.

To receive all messages with the same subject as message 12345,
send a short message to:
  <users-thread.12345@mina.apache.org>

The messages should contain one line or word of text to avoid being
treated as sp@m, but I will ignore their content.
Only the ADDRESS you send to is important.

You can start a subscription for an alternate address,
for example "john@host.domain", just add a hyphen and your
address (with '=' instead of '@') after the command word:
<users-subscribe-john=host.domain@mina.apache.org>

To stop subscription for this address, mail:
<users-unsubscribe-john=host.domain@mina.apache.org>

In both cases, I'll send a confirmation message to that address. When
you receive it, simply reply to it to complete your subscription.

If despite following these instructions, you do not get the
desired results, please contact my owner at
users-owner@mina.apache.org. Please be patient, my owner is a
lot slower than I am ;-)

--- Enclosed is a copy of the request I received.

Return-Path: <machhindra.nale@yahoo.com>
Received: (qmail 35443 invoked by uid 99); 7 Dec 2010 09:19:53 -0000
Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 09:19:53 +0000
X-ASF-Spam-Status: No, hits=2.2 required=10.0
    
tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL

X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: local policy)
Received: from [98.139.91.216] (HELO nm19-vm0.bullet.mail.sp2.yahoo.com) 
(98.139.91.216)
    by apache.org (qpsmtpd/0.29) with SMTP; Tue, 07 Dec 2010 09:19:41 +0000
Received: from [98.139.91.65] by nm19.bullet.mail.sp2.yahoo.com with NNFMP; 07 
Dec 2010 09:19:19 -0000
Received: from [98.139.91.8] by tm5.bullet.mail.sp2.yahoo.com with NNFMP; 07 Dec 
2010 09:19:19 -0000
Received: from [127.0.0.1] by omp1008.mail.sp2.yahoo.com with NNFMP; 07 Dec 2010 
09:19:19 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 620062.92869.bm@omp1008.mail.sp2.yahoo.com
Received: (qmail 6304 invoked by uid 60001); 7 Dec 2010 09:19:19 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; 
t=1291713559; bh=FKOXQjVe1w6lpTa70Hxzz/RdglzXvjcO9t+h2L5Cb2Y=; 
h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;
b=AozYX1N+x0mANE/YLEdyV236741zh4PztBlWdisxfkKlusPm1BsUxb5duGJKp5yxWl2Ss3Bxz0QVDfNYyAseM1IP4rwJ8A3R+nQh9Qj1PnfZmyRLVzqBq48O7lPSE7lfOBFgExGMmCl5tgW+vn8u5xmWGfZAxCudJRQT998d8Jw=
=
DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=yahoo.com;
  
h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;

  
b=AShq4C+nh9g0klb5rYh3n2ruvsfj4jAeb1Uxt/CL2DPG3uG7mzWUgc8JZOWh/XjpFH/oHVAnpv11Jp3f9HTVAiT5RBDzVWi1G2NKTCNgWHPKbTz4JYotsOXzE7eszaKBF0m+vQsRiQ5IVSPCvEY7eqpPSDyD7uuGyOjmkrRfbwU=;

Message-ID: <36631.6088.qm@web112120.mail.gq1.yahoo.com>
X-YMail-OSG: lp.dIigVM1n3kuz0WCtoi3tZISidTaZX9gKfGYFpWLNjV0X
vYqQ22q6Q4f7eDOCtEX9_zICR6b39jPutP6cZDH8edZ0mWUEewHvbQ94elgD
m6reWx5AfNbciV7CLcXT04aI56_RD3U4h_hqZ._1RNqDIRJ3c3Qd8XaErXde
TiZP8euLck3UEOB75ohsZGJsvxJfliWSAozDUTO7HGWa9.97vGdh.jttYuvm
A.MNlVUXK5iCWAlPQAMbHEGUgI4xfCse7dDrbk7NODASKCTb.7eouyv67pZV
ch4e8MdJZFFbbcYJGPwMx4JVG1yJOYaTvrh30tkDqvuR3jJQh3pD2oS1sow-
-
Received: from [155.35.46.13] by web112120.mail.gq1.yahoo.com via HTTP; Tue, 07 
Dec 2010 01:19:18 PST
X-Mailer: YahooMailRC/553 YahooMailWebService/0.8.107.285259
References: <1291713137.27359.ezmlm@mina.apache.org>
Date: Tue, 7 Dec 2010 01:19:18 -0800 (PST)
From: Machhindra Nale <machhindra.nale@yahoo.com>
Subject: Re: confirm subscribe to users@mina.apache.org
To: 
users-sc.1291713137.aogpcokmbddkfcnabdkf-machhindra.nale=yahoo.com@mina.apache.org

In-Reply-To: <1291713137.27359.ezmlm@mina.apache.org>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-1055605574-1291713558=:6088"
X-Virus-Checked: Checked by ClamAV on apache.org

--0-1055605574-1291713558=:6088
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

confirmation=0A=0A=0A=0A=0A________________________________=0AFrom: "users-=
help@mina.apache.org" <users-help@mina.apache.org>=0ATo: machhindra.nale@ya=
hoo.com=0ASent: Tue, December 7, 2010 2:42:17 PM=0ASubject: confirm subscri=
be to users@mina.apache.org=0A=0AHi! This is the ezmlm program. I'm managin=
g the=0Ausers@mina.apache.org mailing list.=0A=0AI'm working for my owner, =
who can be reached=0Aat users-owner@mina.apache.org.=0A=0ATo confirm that y=
ou would like=0A=0A=A0 machhindra.nale@yahoo.com=0A=0Aadded to the users ma=
iling list, please send=0Aa short reply to this address:=0A=0A=A0 =0Ausers-=
sc.1291713137.aogpcokmbddkfcnabdkf-machhindra.nale=3Dyahoo.com@mina.apache.=
org=0A=0A=0AUsually, this happens when you just hit the "reply" button.=0AI=
f this does not work, simply copy the address and paste it into=0Athe "To:"=
field of a new message.=0A=0Aor click here:=0A=A0=A0=A0 =0Amailto:users-sc=
.1291713137.aogpcokmbddkfcnabdkf-machhindra.nale=3Dyahoo.com@mina.apache.or=
g=0A=0A=0AThis confirmation serves two purposes. First, it verifies that I =
am able=0Ato get mail through to you. Second, it protects you in case someo=
ne=0Aforges a subscription request in your name.=0A=0ASome mail programs ar=
e broken and cannot handle long addresses. If you=0Acannot reply to this re=
quest, instead send a message to=0A<users-request@mina.apache.org> and put =
the=0Aentire address listed above into the "Subject:" line.=0A=0A=0A--- Adm=
inistrative commands for the users list ---=0A=0AI can handle administrativ=
e requests automatically. Please=0Ado not send them to the list address! In=
stead, send=0Ayour message to the correct command address:=0A=0ATo subscrib=
e to the list, send a message to:=0A=A0 <users-subscribe@mina.apache.org>=
=0A=0ATo remove your address from the list, send a message to:=0A=A0 <users=
-unsubscribe@mina.apache.org>=0A=0ASend mail to the following for info and =
FAQ for this list:=0A=A0 <users-info@mina.apache.org>=0A=A0 <users-faq@mina=
.apache.org>=0A=0ASimilar addresses exist for the digest list:=0A=A0 <users=
-digest-subscribe@mina.apache.org>=0A=A0 <users-digest-unsubscribe@mina.apa=
che.org>=0A=0ATo get messages 123 through 145 (a maximum of 100 per request=
), mail:=0A=A0 <users-get.123_145@mina.apache.org>=0A=0ATo get an index wit=
h subject and author for messages 123-456 , mail:=0A=A0 <users-index.123_45=
6@mina.apache.org>=0A=0AThey are always returned as sets of 100, max 2000 p=
er request,=0Aso you'll actually get 100-499.=0A=0ATo receive all messages =
with the same subject as message 12345,=0Asend a short message to:=0A=A0 <u=
sers-thread.12345@mina.apache.org>=0A=0AThe messages should contain one lin=
e or word of text to avoid being=0Atreated as sp@m, but I will ignore their=
content.=0AOnly the ADDRESS you send to is important.=0A=0AYou can start a=
subscription for an alternate address,=0Afor example "john@host.domain", j=
ust add a hyphen and your=0Aaddress (with '=3D' instead of '@') after the c=
ommand word:=0A<users-subscribe-john=3Dhost.domain@mina.apache.org>=0A=0ATo=
stop subscription for this address, mail:=0A<users-unsubscribe-john=3Dhost=
.domain@mina.apache.org>=0A=0AIn both cases, I'll send a confirmation messa=
ge to that address. When=0Ayou receive it, simply reply to it to complete y=
our subscription.=0A=0AIf despite following these instructions, you do not =
get the=0Adesired results, please contact my owner at=0Ausers-owner@mina.ap=
ache.org. Please be patient, my owner is a=0Alot slower than I am ;-)=0A=0A=
--- Enclosed is a copy of the request I received.=0A=0AReturn-Path: <machhi=
ndra.nale@yahoo.com>=0AReceived: (qmail 27353 invoked by uid 99); 7 Dec 201=
0 09:12:17 -0000=0AReceived: from nike.apache.org (HELO nike.apache.org) (1=
92.87.106.230)=0A=A0 =A0 by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 D=
ec 2010 09:12:17 +0000=0AX-ASF-Spam-Status: No, hits=3D0.2 required=3D10.0=
=0A=A0=A0=A0 =0Atests=3DASF_LIST_OPS,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNS=
WL_NONE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL=0A=0AX-Spam-Check-By=
: apache.org=0AReceived-SPF: pass (nike.apache.org: local policy)=0AReceive=
d: from [98.139.91.236] (HELO nm29-vm0.bullet.mail.sp2.yahoo.com) =0A(98.13=
9.91.236)=0A=A0 =A0 by apache.org (qpsmtpd/0.29) with SMTP; Tue, 07 Dec 201=
0 09:12:06 +0000=0AReceived: from [98.139.91.69] by nm29.bullet.mail.sp2.ya=
hoo.com with NNFMP; 07 =0ADec 2010 09:11:44 -0000=0AReceived: from [98.139.=
91.12] by tm9.bullet.mail.sp2.yahoo.com with NNFMP; 07 =0ADec 2010 09:11:44=
-0000=0AReceived: from [127.0.0.1] by omp1012.mail.sp2.yahoo.com with NNFM=
P; 07 Dec 2010 =0A09:11:44 -0000=0AX-Yahoo-Newman-Property: ymail-3=0AX-Yah=
oo-Newman-Id: 701894.94185.bm@omp1012.mail.sp2.yahoo.com=0AReceived: (qmail=
8328 invoked by uid 60001); 7 Dec 2010 09:11:44 -0000=0ADKIM-Signature: v=
=3D1; a=3Drsa-sha256; c=3Drelaxed/relaxed; d=3Dyahoo.com; s=3Ds1024; =0At=
=3D1291713104; bh=3D78SgAyZO+IVqVKzULau4S2RIVx8xiaM0pDNdJMBgXsg=3D; =0Ah=3D=
Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:=
Content-Type;=0Ab=3DHlbB40+h3WC3mzbHByZT7hcRCiDkVEri1u7exKaWI7+wafb1dIX+pza=
OPI1Hsnx/ebfeJU6Fm71+AsWQTMdlL0u8AI7RHpuWlgGTh4riCuqURxbDWYXSACIZ99eQewr7N1=
0YygyaMwffcJx/AsEuioS6YLuLO4y5useknZrp/hY=3D=0A=3D=0ADomainKey-Signature:a=
=3Drsa-sha1; q=3Ddns; c=3Dnofws;=0A=A0 s=3Ds1024; d=3Dyahoo.com;=0A=A0 =0Ah=
=3DMessage-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Versi=
on:Content-Type;=0A=0A=A0 =0Ab=3DDsjfwCZvqsXYv3M40YNyMJ9Hvcf5fdJH0mou5ozxGz=
bMkrsXrT2d9NDX+ToJ8RhArNOtMW6T+FxX12E/wsLvZAr8iWbu43H5Mm6FtwWEk7RhkwM8TzC0w=
n/bO2qECdMeVO6HAlw5PR6Yuf8NiWACArgvcQVMM1tUv6AfSZqQHAc=3D;=0A=0AMessage-ID:=
<308113.5582.qm@web112102.mail.gq1.yahoo.com>=0AX-YMail-OSG: dkrHYksVM1k3e=
fXLWDtP36ta_nz9WmAgueC3BS0KLoLbxf5=0AX9UJChc0soxv2J4kWSH3uL4H.Du0tWL3B_EsV9=
qwPaSRd7nWWbpNhFaZYpWc=0Aqwrfg_R8DDy4oWat8oFY3LnZKkZIn9UJqg0qcaS5x3TH9kxips=
LYauWgogeZ=0AzHO.MeL4I2dWknCYlrJkrDQ6E9oAkKtewPh7SOZw1tLvnt6emMZk85zUax40=
=0AoCp6n69333MsRaDUMp9kmvqqJPNocKp9FbOzxUw9UelvsGhF9hx5_M29BDa9=0Ae8.EoYduY=
CaIgyw3Jxg--=0AReceived: from [155.35.46.13] by web112102.mail.gq1.yahoo.co=
m via HTTP; Tue, 07 =0ADec 2010 01:11:44 PST=0AX-Mailer: YahooMailRC/553 Ya=
hooMailWebService/0.8.107.285259=0ADate: Tue, 7 Dec 2010 01:11:44 -0800 (PS=
T)=0AFrom: Machhindra Nale <machhindra.nale@yahoo.com>=0ASubject: SFTP subs=
ystem=0ATo: users-subscribe@mina.apache.org=0AMIME-Version: 1.0=0AContent-T=
ype: multipart/alternative; boundary=3D"0-763272130-1291713104=3D:5582"=0AX=
-Virus-Checked: Checked by ClamAV on apache.org=0A=0A--0-763272130-12917131=
04=3D:5582=0AContent-Type: text/plain; charset=3Diso-8859-1=0AContent-Trans=
fer-Encoding: quoted-printable=0A=0AHello Dev,=3D0A=3DA0=3D0AI am using sft=
psubsystem in my project. =3D0A=3DA0=3D0AI=3DA0und=3D=0Aerstand that SSHD 0=
.5.0 has improved SftpSubsystem allowing=3DA0developer to =3D=0A=3D0Ause cu=
stom FileSystemView.=3D0A=3DA0=3D0AI want to intercept each SFTP call to=3D=
=0Aperform some "custom actions" on my =3D0A"custom filesystem".=3D0A=3D0AT=
his is w=3D=0Ahat I have done - =3D0A=3D091. I have implemented my own auth=
enticator by exten=3D=0Ading "PasswordAuthenticator" =3D0Aclass. In this cl=
ass I call a web service w=3D=0Ahich returns me a "authenticatoin =3D0Atoke=
n".=3D0A=3D092. I have defined my "Fil=3D=0AeSystemView", it is a logical v=
iew of my objects. =3D0ASubsequently extended =3D=0A"SSHFile" class. I need=
to access the "authentication =3D0Atoken" in this cla=3D=0Ass to call few =
more web services. How to access?=3D0A=3D093. Is it good idea to=3D=0A"exte=
nd" the "SftSubsystem" class to perform custom =3D0Aactions on each sft=3D=
=0Ap call? The problem is that some of the variables like =3D0Asession, roo=
t are=3D=0Aprivate.=3D0A=3D094. I liked the idea of spring beans in 'apache=
ftplets - apa=3D=0Ache ftpserver'. Are =3D0Awe=3DA0planning to have such f=
acility in SSHD as well?=3D=0A=3D0AThanks in advance,=3D0AMac=3D0A=3D0A=3D0=
A=A0 =A0 =A0 =0A--0-763272130-1291713104=3D:5582=0AContent-Type: text/html;=
charset=3Diso-8859-1=0AContent-Transfer-Encoding: quoted-printable=0A=0A<h=
tml><head><style type=3D3D"text/css"><!-- DIV {margin:0px;} --></style></he=
=3D=0Aad><body><div style=3D3D"font-family:times new roman, new york, times=
, serif;=3D=0Afont-size:12pt"><DIV><FONT size=3D3D2>Hello Dev,</FONT></DIV>=
=3D0A<DIV><FONT si=3D=0Aze=3D3D2></FONT>&nbsp;</DIV>=3D0A<DIV><FONT
size=3D=
3D2>I am using sftpsubsystem i=3D=0An my project. </FONT></DIV>=3D0A<DIV><F=
ONT size=3D3D2></FONT>&nbsp;</DIV>=3D0A<DI=3D=0AV><FONT size=3D3D2>I&nbsp;<=
/FONT><FONT size=3D3D2>understand that SSHD 0.5.0 ha=3D=0As improved SftpSu=
bsystem allowing&nbsp;developer to use custom FileSystemVi=3D=0Aew.</FONT><=
/DIV>=3D0A<DIV><FONT size=3D3D2></FONT>&nbsp;</DIV>=3D0A<DIV><FONT
siz=3D=
=0Ae=3D3D2>I want to intercept each SFTP call to perform some "custom actio=
ns" o=3D=0An my "custom filesystem".</FONT></DIV>=3D0A<DIV>&nbsp;</DIV>=3D0=
A<DIV><FONT siz=3D=0Ae=3D3D2>This is what I have done - </FONT></DIV>=3D0A<=
OL>=3D0A<LI><FONT size=3D3D2>=3D=0AI have implemented my own authenticator
=
by extending "PasswordAuthenticator=3D=0A" class. In this class I call a we=
b service which returns me a "authenticat=3D=0Aoin token".</FONT></LI>=3D0A=
<LI><FONT size=3D3D2>I have defined my "FileSystemV=3D=0Aiew", it is a logi=
cal view of my objects. Subsequently extended "SSHFile" c=3D=0Alass. I need=
to access the "authentication token" in this class to call few=3D=0Amore w=
eb services. How to access?</FONT></LI>=3D0A<LI><FONT size=3D3D2>Is
it g=3D=
=0Aood idea to "extend" the "SftSubsystem" class to perform custom actions =
on =3D=0Aeach sftp call? The problem is that some of the variables like <FO=
NT size=3D=0A=3D3D2>session, root are private.</FONT></FONT></LI>=3D0A<LI><=
FONT size=3D3D2>I l=3D=0Aiked the idea of spring beans in 'apache ftplets -=
apache ftpserver'. Are w=3D=0Ae&nbsp;planning to have such facility in SSH=
D as well?</FONT></LI></OL>=3D0A<=3D=0AP>Thanks in advance,</P>=3D0A<P>Mac<=
/P></div><br>=3D0A=3D0A=3D0A=3D0A=3D0A=3D0A=3D0A=3D0A=A0 =A0 =3D=0A=A0 </bo=
dy></html>=0A--0-763272130-1291713104=3D:5582--=0A=0A=0A=0A      
--0-1055605574-1291713558=:6088
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:times new roman, new york, times, serif;=
font-size:10pt"><DIV>confirmation<BR></DIV>=0A<DIV style=3D"FONT-FAMILY:
ti=
mes new roman, new york, times, serif; FONT-SIZE: 10pt"><BR>=0A<DIV style=
=3D"FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 13px"><FONT size=
=3D2 face=3DTahoma>=0A<HR SIZE=3D1>=0A<B><SPAN style=3D"FONT-WEIGHT: bold">=
From:</SPAN></B> "users-help@mina.apache.org" &lt;users-help@mina.apache.or=
g&gt;<BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B>
machhindra.nal=
e@yahoo.com<BR><B><SPAN style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B>
Tue, D=
ecember 7, 2010 2:42:17 PM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">Subject:=
</SPAN></B> confirm subscribe to users@mina.apache.org<BR></FONT><BR>Hi!
Th=
is is the ezmlm program. I'm managing the<BR><A href=3D"mailto:users@mina.a=
pache.org" ymailto=3D"mailto:users@mina.apache.org">users@mina.apache.org</=
A> mailing list.<BR><BR>I'm working for my owner, who can be reached<BR>at
=
<A href=3D"mailto:users-owner@mina.apache.org" ymailto=3D"mailto:users-owne=
r@mina.apache.org">users-owner@mina.apache.org</A>.<BR><BR>To confirm
that =
you would like<BR><BR>&nbsp; <A href=3D"mailto:machhindra.nale@yahoo.com"
y=
mailto=3D"mailto:machhindra.nale@yahoo.com">machhindra.nale@yahoo.com</A><B=
R><BR>added to the users mailing list, please
send<BR>a short reply to this address:<BR><BR>&nbsp; users-sc.1291713137.a=
ogpcokmbddkfcnabdkf-machhindra.nale=3D<A href=3D"mailto:yahoo.com@mina.apac=
he.org" ymailto=3D"mailto:yahoo.com@mina.apache.org">yahoo.com@mina.apache.=
org</A><BR><BR>Usually, this happens when you just hit the "reply" button.<=
BR>If this does not work, simply copy the address and paste it into<BR>the =
"To:" field of a new message.<BR><BR>or click here:<BR>&nbsp;&nbsp;&nbsp;
m=
ailto:users-sc.1291713137.aogpcokmbddkfcnabdkf-machhindra.nale=3D<A href=3D=
"mailto:yahoo.com@mina.apache.org" ymailto=3D"mailto:yahoo.com@mina.apache.=
org">yahoo.com@mina.apache.org</A><BR><BR>This confirmation serves two
purp=
oses. First, it verifies that I am able<BR>to get mail through to you. Seco=
nd, it protects you in case someone<BR>forges a subscription request in you=
r name.<BR><BR>Some mail programs are broken and cannot handle long address=
es. If you<BR>cannot reply to this request, instead send a message to<BR>&l=
t;<A
href=3D"mailto:users-request@mina.apache.org" ymailto=3D"mailto:users-requ=
est@mina.apache.org">users-request@mina.apache.org</A>&gt; and put the<BR>e=
ntire address listed above into the "Subject:" line.<BR><BR><BR>--- Adminis=
trative commands for the users list ---<BR><BR>I can handle administrative =
requests automatically. Please<BR>do not send them to the list address! Ins=
tead, send<BR>your message to the correct command address:<BR><BR>To subscr=
ibe to the list, send a message to:<BR>&nbsp; &lt;<A href=3D"mailto:users-s=
ubscribe@mina.apache.org" ymailto=3D"mailto:users-subscribe@mina.apache.org=
">users-subscribe@mina.apache.org</A>&gt;<BR><BR>To remove your address
fro=
m the list, send a message to:<BR>&nbsp; &lt;<A href=3D"mailto:users-unsubs=
cribe@mina.apache.org" ymailto=3D"mailto:users-unsubscribe@mina.apache.org"=
>users-unsubscribe@mina.apache.org</A>&gt;<BR><BR>Send mail to the
followin=
g for info and FAQ for this list:<BR>&nbsp; &lt;<A
href=3D"mailto:users-info@mina.apache.org" ymailto=3D"mailto:users-info@mi=
na.apache.org">users-info@mina.apache.org</A>&gt;<BR>&nbsp; &lt;<A
href=3D"=
mailto:users-faq@mina.apache.org" ymailto=3D"mailto:users-faq@mina.apache.o=
rg">users-faq@mina.apache.org</A>&gt;<BR><BR>Similar addresses exist
for th=
e digest list:<BR>&nbsp; &lt;<A href=3D"mailto:users-digest-subscribe@mina.=
apache.org" ymailto=3D"mailto:users-digest-subscribe@mina.apache.org">users=
-digest-subscribe@mina.apache.org</A>&gt;<BR>&nbsp; &lt;<A href=3D"mailto:u=
sers-digest-unsubscribe@mina.apache.org" ymailto=3D"mailto:users-digest-uns=
ubscribe@mina.apache.org">users-digest-unsubscribe@mina.apache.org</A>&gt;<=
BR><BR>To get messages 123 through 145 (a maximum of 100 per request), mail=
:<BR>&nbsp; &lt;<A href=3D"mailto:users-get.123_145@mina.apache.org" ymailt=
o=3D"mailto:users-get.123_145@mina.apache.org">users-get.123_145@mina.apach=
e.org</A>&gt;<BR><BR>To get an index with subject and author for messages
1=
23-456 ,
mail:<BR>&nbsp; &lt;<A href=3D"mailto:users-index.123_456@mina.apache.org"=
ymailto=3D"mailto:users-index.123_456@mina.apache.org">users-index.123_456=
@mina.apache.org</A>&gt;<BR><BR>They are always returned as sets of
100, ma=
x 2000 per request,<BR>so you'll actually get 100-499.<BR><BR>To receive
al=
l messages with the same subject as message 12345,<BR>send a short message =
to:<BR>&nbsp; &lt;<A href=3D"mailto:users-thread.12345@mina.apache.org" yma=
ilto=3D"mailto:users-thread.12345@mina.apache.org">users-thread.12345@mina.=
apache.org</A>&gt;<BR><BR>The messages should contain one line or word
of t=
ext to avoid being<BR>treated as sp@m, but I will ignore their content.<BR>=
Only the ADDRESS you send to is important.<BR><BR>You can start a subscript=
ion for an alternate address,<BR>for example "<A href=3D"mailto:john@host.d=
omain" ymailto=3D"mailto:john@host.domain">john@host.domain</A>", just add =
a hyphen and your<BR>address (with '=3D' instead of '@') after the command
word:<BR>&lt;users-subscribe-john=3D<A href=3D"mailto:host.domain@mina.apa=
che.org" ymailto=3D"mailto:host.domain@mina.apache.org">host.domain@mina.ap=
ache.org</A>&gt;<BR><BR>To stop subscription for this address, mail:<BR>&lt=
;users-unsubscribe-john=3D<A href=3D"mailto:host.domain@mina.apache.org" ym=
ailto=3D"mailto:host.domain@mina.apache.org">host.domain@mina.apache.org</A=
>&gt;<BR><BR>In both cases, I'll send a confirmation message to that addres=
s. When<BR>you receive it, simply reply to it to complete your subscription=
.<BR><BR>If despite following these instructions, you do not get the<BR>des=
ired results, please contact my owner at<BR><A href=3D"mailto:users-owner@m=
ina.apache.org" ymailto=3D"mailto:users-owner@mina.apache.org">users-owner@=
mina.apache.org</A>. Please be patient, my owner is a<BR>lot slower than I =
am ;-)<BR><BR>--- Enclosed is a copy of the request I received.<BR><BR>Retu=
rn-Path: &lt;<A href=3D"mailto:machhindra.nale@yahoo.com"
ymailto=3D"mailto:machhindra.nale@yahoo.com">machhindra.nale@yahoo.com</A>=
&gt;<BR>Received: (qmail 27353 invoked by uid 99); 7 Dec 2010 09:12:17 -000=
0<BR>Received: from <A href=3D"http://nike.apache.org/" target=3D_blank>nik=
e.apache.org</A> (HELO nike.apache.org) (192.87.106.230)<BR>&nbsp; &nbsp;
b=
y <A href=3D"http://apache.org/" target=3D_blank>apache.org</A> (qpsmtpd/0.=
29) with ESMTP; Tue, 07 Dec 2010 09:12:17 +0000<BR>X-ASF-Spam-Status: No, h=
its=3D0.2 required=3D10.0<BR>&nbsp;&nbsp;&nbsp; tests=3DASF_LIST_OPS,FREEMA=
IL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRK=
TS_FREEMAIL<BR>X-Spam-Check-By: apache.org<BR>Received-SPF: pass (nike.apac=
he.org: local policy)<BR>Received: from [98.139.91.236] (HELO <A href=3D"ht=
tp://nm29-vm0.bullet.mail.sp2.yahoo.com/" target=3D_blank>nm29-vm0.bullet.m=
ail.sp2.yahoo.com</A>) (98.139.91.236)<BR>&nbsp; &nbsp; by apache.org
(qpsm=
tpd/0.29) with SMTP; Tue, 07 Dec 2010 09:12:06 +0000<BR>Received: from [98.=
139.91.69] by
<A href=3D"http://nm29.bullet.mail.sp2.yahoo.com/" target=3D_blank>nm29.bu=
llet.mail.sp2.yahoo.com</A> with NNFMP; 07 Dec 2010 09:11:44 -0000<BR>Recei=
ved: from [98.139.91.12] by <A href=3D"http://tm9.bullet.mail.sp2.yahoo.com=
/" target=3D_blank>tm9.bullet.mail.sp2.yahoo.com</A> with NNFMP; 07 Dec 201=
0 09:11:44 -0000<BR>Received: from [127.0.0.1] by <A href=3D"http://omp1012=
.mail.sp2.yahoo.com/" target=3D_blank>omp1012.mail.sp2.yahoo.com</A> with N=
NFMP; 07 Dec 2010 09:11:44 -0000<BR>X-Yahoo-Newman-Property: ymail-3<BR>X-Y=
ahoo-Newman-Id: <A href=3D"mailto:701894.94185.bm@omp1012.mail.sp2.yahoo.co=
m" ymailto=3D"mailto:701894.94185.bm@omp1012.mail.sp2.yahoo.com">701894.941=
85.bm@omp1012.mail.sp2.yahoo.com</A><BR>Received: (qmail 8328 invoked by ui=
d 60001); 7 Dec 2010 09:11:44 -0000<BR>DKIM-Signature: v=3D1; a=3Drsa-sha25=
6; c=3Drelaxed/relaxed; d=3Dyahoo.com; s=3Ds1024; t=3D1291713104; bh=3D78Sg=
AyZO+IVqVKzULau4S2RIVx8xiaM0pDNdJMBgXsg=3D;
h=3DMessage-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Ver=
sion:Content-Type; b=3DHlbB40+h3WC3mzbHByZT7hcRCiDkVEri1u7exKaWI7+wafb1dIX+=
pzaOPI1Hsnx/ebfeJU6Fm71+AsWQTMdlL0u8AI7RHpuWlgGTh4riCuqURxbDWYXSACIZ99eQewr=
7N10YygyaMwffcJx/AsEuioS6YLuLO4y5useknZrp/hY=3D<BR>DomainKey-Signature:a=3D=
rsa-sha1; q=3Ddns; c=3Dnofws;<BR>&nbsp; s=3Ds1024; d=3Dyahoo.com;<BR>&nbsp;=
h=3DMessage-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Ver=
sion:Content-Type;<BR>&nbsp; b=3DDsjfwCZvqsXYv3M40YNyMJ9Hvcf5fdJH0mou5ozxGz=
bMkrsXrT2d9NDX+ToJ8RhArNOtMW6T+FxX12E/wsLvZAr8iWbu43H5Mm6FtwWEk7RhkwM8TzC0w=
n/bO2qECdMeVO6HAlw5PR6Yuf8NiWACArgvcQVMM1tUv6AfSZqQHAc=3D;<BR>Message-ID: &=
lt;<A href=3D"mailto:308113.5582.qm@web112102.mail.gq1.yahoo.com" ymailto=
=3D"mailto:308113.5582.qm@web112102.mail.gq1.yahoo.com">308113.5582.qm@web1=
12102.mail.gq1.yahoo.com</A>&gt;<BR>X-YMail-OSG:
dkrHYksVM1k3efXLWDtP36ta_nz9WmAgueC3BS0KLoLbxf5<BR>X9UJChc0soxv2J4kWSH3uL4=
H.Du0tWL3B_EsV9qwPaSRd7nWWbpNhFaZYpWc<BR>qwrfg_R8DDy4oWat8oFY3LnZKkZIn9UJqg=
0qcaS5x3TH9kxipsLYauWgogeZ<BR>zHO.MeL4I2dWknCYlrJkrDQ6E9oAkKtewPh7SOZw1tLvn=
t6emMZk85zUax40<BR>oCp6n69333MsRaDUMp9kmvqqJPNocKp9FbOzxUw9UelvsGhF9hx5_M29=
BDa9<BR>e8.EoYduYCaIgyw3Jxg--<BR>Received: from [155.35.46.13] by <A href=
=3D"http://web112102.mail.gq1.yahoo.com/" target=3D_blank>web112102.mail.gq=
1.yahoo.com</A> via HTTP; Tue, 07 Dec 2010 01:11:44 PST<BR>X-Mailer: YahooM=
ailRC/553 YahooMailWebService/0.8.107.285259<BR>Date: Tue, 7 Dec 2010 01:11=
:44 -0800 (PST)<BR>From: Machhindra Nale &lt;<A href=3D"mailto:machhindra.n=
ale@yahoo.com" ymailto=3D"mailto:machhindra.nale@yahoo.com">machhindra.nale=
@yahoo.com</A>&gt;<BR>Subject: SFTP subsystem<BR>To: <A href=3D"mailto:user=
s-subscribe@mina.apache.org" ymailto=3D"mailto:users-subscribe@mina.apache.=
org">users-subscribe@mina.apache.org</A><BR>MIME-Version: 1.0<BR>Content-Ty=
pe:
multipart/alternative; boundary=3D"0-763272130-1291713104=3D:5582"<BR>X-Vi=
rus-Checked: Checked by ClamAV on apache.org<BR><BR>--0-763272130-129171310=
4=3D:5582<BR>Content-Type: text/plain; charset=3Diso-8859-1<BR>Content-Tran=
sfer-Encoding: quoted-printable<BR><BR>Hello Dev,=3D0A=3DA0=3D0AI am using =
sftpsubsystem in my project. =3D0A=3DA0=3D0AI=3DA0und=3D<BR>erstand that SS=
HD 0.5.0 has improved SftpSubsystem allowing=3DA0developer to =3D<BR>=3D0Au=
se custom FileSystemView.=3D0A=3DA0=3D0AI want to intercept each SFTP call =
to=3D<BR>perform some "custom actions" on my =3D0A"custom filesystem".=3D0A=
=3D0AThis is w=3D<BR>hat I have done - =3D0A=3D091. I have implemented my o=
wn authenticator by exten=3D<BR>ding "PasswordAuthenticator" =3D0Aclass. In=
this class I call a web service w=3D<BR>hich returns me a "authenticatoin =
=3D0Atoken".=3D0A=3D092. I have defined my "Fil=3D<BR>eSystemView", it is a=
logical view of my objects. =3D0ASubsequently extended =3D<BR>"SSHFile" cl=
ass. I need to access the "authentication =3D0Atoken" in this
cla=3D<BR>ss to call few more web services. How to access?=3D0A=3D093. Is =
it good idea to=3D<BR>"extend" the "SftSubsystem" class to perform custom =
=3D0Aactions on each sft=3D<BR>p call? The problem is that some of the vari=
ables like =3D0Asession, root are=3D<BR>private.=3D0A=3D094. I liked the id=
ea of spring beans in 'apache ftplets - apa=3D<BR>che ftpserver'. Are =3D0A=
we=3DA0planning to have such facility in SSHD as well?=3D<BR>=3D0AThanks in=
advance,=3D0AMac=3D0A=3D0A=3D0A&nbsp; &nbsp; &nbsp; <BR>--0-763272130-1291=
713104=3D:5582<BR>Content-Type: text/html; charset=3Diso-8859-1<BR>Content-=
Transfer-Encoding: quoted-printable<BR><BR>&lt;html&gt;&lt;head&gt;&lt;styl=
e type=3D3D"text/css"&gt;&lt;!-- DIV {margin:0px;} --&gt;&lt;/style&gt;&lt;=
/he=3D<BR>ad&gt;&lt;body&gt;&lt;div style=3D3D"font-family:times new
roman,=
new york, times, serif;=3D<BR>font-size:12pt"&gt;&lt;DIV&gt;&lt;FONT
size=
=3D3D2&gt;Hello Dev,&lt;/FONT&gt;&lt;/DIV&gt;=3D0A&lt;DIV&gt;&lt;FONT
si=3D<BR>ze=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;=3D0A&lt;DIV&gt;&l=
t;FONT size=3D3D2&gt;I am using sftpsubsystem i=3D<BR>n my project. &lt;/FO=
NT&gt;&lt;/DIV&gt;=3D0A&lt;DIV&gt;&lt;FONT size=3D3D2&gt;&lt;/FONT&gt;&amp;=
nbsp;&lt;/DIV&gt;=3D0A&lt;DI=3D<BR>V&gt;&lt;FONT size=3D3D2&gt;I&amp;nbsp;&=
lt;/FONT&gt;&lt;FONT size=3D3D2&gt;understand that SSHD 0.5.0 ha=3D<BR>s
im=
proved SftpSubsystem allowing&amp;nbsp;developer to use custom FileSystemVi=
=3D<BR>ew.&lt;/FONT&gt;&lt;/DIV&gt;=3D0A&lt;DIV&gt;&lt;FONT
size=3D3D2&gt;&=
lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;=3D0A&lt;DIV&gt;&lt;FONT siz=3D<BR>e=3D3D=
2&gt;I want to intercept each SFTP call to perform some "custom actions" o=
=3D<BR>n my "custom filesystem".&lt;/FONT&gt;&lt;/DIV&gt;=3D0A&lt;DIV&gt;&a=
mp;nbsp;&lt;/DIV&gt;=3D0A&lt;DIV&gt;&lt;FONT siz=3D<BR>e=3D3D2&gt;This
is w=
hat I have done - &lt;/FONT&gt;&lt;/DIV&gt;=3D0A&lt;OL&gt;=3D0A&lt;LI&gt;&l=
t;FONT size=3D3D2&gt;=3D<BR>I have implemented my own authenticator by exte=
nding "PasswordAuthenticator=3D<BR>" class. In
this class I call a web service which returns me a "authenticat=3D<BR>oin =
token".&lt;/FONT&gt;&lt;/LI&gt;=3D0A&lt;LI&gt;&lt;FONT size=3D3D2&gt;I
have=
defined my "FileSystemV=3D<BR>iew", it is a logical view of my objects. Su=
bsequently extended "SSHFile" c=3D<BR>lass. I need to access the "authentic=
ation token" in this class to call few=3D<BR>more web services. How to acce=
ss?&lt;/FONT&gt;&lt;/LI&gt;=3D0A&lt;LI&gt;&lt;FONT size=3D3D2&gt;Is
it g=3D=
<BR>ood idea to "extend" the "SftSubsystem" class to perform custom actions=
on =3D<BR>each sftp call? The problem is that some of the variables like &=
lt;FONT size=3D<BR>=3D3D2&gt;session, root are private.&lt;/FONT&gt;&lt;/FO=
NT&gt;&lt;/LI&gt;=3D0A&lt;LI&gt;&lt;FONT size=3D3D2&gt;I l=3D<BR>iked
the i=
dea of spring beans in 'apache ftplets - apache ftpserver'. Are w=3D<BR>e&a=
mp;nbsp;planning to have such facility in SSHD as well?&lt;/FONT&gt;&lt;/LI=
&gt;&lt;/OL&gt;=3D0A&lt;=3D<BR>P&gt;Thanks in
advance,&lt;/P&gt;=3D0A&lt;P&gt;Mac&lt;/P&gt;&lt;/div&gt;&lt;br&gt;=3D0A=
=3D0A=3D0A=3D0A=3D0A=3D0A=3D0A=3D0A&nbsp; &nbsp; =3D<BR>&nbsp; &lt;/body&gt=
;&lt;/html&gt;<BR>--0-763272130-1291713104=3D:5582--<BR></DIV></DIV></div><=
br>=0A=0A      </body></html>
--0-1055605574-1291713558=:6088--


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