SoftwareCentral · Active Directory

Reset Password Configuration

Reset Password monitors an inbox. When a user mails it, SoftwareCentral replies with a link to reset the password, if the sender's mail address belongs to a user in Active Directory.

Inbox Anonymous site Link expiration Mail template

1 Overview

Reset Password works as a simple service that monitors an inbox. Whenever a mail is sent to this inbox, the SoftwareCentral Service replies with a reset password link, if the mail address of the sender is registered to a user in Active Directory.

The reply is sent to the mail address of the user in Active Directory, with the subject of the request written as RE: subject. The service runs in the SoftwareCentral Service, not on the web site.

2 Connect the inbox

To set up the service to connect to your inbox, go to the Settings menu and locate Extra Modules › Active Directory Module in the left menu.

Settings page in the earlier version, with Extra Modules expanded in the left menu and Active Directory Module highlighted in red.
Earlier version: Settings › Extra Modules › Active Directory Module. In the current version this item is not shown in the Extra Modules list, so the menu looks different from this picture.
The inbox must be empty Before you grant SoftwareCentral access to the inbox, make sure it is empty. Any mail in it is treated as a reset password request. A reset password request mail is deleted after it has been processed.

Set the following settings. Click Save Settings on the Settings page when you are done.

SettingWhat to enter
Reset Password - Mail ProtocolIMAP or POP3. IMAP is used unless POP3 is selected.
Reset Password - Mail ServerThe name of the mail server, for example outlook.office365.com. The mail server must use SSL.
Reset Password - Mail Server PortThe port of the mail server. Use 993 for IMAP and 995 for POP3. If the box is empty, SoftwareCentral uses 993.
Reset Password - Mail UsernameThe user name of the mailbox, which is its mail address, for example mail@outlook.com.
Reset Password - Mail PasswordThe password of the mailbox. It is shown as dots and stored encrypted. To keep the stored password, leave the box as it is when you save.
Reset Password - Polling Interval (In Seconds)How often the service looks for new mails, in seconds. The shorter the interval, the faster users get their link. If the box is empty, SoftwareCentral checks every 300 seconds (5 minutes).

Use the Test Connection button to test that SoftwareCentral can connect to the inbox. The result is shown next to the button: Successfully connected to mail server. or Failed to connect to mail server.

Reset Password settings in the earlier version (Danish interface), with the fields for mail protocol IMAP, mail server outlook.office365.com, port 993, the mail user name, the masked password, the polling interval, the Test Connection button, the anonymous site address, the link expiration time, the image path and the header text.
Earlier version of the Reset Password settings (Danish interface). The same fields are in the current version, but the Active Directory Module item is not shown in the menu now. The mailbox name in the picture is an example.
Test Connection signs in to the mailbox Clicking Test Connection connects to the mail server with the values in the boxes. Use it with a mailbox that is meant for resets.

3 Set up the reset site

The link in the mail must open a web site that uses anonymous authentication, because the user is not signed in yet.

Set up an additional site, identical to the default SoftwareCentral site, but with Anonymous Authentication enabled and Windows Authentication disabled. The new site should point to the same source files as the original SoftwareCentral site.

For additional security, and to avoid that user passwords are sent over the network in clear text, the site should use the HTTPS protocol.

IIS Manager, Authentication page for the SoftwareCentral site. Anonymous Authentication is Enabled, and ASP.NET Impersonation, Basic Authentication, Forms Authentication and Windows Authentication are Disabled.
IIS Manager, an earlier setup: the Authentication page of the reset site, with Anonymous Authentication enabled and Windows Authentication disabled. This is an IIS screen; the server and account names in it are from that setup.

Enter the address of the new anonymous site in the Reset Password - Anonymous site address box, and click Save Settings:

Reset Password settings in the earlier version, with the field Reset Password - Anonymous site address highlighted in red and the value https://swc/.
Earlier version: the Reset Password - Anonymous site address box, highlighted. The field is still in the current version, but the Active Directory Module item is not shown in the menu now.
Restart the service The SoftwareCentral Service must be restarted before the settings above will apply.

4 Link expiration

Set the expiration time for the link in Reset Password - Link expiration time (hours). The link stops working after that many hours. If the box is empty or 0, SoftwareCentral uses 2 hours.

While a user has a link that is not used and not yet expired, a new request from that user does not send another mail.

5 Customize the reset page

You can change the image and the header text of the reset password page to match your own company logo and name.

  • Reset Password - Image path: the logo. If you add your own logo, place it in the uploads folder in the SoftwareCentral installation folder, and enter the path, for example ~/Uploads/Images/YourLogo.png.
  • If you place the image outside the SoftwareCentral installation folder, enter an URL for the image instead.
  • Reset Password - Header text: the text shown next to the logo. An empty box shows no header text.

You can test the look of the reset password page at http://[your-softwarecentral-url]/ResetPassword.aspx.

6 Mail template

The mail that contains the link is built from the reset password mail template. It is stored in the SoftwareCentral database, not in a file. The template is in one language only.

Windows Explorer in the MailTemplates folder, HtmlVersions, with the file ResetPassword selected in the list of files.
Earlier version: the reset password template was a file in the MailTemplates\HtmlVersions folder of the installation. The reset password mail no longer reads this file.

Edit the template in the mail template editor of SoftwareCentral. You can change the text as you like. SoftwareCentral replaces these placeholders with values when it builds the mail, so they must also stay in your template:

  • {link}: the reset password link.
  • {hoursBeforeExpiration}: the link expiration time in hours.
  • {CurrentDateTime}: the current date and time, if you want to show them in the mail.
Notepad with the HTML of the reset password mail. The placeholders link inside an anchor tag and hoursBeforeExpiration in the last sentence are highlighted.
Earlier version of the template file, opened in Notepad. The placeholders {link} and {hoursBeforeExpiration} are the ones that SoftwareCentral replaces.
Keep a copy of your template A new version of SoftwareCentral can ship its own reset password template. Keep a copy of your changed template, so that you can restore it after an update.

7 Best practice

  • Use a mailbox for reset requests only, and keep it empty. SoftwareCentral reads the mails in it and deletes them after processing, and any other mail in the box is deleted with them.
  • Use a mail server with SSL and the HTTPS protocol for the reset site. The mail password is sent to the mail server, and the reset link leads users to the site where they type a new password.
  • Keep the link expiration short. The default is 2 hours. Anyone who gets hold of the link can set a new password until it expires.
  • Choose the polling interval with care. Each check signs in to the mailbox. The default is 300 seconds. A shorter interval gives faster replies and more sign-ins.
  • Restart the SoftwareCentral Service after every change. The service decides at its start whether to watch the inbox, so a change is only reliably used after a restart.

8 Troubleshooting

SymptomCauseWhat to do
Test Connection shows "Failed to connect to mail server."The mail server, port, protocol, user name or password is wrong, or the mail server cannot be reached with SSL.Check each value in the table above. For POP3, use port 995. Use the mail server name that the mailbox provider gives you.
The user gets no mail, and the Log shows "Failed to send reset password link to user with mail address '...'." with the detail "The request was not accepted because no user in the AD is registered with this mail address."The sender's mail address is not the mail address of a user in any Active Directory domain that SoftwareCentral reads.Check the mail address of the user in Active Directory, and make sure the user writes from that address.
The user gets no mail and nothing appears in the LogThe user already has a link that is not used and not yet expired. SoftwareCentral does not send a second link.Use the link in the first mail, or wait until the link expires (see Link expiration time) and ask again.
Mails are not answered at allOne of the mailbox user name, mailbox password, mail server or anonymous site address is empty when the service starts. Or the SoftwareCentral Service was not restarted after you entered the settings. An installation that uses only Intune does not run the inbox monitor.Enter all four settings, click Save Settings, and restart the SoftwareCentral Service.
The link in the mail does not open the reset page, but asks for a Windows sign-inMost likely the link leads to the normal SoftwareCentral site, which uses Windows Authentication. The anonymous site address is wrong, or the reset site is not set up as described in Set up the reset site.Check that Reset Password - Anonymous site address is the address of the anonymous site, and that the site has Anonymous Authentication enabled.

See also Reset Password self-service and Active Directory Module.