[
https://issues.apache.org/jira/browse/FTPSERVER-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467073
]
Niklas Gustavsson commented on FTPSERVER-28:
--------------------------------------------
We know got a dedicated FtpSession class. We could pass this to the
FtpSystemManager and a custom implementation could then keep track of it.
However, I'm not sure I enterily understand the orginal question. When you say
"then uses the same connection to get virtual file system" what does that mean?
Is the flow like this:
1. User logs in to FTP server using USER/PASS. You right away log the user into
the database and get back a connection. If the database login fail, you want to
fail the FTP login.
2. Later, when the user wants to perform some kind file action, you reuse the
DB connection
3. QUIT should also log out the user from the database (close the connection)
> Need a notion of a session
> --------------------------
>
> Key: FTPSERVER-28
> URL: https://issues.apache.org/jira/browse/FTPSERVER-28
> Project: FtpServer
> Issue Type: New Feature
> Reporter: Alexey N. Solofnenko
>
> I need to write FTP service for a propriattary database. Essentially a user
> logs into the database, then uses the same connection to get virtual file
> system, and later logs out. UserManager.authenticate() returns a boolean
> variable, but it has to return a session object in that case.
> - Alexey.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.