proftpd-mod_proxy | FTP proxy support for ProFTPD | Proxy library
kandi X-RAY | proftpd-mod_proxy Summary
kandi X-RAY | proftpd-mod_proxy Summary
FTP proxy support for ProFTPD
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of proftpd-mod_proxy
proftpd-mod_proxy Key Features
proftpd-mod_proxy Examples and Code Snippets
Community Discussions
Trending Discussions on proftpd-mod_proxy
QUESTION
currently working on an ftp proxy with ProFTPD.
Our setup is pretty much still the same as in this issue.
However, we struggle to make use of the username. As we want to hide/transport the target server in the username we do an rewrite on the username to get it cleaned up.
So far so good, we can use the clean username. To do an LDAP authentication.
However we are still in need of the targetserver string that was in the username before the rewrite.
Any information on how to:
- save the original username to a environment variable before it is rewritten (and prevent the env variable to be rewritten as well)
- use the ProFTPD notes (read about it but somehow failed to find and docs on it)
- access the original username (not the rewritten one)
- any other information how to accomplish hiding username and targetserver in the connection and using it
are very welcome.
Maybe there is some kind of technique that we do use in the wrong way or a technique that we failed to use so far.
Edit:
Regarding @Castaglia
Was said we do have 2 infos in the original username. ADuser@RemoteServer.
Withe the ADuser we want to establish an LDAP authentication. With the RemoteServer info we want to connect to a remote server with credentials we queried from MySQL.
What we struggle with right now is making use of both infos. With the rewrite we get a clean user but loose the server.
So what we are looking for is some sort of option to save the original string to a var. And rewrite it 2 times. One time into a userstring to authenticate ans one time into a server name to know which server the user wants to connect to.
...ANSWER
Answered 2017-Aug-04 at 03:50I think that to get what you want to achieve, you might try the following.
First, modify the RewriteRule
slightly, in order to capture the second part of your USER
command (e.g. "RemoteServer"), thus:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install proftpd-mod_proxy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page