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: "[email protected]" <[email protected]>
To: [email protected]
Sent: Tue, December 7, 2010 2:49:53 PM
Subject: WELCOME to [email protected]
Hi! This is the ezmlm program. I'm managing the
[email protected] mailing list.
I'm working for my owner, who can be reached
at [email protected].
Acknowledgment: I have added the address
[email protected]
to the users mailing list.
Welcome to [email protected]!
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:
<[email protected]>
To remove your address from the list, send a message to:
<[email protected]>
Send mail to the following for info and FAQ for this list:
<[email protected]>
<[email protected]>
Similar addresses exist for the digest list:
<[email protected]>
<[email protected]>
To get messages 123 through 145 (a maximum of 100 per request), mail:
<[email protected]>
To get an index with subject and author for messages 123-456 , mail:
<[email protected]>
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:
<[email protected]>
The messages should contain one line or word of text to avoid being
treated as s...@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 "[email protected]", just add a hyphen and your
address (with '=' instead of '@') after the command word:
<[email protected]>
To stop subscription for this address, mail:
<[email protected]>
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
[email protected]. Please be patient, my owner is a
lot slower than I am ;-)
--- Enclosed is a copy of the request I received.
Return-Path: <[email protected]>
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: [email protected]
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: <[email protected]>
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: <[email protected]>
Date: Tue, 7 Dec 2010 01:19:18 -0800 (PST)
From: Machhindra Nale <[email protected]>
Subject: Re: confirm subscribe to [email protected]
To:
users-sc.1291713137.aogpcokmbddkfcnabdkf-machhindra.nale=yahoo....@mina.apache.org
In-Reply-To: <[email protected]>
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-=
[email protected]" <[email protected]>=0ATo: machhindra.n...@ya=
hoo.com=0ASent: Tue, December 7, 2010 2:42:17 PM=0ASubject: confirm subscri=
be to [email protected]=0a=0ahi! This is the ezmlm program. I'm managin=
g [email protected] mailing list.=0A=0AI'm working for my owner, =
who can be reached=0Aat [email protected].=0a=0ato confirm that y=
ou would like=0A=0A=A0 [email protected]=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....@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....@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<[email protected]> 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 <[email protected]>=
=0A=0ATo remove your address from the list, send a message to:=0A=A0 <users=
[email protected]>=0A=0ASend mail to the following for info and =
FAQ for this list:=0A=A0 <[email protected]>=0A=A0 <users-...@mina=
.apache.org>=0A=0ASimilar addresses exist for the digest list:=0A=A0 <users=
[email protected]>=0A=A0 <[email protected]=
che.org>=0A=0ATo get messages 123 through 145 (a maximum of 100 per request=
), mail:=0A=A0 <[email protected]>=0A=0ATo get an index wit=
h subject and author for messages 123-456 , mail:=0A=A0 <users-index.123_45=
[email protected]>=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=
[email protected]>=0A=0AThe messages should contain one lin=
e or word of text to avoid being=0Atreated as s...@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 "[email protected]", j=
ust add a hyphen and your=0Aaddress (with '=3D' instead of '@') after the c=
ommand word:=0A<[email protected]>=0A=0ATo=
stop subscription for this address, mail:=0A<users-unsubscribe-john=3Dhost=
[email protected]>=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 [email protected]=
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=
[email protected]>=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: [email protected]=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:=
<[email protected]>=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 <[email protected]>=0ASubject: SFTP subs=
ystem=0ATo: [email protected]=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> </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> </DIV>=3D0A<DI=3D=0AV><FONT size=3D3D2>I <=
/FONT><FONT size=3D3D2>understand that SSHD 0.5.0 ha=3D=0As improved SftpSu=
bsystem allowing developer to use custom FileSystemVi=3D=0Aew.</FONT><=
/DIV>=3D0A<DIV><FONT size=3D3D2></FONT> </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> </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 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> "[email protected]" <[email protected]=
g><BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B> machhindra.nal=
[email protected]<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 [email protected]<BR></FONT><BR>Hi! Th=
is is the ezmlm program. I'm managing the<BR><A href=3D"mailto:[email protected]=
pache.org" ymailto=3D"mailto:[email protected]">[email protected]</=
A> mailing list.<BR><BR>I'm working for my owner, who can be reached<BR>at =
<A href=3D"mailto:[email protected]" ymailto=3D"mailto:users-owne=
[email protected]">[email protected]</A>.<BR><BR>To confirm that =
you would like<BR><BR> <A href=3D"mailto:[email protected]" y=
mailto=3D"mailto:[email protected]">[email protected]</A><B=
R><BR>added to the users mailing list, please
send<BR>a short reply to this address:<BR><BR> users-sc.1291713137.a=
ogpcokmbddkfcnabdkf-machhindra.nale=3D<A href=3D"mailto:[email protected]=
he.org" ymailto=3D"mailto:[email protected]">[email protected].=
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> m=
ailto:users-sc.1291713137.aogpcokmbddkfcnabdkf-machhindra.nale=3D<A href=3D=
"mailto:[email protected]" ymailto=3D"mailto:[email protected].=
org">[email protected]</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:[email protected]" ymailto=3D"mailto:users-requ=
[email protected]">[email protected]</A>> 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> <<A href=3D"mailto:users-s=
[email protected]" ymailto=3D"mailto:[email protected]=
">[email protected]</A>><BR><BR>To remove your address fro=
m the list, send a message to:<BR> <<A href=3D"mailto:users-unsubs=
[email protected]" ymailto=3D"mailto:[email protected]"=
>[email protected]</A>><BR><BR>Send mail to the followin=
g for info and FAQ for this list:<BR> <<A
href=3D"mailto:[email protected]" ymailto=3D"mailto:users-i...@mi=
na.apache.org">[email protected]</A>><BR> <<A href=3D"=
mailto:[email protected]" ymailto=3D"mailto:[email protected]=
rg">[email protected]</A>><BR><BR>Similar addresses exist for th=
e digest list:<BR> <<A href=3D"mailto:users-digest-subscr...@mina.=
apache.org" ymailto=3D"mailto:[email protected]">users=
[email protected]</A>><BR> <<A href=3D"mailto:u=
[email protected]" ymailto=3D"mailto:users-digest-uns=
[email protected]">[email protected]</A>><=
BR><BR>To get messages 123 through 145 (a maximum of 100 per request), mail=
:<BR> <<A href=3D"mailto:[email protected]" ymailt=
o=3D"mailto:[email protected]">[email protected]=
e.org</A>><BR><BR>To get an index with subject and author for messages 1=
23-456 ,
mail:<BR> <<A href=3D"mailto:[email protected]"=
ymailto=3D"mailto:[email protected]">users-index.123_456=
@mina.apache.org</A>><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> <<A href=3D"mailto:[email protected]" yma=
ilto=3D"mailto:[email protected]">users-thread.12...@mina.=
apache.org</A>><BR><BR>The messages should contain one line or word of t=
ext to avoid being<BR>treated as s...@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:[email protected]=
omain" ymailto=3D"mailto:[email protected]">[email protected]</A>", just add =
a hyphen and your<BR>address (with '=3D' instead of '@') after the command
word:<BR><users-subscribe-john=3D<A href=3D"mailto:[email protected]=
che.org" ymailto=3D"mailto:[email protected]">[email protected]=
ache.org</A>><BR><BR>To stop subscription for this address, mail:<BR><=
;users-unsubscribe-john=3D<A href=3D"mailto:[email protected]" ym=
ailto=3D"mailto:[email protected]">[email protected]</A=
>><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-ow...@m=
ina.apache.org" ymailto=3D"mailto:[email protected]">users-ow...@=
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: <<A href=3D"mailto:[email protected]"
ymailto=3D"mailto:[email protected]">[email protected]</A>=
><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> 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> 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> 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:[email protected]=
m" ymailto=3D"mailto:[email protected]">701894.941=
[email protected]</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> s=3Ds1024; d=3Dyahoo.com;<BR> =
h=3DMessage-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Ver=
sion:Content-Type;<BR> b=3DDsjfwCZvqsXYv3M40YNyMJ9Hvcf5fdJH0mou5ozxGz=
bMkrsXrT2d9NDX+ToJ8RhArNOtMW6T+FxX12E/wsLvZAr8iWbu43H5Mm6FtwWEk7RhkwM8TzC0w=
n/bO2qECdMeVO6HAlw5PR6Yuf8NiWACArgvcQVMM1tUv6AfSZqQHAc=3D;<BR>Message-ID: &=
lt;<A href=3D"mailto:[email protected]" ymailto=
=3D"mailto:[email protected]">308113.5582...@web1=
12102.mail.gq1.yahoo.com</A>><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 <<A href=3D"mailto:machhindra.n=
[email protected]" ymailto=3D"mailto:[email protected]">machhindra.nale=
@yahoo.com</A>><BR>Subject: SFTP subsystem<BR>To: <A href=3D"mailto:user=
[email protected]" ymailto=3D"mailto:[email protected].=
org">[email protected]</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 <BR>--0-763272130-1291=
713104=3D:5582<BR>Content-Type: text/html; charset=3Diso-8859-1<BR>Content-=
Transfer-Encoding: quoted-printable<BR><BR><html><head><styl=
e type=3D3D"text/css"><!-- DIV {margin:0px;} --></style><=
/he=3D<BR>ad><body><div style=3D3D"font-family:times new roman,=
new york, times, serif;=3D<BR>font-size:12pt"><DIV><FONT size=
=3D3D2>Hello Dev,</FONT></DIV>=3D0A<DIV><FONT
si=3D<BR>ze=3D3D2></FONT>&nbsp;</DIV>=3D0A<DIV>&l=
t;FONT size=3D3D2>I am using sftpsubsystem i=3D<BR>n my project. </FO=
NT></DIV>=3D0A<DIV><FONT size=3D3D2></FONT>&=
nbsp;</DIV>=3D0A<DI=3D<BR>V><FONT size=3D3D2>I&nbsp;&=
lt;/FONT><FONT size=3D3D2>understand that SSHD 0.5.0 ha=3D<BR>s im=
proved SftpSubsystem allowing&nbsp;developer to use custom FileSystemVi=
=3D<BR>ew.</FONT></DIV>=3D0A<DIV><FONT size=3D3D2>&=
lt;/FONT>&nbsp;</DIV>=3D0A<DIV><FONT siz=3D<BR>e=3D3D=
2>I want to intercept each SFTP call to perform some "custom actions" o=
=3D<BR>n my "custom filesystem".</FONT></DIV>=3D0A<DIV>&a=
mp;nbsp;</DIV>=3D0A<DIV><FONT siz=3D<BR>e=3D3D2>This is w=
hat I have done - </FONT></DIV>=3D0A<OL>=3D0A<LI>&l=
t;FONT size=3D3D2>=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".</FONT></LI>=3D0A<LI><FONT size=3D3D2>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?</FONT></LI>=3D0A<LI><FONT size=3D3D2>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>session, root are private.</FONT></FO=
NT></LI>=3D0A<LI><FONT size=3D3D2>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?</FONT></LI=
></OL>=3D0A<=3D<BR>P>Thanks in
advance,</P>=3D0A<P>Mac</P></div><br>=3D0A=
=3D0A=3D0A=3D0A=3D0A=3D0A=3D0A=3D0A =3D<BR> </body>=
;</html><BR>--0-763272130-1291713104=3D:5582--<BR></DIV></DIV></div><=
br>=0A=0A </body></html>
--0-1055605574-1291713558=:6088--