In some situations, a username with an "@" sign (username@website.com) is sent to Cisco IOS® Software. When this happens, there is a need to strip the domain name off of an incoming user. In such cases, this may be done using either directed-requests on the router or Cisco Secure software on the server.
For more information on document conventions, refer to the Cisco Technical Tips Conventions.
There are no specific prerequisites for this document.
This document is not restricted to specific software and hardware versions.
In this sample configuration, assume you are configuring a router that hosts a domain called website.com. Your RADIUS server has an IP address of 10.1.1.1.
ip host website.com 10.1.1.1 radius-server host 10.1.1.1 auth-port 1645 acct-port 1646 radius-server directed-request
Note: The radius-server directed-request command was introduced in Cisco IOS® Software Release 12.0(2)T.
With this configuration, when a person named user@website.com needs to be authenticated, the directed-request code tries to resolve the domain name to an IP address. In this case, website.com resolves to the IP address 10.1.1.1 because of the local ip host statement. The router then looks up the radius-server host line for the IP address that was resolved, and sends the authentication request for username user to the RADIUS server.
You can perform the same process for TACACS+ with these commands:
ip host website.com 10.1.1.1 tacacs-server host 10.1.1.1 tacacs-server directed-request
If you need to strip the domain from user@website.com, configure Cisco Secure NT to authenticate the username as user only by completing these steps:
Go to Interface Configuration > Advanced Options, select Distributed System Settings, and click Submit.
In addition, if the stripped user is to go to a server other than this one, complete the following steps:
Go to Network Configuration > Network Device Groups > Add Entry to add an authentication, authorization, and accounting (AAA) server.
Go to Network Configuration > Network Device Groups on the target and configure the source.
On the source, go to Network Configuration > Distribution Table > Add Entry. Configure the settings as follows:
In the field for Character String, type the domain name (@website.com).
From the Position pull-down menu, choose Suffix. (Note that Prefix is also applicable in some cases.)
From the Strip pull-down menu, choose Yes.
Move the server from the AAA Server list to the Forward To list. If the stripped name is to go from source to source (meaning that the source and target are the same), the source would be the server to "forward to." If the stripped name is to go from source to a different target, then the target would be the server to "forward to."
Click Submit to save the settings.
On the AAA > Domain web page for the home gateway access control server, specify these settings:
Domain Name: website.com
Delimiter: @
Domain Name Position: After
Domain Type: Remote
Revision | Publish Date | Comments |
---|---|---|
1.0 |
17-Jan-2006 |
Initial Release |