1 What the delegation is for
SoftwareCentral manages user accounts in Active Directory. This delegation covers all of these actions, so you cannot give one of them without the others.
| What SoftwareCentral does | Where it happens |
|---|---|
| Create a user | In the AD user window. |
| Change the properties of a user | In the AD user window. |
| Move a user to another OU | In the AD user window. |
| Delete a user | In the AD user window. The user object is removed from Active Directory. |
| Enable, disable or unlock a user | In the AD user window, and on the password reset page. |
| Reset a password, with or without change at next logon | On the password reset pages. The password is set and the lock-out is cleared. |
2 Which account to delegate to
Give the delegation to the account that SoftwareCentral uses to sign in to Active Directory, not to a person's own account.
| Situation | Account to delegate to |
|---|---|
| The server's own domain, and any other domain where the server's domain and that domain are both Trusted | The application pool account, set under Settings › General Settings › Server Configuration in Application Pool Username. |
| Any other domain where the server's domain or that domain is not Trusted | The Service Account in that domain's row under Settings › Domain › Domains. |
In the steps below, the SoftwareCentral service account means this account, written as for example
CONTOSO\svc-swc.
3 Delegate Full Control on user objects
Do these steps in Active Directory Users and Computers, once for each domain. The values in the pictures are examples, and the domain and account names are masked.
| Step | What you do | Screen |
|---|---|---|
| 1 | Open Active Directory Users and Computers. | |
| 2 | Right-click the domain, then select Delegate Control…. |
|
| 3 | Click Next. |
|
| 4 | Click Add. |
|
| 5 | Enter the SoftwareCentral service account in Enter the object names to select, then click Check Names. |
|
| 6 | Click OK. |
|
| 7 | Click Next. |
|
| 8 | Select Create a custom task to delegate, then click Next. |
|
| 9 | Select Only the following objects in the folder. Tick User objects, then tick Create selected objects in this folder and Delete selected objects in this folder. Click Next. |
|
| 10 | Select Full Control, then click Next. |
|
| 11 | Click Finish. |
|
4 Best practice
- Narrow the scope. Full Control on user objects lets the account reset passwords, disable and delete every user in the scope. Delegate on the OUs that hold the users SoftwareCentral manages, not on the whole domain, if you can.
- Leave administrator accounts out of the scope. If an OU holds administrator accounts and it is in the delegation, SoftwareCentral can reset their passwords. Keep those OUs outside the delegation.
- Include every OU that SoftwareCentral moves users to. A move needs rights on the destination OU as well as the user.
- Check the first password reset. A successful reset writes
Successfully changed password for user '…'.to the Log. If that line does not appear, the reset did not happen.
5 Troubleshooting
The messages are written to the Log. Find the entries for Active Directory there.
| Symptom | Cause | What to do |
|---|---|---|
Failed to reset password for user '…'. |
The account cannot set the password of that user. Usually the user is outside the delegated OUs, or it is a protected administrator account. The password may also not meet the domain's password policy. | Check the OU of the user and that the account has Full Control there. Try a password that meets the policy. |
Failed to unlock user '…'., Failed to enable user '…'. or Failed to disable user '…'. |
The account cannot change the user object. | Check that Full Control on User objects applies to the OU of the user, as in step 9. |
Failed to set user must change password at next login for user '…'. |
The account cannot change the user object. | As above. |
Failed to create AD user by name '…' |
The account cannot create user objects in the OU that was chosen. | Add Create selected objects in this folder for User objects on that OU, as in step 9. |
Failed to delete user by distinguished name '…' |
The account cannot delete the user object. | Add Delete selected objects in this folder for User objects on the OU of the user, as in step 9. |
Could not get directory entry at domain … |
SoftwareCentral cannot connect to that domain with the account that is set for it. | Check the Service Account, Password and Port Number of the domain under Settings › Domain › Domains. |