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.
Thanks!
3 Replies
- Deb_Allen_18Historic F5 AccountYou 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
} - Michael_Woods_5
Nimbostratus
Thank you...I'll give it a try!
-mike - Greg_Phillips_3
Nimbostratus
Just tried this and for some reason "CLIENT_ACCEPTED" causes a hang where the client waits on the login prompt until timing out... Did this work on your system?
Thanks,
Greg
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