Skip to main content

Active Directory

· 7 min read

Active Directory (AD) is a Microsoft directory service that manages network resources efficiently. It centralizes authentication, authorization, and network management tasks, providing a unified environment for user and computer management. AD simplifies IT administration, enhances security through access controls, and facilitates seamless communication across a network, making it a crucial component for enterprise environments.

Versions: 8.0.0 P1

Prerequisites​

Before configuring this connector, create a service account in Active Directory and grant it the appropriate permissions for provisioning.

The AFX Active Directory connector creates, updates, and deletes user accounts and manages group membership. The service account used by this connector requires read/write access to Active Directory.

See Scenario 2: Read/Write Service Account in the Active Directory Service Account guide.


Connector Settings​

Steps

  1. Login to RSA Identity G&L console as System Administrator.
  2. Navigate to AFX > Connectors.
  3. Click on Create Connector and select the Active Directory connector template.
  4. Enter the details as shown below under General tab.

    Alt text
  5. Click on the Settings tab and enter the required connection details.

    Alt text
  6. Provide the DN settings as show below. The Account DN Suffix and Group DN Suffix are the default locations for accounts and groups respectively.

    Alt text
  7. If Create Account verb with dynamic OU placement is required, DN Suffix Mappings1 can be configured as show below. In the example below, US is the country code from HR source and OU=US,OU=Users,DC=company,DC=com is the desired OU for account placement.1️⃣

    Alt text
    .
  8. Click OK.
  9. Verify the settings using Test Connector Settings option.

Supported Verbs​

Create an Account​

Steps

  1. Edit the connector and navigate to Capabilities tab.
  2. Click on Create an Account and configure as shown below.

Command Input Parameters

Parameter*Display NameMappingDescription
Account✔️Account Name${AccountTemplate.Name}Full distinguished name
sAMAccountName✔️sAMAccountName${AccountTemplate.Name}Logon name used to support clients and servers running earlier versions of the operating system, such as Windows NT 4.0, Windows 95, Windows 98, and LAN Manager
CN✔️Common Name${AccountTemplate.CN}Name that represents an object. It is used to perform searches
sn✔️Last Name${AccountTemplate.LastName}Surname of a person
givenName✔️First Name${AccountTemplate.FirstName}A given name of a person
mailEmail Address${AccountTemplate.Email}Simple SMTP address of a person
Password✔️ 🔒Initial Account Password${AccountTemplate.Password}Password which is required for login
userAccountControlUser Account Control(UAC)NORMAL_ACCOUNTUser Account Control(UAC) Value
displayNameDisplay Name${AccountTemplate.LastName}, ${AccountTemplate.FirstName}The display name for the user
userPrincipalNameUser Principal Name${AccountTemplate.UPN}User Logon Name

🔒 = Encrypted ✔️ = Required

Below are some additional input parameters that are required in special situations.

ParameterDescription
AFX_DN_Suffix_Key1Set this value of the HR attribute(s) or any other key that will identify the OU where the user account will be created. When configured, if no match is found the account will be created in the default OU configured in the connector.

Refer to DN Suffix Mappings in the connection settings. If country is the key for picking OU, the mapping will look something like this ${AccountTemplate.Country} 1️⃣

Command Output Parameters

Parameter NameDisplay NameMappingDescription
distinguishedNameDistinguished NameAccount.External_IDA distinguished name (DN) is a LDAP entry that uniquely identifies and describes an entry in a directory
1️⃣

Using output parameters is crucial when certain values are unknown before the process begins. In this specific scenario, where the Organizational Unit (OU) is not known in advance, capturing the distinguishedName as an output parameter is essential. distinguishedName becomes vital for subsequent operations, such as Add Account to Group.

Additional Use Cases

🟠 Dynamic DN​

During the account creation the account can be placed in specific Organizational Units (OU) dynamically based on one or more attributes from the HR sources or key passed through account template.

Examples

  • Place users in OUs based on country code from HR system.
  • Place users in OUs based on the department and office location attributes collected from HCM.

Solution

  1. Add DN Suffix Mappings in the Settings tab.
  2. Add AFX_DN_Suffix_Key1 to the Create Account verb.
  3. Read the distinguishedName output parameter in the Create Account verb.

Items marked by 1️⃣ in this guide are related to this use case.

🟠 Change Password on First Logon​

When creating a new account, it may be necessary for users to change their password during their initial login. This can be accomplished by configuring specific input parameters within the Create Account verb.

The input parameters required are as follows:

ParameterDescription
_AFX_FORCE_REGISTER_USER_CHANGE_PWD- When it is set to 0, the pwdLastSet attribute of the new account will be set to the date/time when the account is created (i.e. the user does not have to set the password at the next logon).
- When it is set to 1, the pwdLastSet attribute of the new account will be set to 0 (i.e. the user must set the password at the next logon).
pwdLastSetSetting to 0 along with userAccountControl to NORMAL_ACCOUNT,PASSWORD_EXPIRED will set the User must change password at next logon on the Active Directory account. This attribute stores the value of the date and time when the user's password was last changed in Windows NT.

This is an alternative solution to setting _AFX_FORCE_REGISTER_USER_CHANGE_PWD

Add Account to Group​

Steps

  1. Edit the connector and navigate to Capabilities tab.
  2. Click on Create an Account and configure as shown below.

Command Input Parameters

Parameter*Display NameMappingDescription
User2✔️Account DN or Account Name${Account.External_Id}Full distinguished name of user or user name
Group2✔️Group DN or Group Name${Group.External_Id}Full distinguished name of group or group name

🔒 = Encrypted ✔️ = Required

  1. Click OK. 4. Run the Test Connector Capabilities to verify the verb.

Remove Account from Group​

Steps

  1. Edit the connector and navigate to Capabilities tab.
  2. Click on Create an Account and configure as shown below.

Command Input Parameters

Parameter*Display NameMappingDescription
User2✔️Account DN or Account Name${Account.External_Id}Full distinguished name of user or user name
Group2✔️Group DN or Group Name${Group.External_Id}Full distinguished name of group or group name

🔒 = Encrypted ✔️ = Required

  1. Click OK.
  2. Run the Test Connector Capabilities to verify the verb.

Create a Group​

Steps

  1. Edit the connector and navigate to Capabilities tab.
  2. Click on Create a Group and configure as shown below.

Command Input Parameters

Parameter*Display NameMappingDescription
Group2✔️Group DN or Group NameFull distinguished name of group or group name
CN✔️Common NameName that represents an object. It is used to perform searches
sAMAccountNamesAMAccountNameLogon name used to support clients and servers running earlier versions of the operating system, such as Windows NT 4.0, Windows 95, Windows 98, and LAN Manager
groupType✔️Group Type-2147483646Set of flags that define the type and scope of a group. (-2147483646 - Security Group type)

🔒 = Encrypted ✔️ = Required

  1. Click OK.
  2. Run the Test Connector Capabilities to verify the verb.

🔴 🟠 ⚫ ⚪ 🟣 🟢 🟡 🔵

CON004

Footnotes​

  1. Both the parameter name AFX_DN_Suffix_Key (or AFX_OU_Picker) as well as the key used in the DN mappings are case sensitive. Example : If the DN mapping is US=OU=US,OU=Users,DC=company,DC=com then the expected value is US. Us or us will not match the mapping rule. ↩ ↩2 ↩3

  2. In the absence of full distinguished name for user or group, the user or group distinguished name will be calculated based on the corresponding base DN specified in the Settings tab. ↩ ↩2 ↩3 ↩4 ↩5