Skip to main content
Version: 2.8

Integrate AD users and groups

You need the following prerequisites to integrate AD users and groups with Portworx Backup Keycloak.

Workflow

  • Log in to Active Directory server and ensure that the users and user groups that you want to integrate exists in Active Directory server

  • Integrate the user and group profiles with Portworx Backup's Keycloak.

Prerequisites

  • Fetch the following AD configuration details to configure in the Poortworx backup Keycloak:

    User Object Classes     : person,organizationalPerson,user
    Connection URL : ldap://<AD-hostname> or ldap://<AD-IP>
    Users DN : CN=Users,DC=<domain-controller-name>,DC=pwx,DC=dev,DC=purestorage,DC=com
    Bind DN : CN=<user-name>,CN=Users,DC=<domain-controller-name>,DC=pwx,DC=dev,DC=purestorage,DC=com
    Bind Credentials : <AD-password>
    note

    Each field has an associated tooltip in Portworx Backup Keycloak, click on them if you need to learn more on the values you have to provide in the respective fields.

Integrate Active Directory with Portworx Backup Keycloak

note

Please note that the values specified below for each field serve as a reference for sample configuration. Actual parameters can vary based on your environment, requirements and configuration.

  1. Access Portworx Backup Keycloak web console with the following URL:

    http://NODE_IP:NODE_PORT/auth/

    Refer Configure access to web console topic for more information.

  2. Log-in with valid and active user credentials.

  3. In the left navigation pane, under Configure click User Federation.

    Click Learn more option if you need more information about various fields to add an LDAP provider.

  4. From the User Federation page, select Add LDAP providers.

  5. In the Add LDAP provider page, provide the required Active Directory configuration details.

    • General Options
      • UI display name: enter ldap
      • Vendor: choose Active Directory from the drop-down

    • Connection and Authentication Settings
      • Connection URL: enter the LDAP server URL
      • Enable StartTLS: toggle to Off
      • Use Truststore SPI: select Only for ldaps
      • Connection pooling: toggle to Off
      • Connection timeout: enter a suitable timeout value (in seconds)
  6. Click Test connection to verify the connection settings.

    • Additional Authentication Settings
      • Bind type: select simple
      • Bind DN: enter the distinguished name (DN) for the LDAP bind
      • Bind credentials: enter the bind credentials (password)
  7. Click Test authentication to verify the bind credentials.


    • LDAP Searching and Updating

      • Edit mode: select the desired edit mode from the drop-down
      • Users DN: enter the DN for the users
      • Username LDAP attribute: enter cn
      • RDN LDAP attribute: enter cn
      • UUID LDAP attribute: enter objectGUID
      • User object classes: enter person, organizationalPerson, user
      • User LDAP filter: enter any specific filter if required
      • Search scope: select One Level
      • Read timeout: enter a suitable timeout value (in seconds)
      • Pagination: toggle to Off

    • Synchronization Settings

      • Import users: toggle to On
      • Sync Registrations: toggle to On
      • Batch size: enter the batch size for synchronization
      • Periodic full sync: toggle to Off (if not needed)
      • Periodic changed users sync: toggle to Off (if not required)
    • Kerberos Integration:

      • Allow Kerberos authentication: toggle to Off
      • Use Kerberos for password authentication: toggle to Off

    • Cache Settings:

      • Cache policy: select DEFAULT
    • Advanced Settings

      • Enable the LDAPv3 password modify extended operation: toggle to Off
      • Validate password policy: toggle to Off
      • Trust email: toggle to Off
  8. Now click Query Supported Extensions to retrieve any supported LDAP extensions.

  9. Finally, click Save to integrate your Active Directory users with Portworx Backup Keycloak.

    This step successfully integrates the Active directory with Keycloak. In other words, you have established a successful connection between Active Directory and Portworx backup Keycloak.

Sync the AD users

To sync the Active Directory users with Portworx Backup Keycloak:

  1. Navigate back to left navigation pane of Portworx Backup Keycloak, under Configure click User Federation.

  2. Under the Actions, click on Sync all users to import users from Active Directory to Portworx Backup Keycloak.


  3. Navigate to the users to view the synced users from AD.


    After the users get synced with Keycloak, you can view all the users created in Active directory in the Portworx Backup Keycloak web console.

Sync the AD Groups

  1. Click on the LDAP that you just created and on the top you can see the mapper.


    • Name: any name of your choice

    • Mapper Type: group_ldap_mapper

    • LDAP Groups DN: tree top where all the groups are listed. This can be obtained from the properties of the Domain name and inside Attribute Editor

      note
      1. Here is LDAP Groups DN ->DC=testingad,DC=pwx,DC=dev,DC=purestorage,DC=com
      2. Create group in the / path itself i.e under testingad.pwx.dev.purestorage.com and not under Users folder.
  2. Provide other details and sync all groups.


    After the user groups get synced with Keycloak, you can view all the user groups created in Active Directory in the Portworx Backup Keycloak web console.

Was this page helpful?