To enable and define the behavior for username domain stripping for received PoD and CoA Requests use the domain stripping
command in dynamic authorization local server configuration mode. To return to the default setting, use the no form of this
command.
Syntax
domain stripping [right-to-left]
no domain stripping
Parameters
stripping — Compares the incoming username with the names oriented to the left of the domain delimiter
stripping [right-to-left] (optional) - Terminates the string at the first delimiter going from right to left
Command Mode
Dynamic authorization local server configuration (config-locsvr-da-radius)
Default Configuration
Stripping is disabled by default. Stripping default direction is left-to-right.
User Guidelines
Use the domain stripping command to enable username domain stripping based on the delimiter configured in the domain delimiter
command. Domain stripping allows to compare the incoming username with the names oriented to the left of the @ domain delimiter.
Configuring domain stripping allows you to send disconnect messages with only the username present before the @ domain delimiter
(or other delimiter configured using the command domain delimiter. The switch then compares and matches this username with
any session username on the switch with a potential domain. For example, when domain stripping is configured and you send
packet of disconnect (POD) or Change of Authorization (CoA) Requests with the username “test,” a comparison between the PoD/CoA
message and device session username takes place, and sessions with the username “test@example.com” or “test” match the specified
username “test.”.
If domain stripping is not configured (the default behavior), the username provided in the PoD and COA Requests are compared
with the full usernames included on the device active sessions.
Use the right-to-left keyword to specify that the username string should be terminated the string at the first delimiter going
from right to left.
Examples
Example 1:
In this example the $ character is configured as a delimiter, and stripping is performed to the left of the delimiter. In
this case, if the session user-name is user1$my_users then the username to be matched in the PoD or CoA Request is “user1”:
Switch010203(config)# aaa server radius dynamic-author
Switch010203(config-locsvr-da-radius)# domain delimiter $
Switch010203(config-locsvr-da-radius)# domain stripping
Example 2:
In this example stripping is performed up to the 1st delimiter to the left of the first delimiter going from right to left,
using the default delimiter of @. In this case, if the session user-name is user1@test.com@example.com then the username to
be matched in the PoD or CoA Request is “user1@test.com”:
Switch010203(config)# aaa server radius dynamic-author
Switch010203(config-locsvr-da-radius)# domain stripping right-to-left