All Products
Search
Document Center

Bastionhost:Best practice for identity authentication

Last Updated:Oct 31, 2026

Integrate users from the identity authentication sources that your enterprise already uses, such as RAM, AD, LDAP, and IDaaS, into Bastionhost to centrally manage enterprise users.

Background information

Administrators of enterprises with a relatively large and complex user base usually integrate the identity authentication of different business systems to improve user management efficiency and centrally manage enterprise users. As the unified O&M management platform of an enterprise, Bastionhost adapts flexibly to multiple user identity authentication sources, which significantly reduces user management costs.

Solution

As the unified management platform for O&M security, Alibaba Cloud Bastionhost supports users from multiple identity authentication sources. These include locally created users, synchronized RAM/AD/LDAP users, and users from additional identity authentication sources that are integrated by working with IDaaS (Identity as a Service). For example, you can synchronize DingTalk users and Azure AD users to an EIAM instance in IDaaS, and then push the accounts to Bastionhost. In this way, users from multiple third-party identity authentication sources can access servers by logging on to the O&M portal of Bastionhost.

Note
  • IDaaS users cannot yet use a client tool to log on to Bastionhost for asset O&M by using password authentication. You can perform O&M by using a client tool with O&M token authentication, or by using the O&M portal. For more information, see O&M manual.

  • For details about the identity authentication sources that can be bound to IDaaS, see Identity Providers. If your identity authentication source is not currently supported, you can enable single sign-on (SSO) for applications such as AWS and Bastionhost after you create an IDaaS account. To configure application SSO, see Create an application.

Integrate users from your existing enterprise identity authentication sources into Bastionhost

Import RAM users

  1. Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.

  2. In the list of Bastionhost instances, find the target instance and click Manage.

  3. In the navigation pane on the left, choose Users > Users.

  4. On the Users page, click Import RAM Users.

  5. Optional: If you have not created a RAM user, you can go to the Import RAM Users page and click Create RAM User to create a RAM user by following the on-screen instructions.

    For information about how to create a RAM user, see Create a RAM user.

  6. On the Import RAM Users page, find the target RAM user, and in the Actions column, click Import to import a single RAM user. Alternatively, select multiple RAM users and click Import to import them in batches.

    Note

    To configure two-factor authentication for a RAM user, log on to the RAM console and configure multi-factor authentication (MFA) for the RAM user. For more information, see Bind an MFA device to an Alibaba Cloud account.

Create local users

  1. Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.

  2. In the list of Bastionhost instances, find the target instance and click Manage.

  3. In the navigation pane on the left, choose Users > Users.

  4. On the Users page, create a single user or import multiple users from a file by referring to the following table.

    Scenario

    Procedure

    Create a single local user

    1. Choose Import Other Users > Create User

    2. In the Create User panel, configure the user information and click Create.

      To configure the user information, set Authentication Method to Local Authentication. In addition to basic information, you can perform the following operations.

      • Turn on Users must reset the password at next logon.: after you select this option, local users are forced to change their passwords at the next logon. This feature is available only for local users.

      • Set Validity Period: after you set a validity period, in the user list, the Status column shows the status of a user outside the validity period as Expired, and the user cannot log on to Bastionhost to perform O&M.

      • Configure Two-factor Authentication Methods: after this feature is enabled, a user who passes password authentication when logging on to Bastionhost must complete secondary authentication by using a dynamic verification code sent by text message, email, or DingTalk work notification. This reduces security risks.

        Note
        • After two-factor authentication is enabled, users must use a mobile phone number or an email address to receive verification codes when they log on. Make sure that the mobile phone number or email address that you entered is correct. For information about the countries and regions that support two-factor authentication by text message on Bastionhost, see Countries and regions that support two-factor authentication by text message.

        • The mobile phone number and email address that you entered are used only to receive verification codes or alert messages and are not used for other purposes.

        Two-factor Authentication Methods supports the following two types:

        • Select For All Users: the current user uses the global two-factor authentication method, that is, the method that you configure in System Settings. For more information, see Enable two-factor authentication.

        • Select For Single User: you must separately specify a two-factor authentication method for the current user. Bastionhost supports the following two-factor authentication methods:

          • Disable: two-factor authentication is disabled.

          • Text Message: the text messages of the current user are used for secondary authentication. In this case, you must specify a mobile phone number for the user.

          • Email: the email address of the current user is used for secondary authentication. In this case, you must specify an email address for the user.

          • DingTalk: the DingTalk account of the current user is used for secondary authentication. In this case, you must specify a mobile phone number for the user.

            Note

            To enable DingTalk authentication, make sure that the following requirements are met:

            • A mobile phone number is associated with the user account that is used for O&M. For more information about how to add a mobile phone number for a user, see Modify the basic information of a local user.

            • The DingTalk administrator has created an internal enterprise application and granted it the API Access Permission To Get Member Information By Phone Number And Name.

            • You have obtained the AppKey, AppSecret, and AgentId of the internal enterprise application.

          • OTP App: the mobile OTP token of the current user is used for authentication. The user must bind a mobile OTP token first.

            Note

            To use this authentication method, download standard TOTP authentication software, such as the Alibaba Cloud app. Then, log on to the Bastionhost O&M portal by using the public endpoint. In the left-side navigation pane, click Security Settings, click the Enable OTP tab, click Bind OTP App, and scan the QR code to bind OTP token authentication. For information about how to obtain the O&M address of Bastionhost, see Bastionhost console overview.

        • Configure Two-factor Notification Sending Language:

          • Select For All Users: the current user uses the two-factor notification sending language configured in System Settings. For more information, see Enable two-factor authentication.

          • Select For Single User: you can select Simplified Chinese or English as the language in which two-factor notifications are sent.

    Import users from a file in batches

    1. In the Import Other Users list, select Import Users from File.

    2. Click Download User Template to download the user template file to your local machine. Enter the user information in the user template file and save it.

    3. In the Import Local Users panel, click Upload to upload the user template file.

    4. In the Preview dialog box, select the users that you want to import and click Import.

    5. In the Import Local Users panel, confirm the user information and click Import Local Users.

      If you select Users must reset the password at next logon., all imported users must reset their passwords at the next logon.

    Note

    If a user to be imported has the same username as another user in the file or an existing user in the system, the user is not imported. On the Import Local Users panel, click Details to view the users that were not imported.

  5. Optional: To allow Bastionhost to send O&M addresses to users by message, specify a mobile phone number or an email address (at least one of them) for the local user, and then select Send O&M Addresses to User.

Import AD/LDAP users

Before you import AD or LDAP users, make sure that AD or LDAP authentication is configured. For more information, see Configure AD or LDAP authentication.

  1. Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.

  2. In the list of Bastionhost instances, find the target instance and click Manage.

  3. In the navigation pane on the left, choose Users > Users.

  4. Choose Import Other Users > Import AD Users or Import LDAP Users.

  5. On the Import AD Users or Import LDAP Users page, find the target user, and in the Actions column, click Import.

    You can select multiple users to import them in batches.

Import IDaaS users

Before you import IDaaS users, make sure that IDaaS authentication is configured. For more information, see Manage IDaaS authentication.

Important

IDaaS users cannot use password authentication to log on to Bastionhost with client tools for asset O&M. You can use client tools for O&M with O&M token authentication, or use the O&M portal. For more information, see O&M Guide.

  1. Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.

  2. In the list of Bastionhost instances, find the target instance and click Manage.

  3. In the navigation pane on the left, choose Users > Users.

  4. Choose Import Other Users > Import IDaaS User.

  5. On the Import IDaaS User page, find the target user, and in the Actions column, click Import.

    You can select multiple users to import them in batches. If no IDaaS user is displayed, click Synchronize.