304
Usage guidelines
You can configure multiple URL parameters.
If you execute this command multiple times to configure the same URL parameter, the most recent
configuration takes effect.
After you configure the URL parameters, the access device sends the portal Web server URL with
these parameters to portal users. For example, assume that the URL of a portal Web server is
http://www.test.com/portal, and you execute the
url-parameter
userip
source-address
and
url-parameter
userurl
value
http://www.abc.com/welcome
commands. Then, the access device
sends to the user whose IP
address is 1.1.1.1 the URL
http://www.test.com/portal?userip=1.1.1.1&userurl=http://www.abc.com/welcome
.
When you configure the
param-name
argument in this command, you must use the URL parameter
name supported by the actual portal server. Different portal server types support different URL
parameter names.
For example, the IMC server supports parameter names
userurl
,
userip
, and
usermac
for the
keywords
original-url
,
source-address
, and
source-mac
, respectively. To carry the user IP
information in the portal Web server URL, you must configure the parameter name as
userip
and
specify the
source-address
keyword.
If you specify the encryption algorithm for a parameter, the redirection URL carries the encrypted
value for the parameter. Execute the
url-parameter usermac source-mac encryption des key
simple 12345678
command. Then the access device sends to the user with MAC address
1111-1111-1111
the URL
http://www.test.com/portal?usermac=xxxxxxxxx&userip=1.1.1.1&userurl=http://www.test.co
m/welcome
, where
xxxxxxxxx
represents the encrypted user MAC address.
Examples
# Configure URL parameters
userip
and
userurl
for the portal Web server
wbs
. Configure the value
of the
userip
parameter as
source-address
(the IP addresses of users) and that of the
userurl
parameter as
http://www.abc.com/welcome
.
<Sysname> system-view
[Sysname] portal web-server wbs
[Sysname-portal-websvr-wbs] url-parameter userip source-address
[Sysname-portal-websvr-wbs] url-parameter userurl value http://www.abc.com/welcome
# Configure URL parameter
usermac
for the portal Web server
wbs
. Configure the value of the
usermac
parameter as
source-mac
(the MAC addresses of users) and specify DES to encrypt the
MAC addresses.
<Sysname> system-view
[Sysname] portal web-server wbs
[Sysname-portal-websvr-wbs] url-parameter usermac source-mac encryption des key simple
12345678
Related commands
display portal web-server
url
user-sync
Use
user-sync
to enable portal user synchronization for a portal authentication server.
Use
undo user-sync
to disable portal user synchronization for a portal authentication server.
Syntax
user-sync timeout
timeout