Use the token to connect to the web home page or KVM.
更新时间: 2026/08/06
在Gitcode上查看源码

Use the token to connect to the web home page or KVM.

Interface for Applying for Tokens

RequestPOST/sso HTTP/1.1
username=xxx, password=xxx, logtype=xxx, function=addtoken
ParametersusernameIndicates a user name. A user name can contain a maximum of 320 characters.
passwordIndicates a password. A password can contain a maximum of 20 characters.
logtypeLogin user type.
local: local user
ldap: LDAP user
functionAction.

Token Response

Response{ret:val, token:val}
ParametersretIndicates a return code. The options are as follows:
0: success
131: The user is locked.
136: The user does not have the permission.
137: The password has expired.
144: The login is restricted.
Others: The user name or password is incorrect.
tokenIndicates a temporary authentication credential. The token must contain 31 characters.
If the login is successful, the parameter value is the token. Otherwise, the parameter value is "".

Logging In to the WebUI or KVM Console

RequestURL=https://ip[:port]/sso?token=xxx[&redirect=xxx][&kvmmode=xxx]
ParametersipIndicates the iBMCBMC IP address. Specify the IP address as required.
(Optional) portIndicates the iBMCBMC HTTP port number. Specify the port number as required.
tokenIndicates a temporary authentication credential.
redirect (optional)Indicates a redirection target.
index: web home page
console: remote KVM console
If redirect=xxx is not specified, the default value index is used.
kvmmode (optional)Indicates the KVM session mode.
share: authentication not required
dedicate: exclusive mode
If kvmmode=xxx is not specified, the default value dedicate is used.

Login Failures Due to Incorrect Tokens

Login FailureSolution
The maximum number of online users (WebUI or KVM users) is reached.The WebUI login page is displayed, and the message "The maximum number of sessions has been reached" is displayed.
Invalid token, no permission, or other errors.The WebUI login page is displayed, and the message "Login failed. Please try later" is displayed.