Re: Configuring a custom UserManager

2010-11-11 Thread John Hartnup
Hi again,

On a similar note, I'm having trouble getting a custom SITE command in
Apache ftpserver to work.

commands
command name=SITE_PARM
spring:bean class=org.john.ftps.command.SITE_PARM/
/command
/commands

I can see (via logging) that the SITE_PARM object is constructed, but when I
send the site parm ftp command, I get a 502 error, suggesting that the
CommandFactory has not returned the object.

Any suggestions?

(By the way, is this the right mailing list to ask such questions?)

Thanks,
John

-- 
There is no way to peace; peace is the way


RE: (SSHD-82) Virtual File System

2010-11-11 Thread Frank van der Kleij

I am finally working on a VFS implementation now. For me it be more practical 
if the FileSystemFactory would receive the Session instead of just the username.

The VFS Authenticator resolves the user name and password and string 
representing the root of the virtual filesystem and creates a FileObject. This 
FileObject should be injected in the FileSystemView, which can be done via the 
session.

(In the past this information was picked up by the commands (shell, scp, sftp) 
through the setSession method)

I also noticed that the SCP command is not yet using the FileSystemView.

Should I propose a patch?

Thanks,

Frank



 Date: Tue, 12 Oct 2010 14:33:17 -0400
 From: matthew.schu...@onlinebankingsolutions.com
 To: dev@mina.apache.org
 Subject: (SSHD-82) Virtual File System
 
 A patch has been attached to the SSHD-82 issue related to integrating a 
 Virtual File System similar to that in the Apache FTP Server into the 
 SSHD SFTP subsystem. The patch adds the VFS functionality, a native 
 filesystem implementation of the functionality, and a few other minor 
 improvements.
 
 Matthew Schulze
  

Re: (SSHD-82) Virtual File System

2010-11-11 Thread Guillaume Nodet
That would be awesome.  I don't have much time to any real dev on sshd
those days, but i'll happily review and apply any patches.

On Thu, Nov 11, 2010 at 17:20, Frank van der Kleij kl...@hotmail.com wrote:

 I am finally working on a VFS implementation now. For me it be more practical 
 if the FileSystemFactory would receive the Session instead of just the 
 username.

 The VFS Authenticator resolves the user name and password and string 
 representing the root of the virtual filesystem and creates a FileObject. 
 This FileObject should be injected in the FileSystemView, which can be done 
 via the session.

 (In the past this information was picked up by the commands (shell, scp, 
 sftp) through the setSession method)

 I also noticed that the SCP command is not yet using the FileSystemView.

 Should I propose a patch?

 Thanks,

 Frank



 Date: Tue, 12 Oct 2010 14:33:17 -0400
 From: matthew.schu...@onlinebankingsolutions.com
 To: dev@mina.apache.org
 Subject: (SSHD-82) Virtual File System

 A patch has been attached to the SSHD-82 issue related to integrating a
 Virtual File System similar to that in the Apache FTP Server into the
 SSHD SFTP subsystem. The patch adds the VFS functionality, a native
 filesystem implementation of the functionality, and a few other minor
 improvements.

 Matthew Schulze




-- 
Cheers,
Guillaume Nodet

Blog: http://gnodet.blogspot.com/

Open Source SOA
http://fusesource.com


Re: Configuring a custom UserManager

2010-11-11 Thread John Hartnup
OK, I've explained the issue. I was looking at the 1.1.0 SNAPSHOT source,
while running the stable 1.0.5 code. 1.0.5 does not use the dynamically
configured CommandFactory for SITE commands.

Is there some sort of guesstimate as to when 1.1.0 will become a stable
release?

On 11 November 2010 14:27, John Hartnup john.hart...@gmail.com wrote:

 Hi again,

 On a similar note, I'm having trouble getting a custom SITE command in
 Apache ftpserver to work.

 commands
  command name=SITE_PARM
 spring:bean class=org.john.ftps.command.SITE_PARM/
  /command
 /commands

 I can see (via logging) that the SITE_PARM object is constructed, but when
 I send the site parm ftp command, I get a 502 error, suggesting that the
 CommandFactory has not returned the object.

 Any suggestions?

 (By the way, is this the right mailing list to ask such questions?)

 Thanks,
 John

 --
 There is no way to peace; peace is the way




-- 
There is no way to peace; peace is the way