Configure Windows authentication
To use Windows authentication, you need to use a separate application – WindowsAuthWebHost.
Perform the following:
- From Sitefinity GitHub, download the source code of the WindowsAuthWebHost application from the latest compatible with your Sitefinity CMS version release and build it.
- In the IIS, host the WindowsAuthWebHost application in the root directory.
- In Sitefinity CMS configure Windows authentication provider in the following way:
- Navigate to Administration » Settings » Advanced.
- In the left pane, expand Authentication » SecurityTokenService » AuthenticationProviders » WindowsAuthentication.
- In field Metadata Address, enter your WindowsAuthWebHost address.
For example, enter https://localhost:893
- Configure the callback path.
For example, enter /Sitefinity/signin-custom
This setting is mandatory for Windows authentication when you use the Default Sitefinity authentication protocol.
- Select Enabled checkbox and save your changes.
- Setup LDAP settings in the following way:
- Navigate to Administration » Settings » Advanced.
- In the left pane, expand Security » LDAP Settings » LDAP Connections » DefaultLdapConnection.
- Setup the configuration properties for your system.
- Create new LDAP Membership provider in the following way:
- Expand Security » Membership Providers, and click Create new.
- In Name, enter the name of the provider, which must be the same as the LDAP login domain.
NOTE: The name is case sensitive.
EXAMPLE: For example, if your LDAP login domain is MYDOMAIN, a new provider must be created with name MYDOMAIN.
- In ProviderTypeName, enterTelerik.Sitefinity.Security.Ldap.LdapMembershipProvider, Telerik.Sitefinity
- Save your changes.
- Restart the IIS.
- In Sitefinity CMS, navigate to Administration » Users.
- Click the newly created provider, find your domain user and assign it to the desired roles.
- Open the
web.config
of the WindowsAuthWebHost application and inside section <appSettings>
, set the IdpReplyUrl property to the address of your Sitefinity CMS site in the following way:
https://<my-site>.com/Sitefinity/signin-custom
- In the IIS, select the WindowsAuthWebHost application, open Authentication, enable Windows Authentication and Anonymous Authentication, and disable all others.
- Restart your website.
RESULT: Next time when the login screen is displayed, it will have a button that you can use to login with your Windows credentials.