I am taking a shot at having Sitefinity integrate with our Active Directory. I would like the entire members' list to be supplied by the Active Directory. However, I would like to manually control the roles that get applied through Sitefinity.
Here is what I did. I put the following code into the <membership> section of the web.config file:
|<add name = "Sitefinity" |
| enableSearchMethods = "true" |
| attributeMapUsername = "sAMAccountName" |
| connectionUsername = "username" |
| connectionPassword = "password" |
| connectionStringName = "ActiveDirectory" |
| type = "Telerik.DataAccess.AspnetProviders.TelerikADMembershipProvider, Telerik.DataAccess" |
For the <roleManager> section of the web.config file I left it as it was:
|<add connectionStringName="DefaultConnection" applicationName="/" name="Sitefinity" type="Telerik.DataAccess.AspnetProviders.TelerikRoleProvider, Telerik.DataAccess"/> |
This actually works! If I type a wrong username & password, I get a "Bad password" message. If I type the correct username & password, I get sent right back to the login screen (no login, no error message). The original "admin" account no longer works if I'm using the Active Directory to authenticate.
I suspect that the login screen is simply reloading because the Active Directory account I'm using to login has no roles assigned to it. However, I can't figure out how to initially login to Sitefinity so that I can begin assigning roles to Active Directory accounts.
Hopefully this post makes sense. Any suggestions for making this work?