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
| Request | POST/sso HTTP/1.1 username=xxx, password=xxx, logtype=xxx, function=addtoken | |
|---|---|---|
| Parameters | username | Indicates a user name. A user name can contain a maximum of 320 characters. |
| password | Indicates a password. A password can contain a maximum of 20 characters. | |
| logtype | Login user type. local: local user ldap: LDAP user | |
| function | Action. |
Token Response
| Response | {ret:val, token:val} | |
|---|---|---|
| Parameters | ret | Indicates 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. |
| token | Indicates 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
| Request | URL=https://ip[:port]/sso?token=xxx[&redirect=xxx][&kvmmode=xxx] | |
|---|---|---|
| Parameters | ip | Indicates the iBMCBMC IP address. Specify the IP address as required. |
| (Optional) port | Indicates the iBMCBMC HTTP port number. Specify the port number as required. | |
| token | Indicates 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 Failure | Solution |
|---|---|
| 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. |