Forum Discussion
Rise_77519
Nimbostratus
Nov 01, 2013apm question
Hi,
is it possible to assign resource to users based radius attribute like nested group in active directory. for exm. i have two user group that are technical and sales in radius. if a user from tech...
Kevin_Stewart
Employee
Dec 06, 2013Try this:
when ACCESS_POLICY_AGENT_EVENT {
if { [ACCESS::session data get session.radius.last.attr.class] ne "" } {
set bin [ACCESS::session data get session.radius.last.attr.class]
log local0. "bin = $bin"
convert this HEX string for binary format input
if { [catch {
set ascii ""
for { set i 0 } { $i < [string length $bin] } { incr i 2 } {
if { not ( [string range $bin $i [expr $i + 1]] equals "0x" ) } {
append ascii "0x[string range $bin $i [expr $i + 1]] "
}
}
log local0. "ascii = $ascii"
binary format HEX data to ascii and add to an APM session variable
[ACCESS::session data set session.radius.last.attr.class.decoded [binary format c* $ascii]
log local0. "decoded = [binary format c* $ascii]"
} err] } {
log local0. "error = $err"
}
}
}
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