Forum Discussion
Michael_Woods_5
Nimbostratus
Jan 05, 2007FTP Username
Is there anything similar to HTTP::username for FTP? I'd like to be able to create an iRule that will read in the username entered during authentication and do whatever I want with it afterwards. ...
Deb_Allen_18
Jan 05, 2007Historic F5 Account
You can use TCP::collect to capture the connection details, then look for the USER request command in TCP::payload & save the argument off to a variable:
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
if {[TCP::payload] starts_with "USER" }{
set user [getfield [TCP::payload] " " 2]
log local0. $user
}
TCP::release
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects