mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Pennebaker (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SSHD-150) Need an API to configure a user's home directory
Date Tue, 26 Nov 2013 18:02:35 GMT

    [ https://issues.apache.org/jira/browse/SSHD-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13832790#comment-13832790
] 

Andrew Pennebaker edited comment on SSHD-150 at 11/26/13 6:01 PM:
------------------------------------------------------------------

I have the exact same need as Gary: I want to embed an SSHD server in a unit test, specifying
src/test/resources/ as home directory.

This feature is why I'm exploring Java-based ssh servers.


was (Author: apennebaker42six):
I have the exact same need as Gary: I want to embed an SSHD server in a unit test, specifying
src/test/resources/ as home directory. This is my whole reason for using MINA/SSHD.

> Need an API to configure a user's home directory
> ------------------------------------------------
>
>                 Key: SSHD-150
>                 URL: https://issues.apache.org/jira/browse/SSHD-150
>             Project: MINA SSHD
>          Issue Type: New Feature
>    Affects Versions: 0.6.0
>         Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
> Maven home: C:\Java\apache-maven-3.0.3\bin\..
> Java version: 1.6.0_29, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_29\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary Gregory
>
> I need an API to configure a user and his home directory, just like you can with Apache's
FTP server BaseUser class (http://mina.apache.org/ftpserver/): 
> {code:java}
>         final BaseUser user = (BaseUser) userManager.getUserByName("test");
>         user.setHomeDirectory(getTestDirectory());
> {code}
> My goal is to embed an SSHd server in the SFTP unit tests for Apache Commons VFS.
> I need to point the test user's home directory to a subdirectory in the projects's resources.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message