Forum Discussion
Amit_Grover_171
Nimbostratus
Oct 12, 2015Need to write Irule to decode auth string to Base64 and fetch domain name from it and compare that domain name with certificate to deny/permit traffic
Hi,
Need to write Irule to decode auth string to Base64 and fetch domain name from it and compare that domain name with certificate to deny/permit traffic.
Please help ASAP.
/Regards
A...
Kevin_Stewart
Employee
Oct 12, 2015Right, so minor modification required:
when HTTP_REQUEST {
if { [HTTP::header exists Authorization] } {
set creds [HTTP::username]
if { $creds ne "" } {
credentials will ether be in domain\user:password or user@domain:password format
if { $creds contains "\\" } {
set domain [findstr $creds "" 0 "\\"]
} elseif { $creds contains "@" } {
set domain [findstr $creds "@" 1]
}
log local0. $domain
}
}
}
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