New-ADUser `
-AccountPassword ( "qwe.123" | ConvertTo-SecureString -AsPlainText -Force) `
-DisplayName "MidPoint" -Enabled $true -Name "MidPoint" `
-PasswordNeverExpires $true -SamAccountName midpoint `
-Surname MidPoint -UserPrincipalName "midpoint@domain.example.com" `
-Path "CN=Users,DC=domain,DC=example,DC=com"
Active Directory With .NET Connector (OBSOLETE)
OBSOLETE
This functionality is obsolete.
It is no longer supported or maintained.
Please use the replacement functionality instead.
|
Install .NET Connector Server
Install .NET Connector Server on a "gateway" machine. This can be almost any Windows machine that will be used as an intermediary between midPoint and Active Directory.
Installation instructions are on .NET Connector Server page.
Deploy Active Directory Connector
Deploy Active Directory to the .NET Connector Server.
Active Directory connector information and download links are on Legacy Active Directory Connector (.NET) page.
Deploy the connector by copying files to the .NET Connector Server directory. The details are here: .NET Connector Server.
Configure Connector Host in midPoint
Create a connector host definition and import it in midPoint. See here: Connector Server.
You can import the sample XML configuration mentioned above by clicking the Configuration tab, then Import object tab. Select "Get objects from … Embedded editor" and paste the content of the connector host sample mentioned above. Please modify the following attributes before clicking Import Object:
-
name: rename it to contain your connector server name instead of "foobar.example.com", e.g. "ICF Connector server on server:8759"
-
hostname: enter your connector server hostname, e.g. server.example.com
-
port: enter your connector server port if you have changed it, or keep default "8759"
-
sharedSecret: enter your connector server key into the "sharedSecret" element instead of "secret"
Then click Import Object button.
Detailed description of connector object is here: ConnectorHostType.
If you have configured SSL on the connector server you should also install the appropriate CA certificate to a midPoint keystore as described on Connector Server page.
Discover the Connectors
The connector host should appear in midPoint GUI under a Resources tab. Check the checkbox next to it and click Discovery button. Green success message should appear.
Look at the Connector objects in the repository (in the GUI Configuration tab, Repository objects, object type Connector). A new connector should appear there.
Look for a name similar to ICF Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector @ICF Connector server on medusa:8759
.
Configure Active Directory
To actually use Active Directory connector, you need to create an administrative account in Active Directory. Do not use "administrator" account as it has unrestricted rights!
To create the administrative account for provisioning:
-
Open "Server Manager" on the Active Directory machine.
-
Select Roles, then Active Directory Domain Services. Alternatively, open "Active Directory Users and Computers".
-
Unexpand your domain (e.g. domain.example.com) and right click on the Users container.
-
Select New User.
-
Enter required information to create your administrative user for midPoint. Do not forget to fill in sAMAccountName (e.g. "midpoint") and userPrincipalName (e.g. "midpoint@domain.example.com") attributes, and user’s password. We recommend to uncheck "User must change password at next logon" and check "Password never expires".
To assign the administrative privileges in Active Directory to the administrative account:
-
Open "Server Manager" on the Active Directory machine.
-
Select Roles, then Active Directory Domain Services. Alternatively, open "Active Directory Users and Computers".
-
Select your domain (e.g. domain.example.com) or a part of it where you will manage accounts with midPoint. Select Actions from menu. Alternatively, right click on your domain (e.g._ domain.example.com_).
-
Select Delegate Control...
-
Click Next.
-
Click Add to search for your administrative user, e.g. "midpoint".
-
Click Next.
-
Check the following checkboxes in "Delegate the following common tasks" area (default):
-
Create, delete, and manage user accounts
-
Reset user passwords and force password change at next logon
-
Read all user information
-
Create, delete and manage groups
-
Modify the membership of a group
-
-
Click Next.
-
Click Finish.
Please note that the Delegate control wizard cannot be used to modify existing delegated tasks. |
Import Resource Definition
After you have installed all the required components and created your administrative account in Active Directory, you can create Active Directory resource definition.
There are three sample resource definitions that can be used to connect to a Active Directory server.
They can be found in our samples/ad
directory accessible here:
Current Development Snapshot (master) | https://github.com/Evolveum/midpoint-samples/tree/master/samples/resources/ad |
---|---|
Latest Release (3.1.1) |
https://github.com/Evolveum/midpoint/tree/v3.1.1/samples/resources/ad |
The resource definition XML file is full of in-line comments that explain individual configuration items used in the file.
The |
The resource definition must be updated for your environment. Especially:
|
Import the resource definition by clicking the Configuration tab, then Import object tab.
Select Use embedded editor and Copy&paste the content of ad-resource-advanced-nosync.xml
file into the text area.
Press the "Import object" button.
You should see green message "Operation successful".
See Also
External links
-
Evolveum - Team of IAM professionals who developed midPoint