1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Active Directory Integration Help needed

Active Directory Integration Help needed

17 posts, 0 answered
  1. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    29 Jun 2009
    Link to this post
    Hi,

    I am trying to get AD to work and I have read all supplementary documentation and previous threads and this is what I have so far:

    I am using a custom role provider outlined by your knowledge base article to return roles

    public

     

    override string[] GetRolesForUser(string userName)

    But for some reason I am getting:
    No connection with the name of "ActiveDirectoryConn" was found.

    Something is wrong with my security provider as it is not finding the ActiveDirectoryConn connection string.
    I found a forum post talking about getting one under data access, but it doesn't make sence

     

     


    Note: DomainIPAddress, Username, Password have been taken out below:

    <add name="ActiveDirectoryConn" connectionString="LDAP://DomainIPAddress/OU=Intranet CMS,OU=IRL Groups,DC=int,DC=irl,DC=cri,DC=nz"/>  
     
    <membership defaultProvider="ActiveDirectory" userIsOnlineTimeWindow="15" hashAlgorithmType="">   
    <providers>   
    <clear/>   
    <add connectionStringName="ActiveDirectoryConn" enableSearchMethods="true" attributeMapUsername="sAMAccountName" connectionUsername="username" connectionPassword="password" name="ActiveDirectory" type="Telerik.Security.ActiveDirectory.TelerikADMembershipProvider, Telerik.Security"/>   
    <add name="Sitefinity" connectionStringName="DefaultConnection" type="Telerik.DataAccess.AspnetProviders.TelerikMembershipProvider, Telerik.DataAccess" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" passwordStrengthRegularExpression="" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0"/>   
       
    </providers>   
    </membership> 
     
    <roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="ActiveDirectory">   
    <providers>   
    <clear/> 
     
    <add name="ActiveDirectory" applicationName="/" description="Telerik Role provider for Active Directory" authenticationType="Secure" userSearchFilter="(&amp;(sAMAccountType=805306368)(sAMAccountName={0}))" roleSearchFilter="(&amp;(objectClass=group)(sAMAccountName={0}))" userDefinitionFilter="sAMAccountType=805306368" groupDefinitionFilter="(objectClass=group)" connectionStringName="ActiveDirectoryConn" type="CustomRoleProvider" connectionUsername="IRL\sqldev" connectionPassword="W3b*T0r3$" groupMaps="Intranet CMS" domainName="irl.cri.nz" searchScope="subtree"/>   
       
    <add connectionStringName="DefaultConnection" applicationName="/" name="Sitefinity" type="Telerik.DataAccess.AspnetProviders.TelerikRoleProvider, Telerik.DataAccess"/>   
       
    </providers>   
       
    </roleManager>   
       
    <security defaultProvider="ADProvider" cmsProvidersName="Sitefinity">   
    <roles>   
    <clear/>   
    <add name="CmsAdmin" permission="Unrestricted"/>   
    </roles> 
     
    <providers>   
    <clear/>   
    <add name="ADProvider" connectionStringName="ActiveDirectoryConn"   
     type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data"   
     membershipProvider="ActiveDirectory" roleProvider="ActiveDirectory"/>   
       
    <add name="DefaultSecurityProvider" connectionStringName="Sitefinity" 
     type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data"   
     membershipProvider="Sitefinity" roleProvider="Sitefinity"/>   
       
    </providers>   
    </security>   
     
     

     

  2. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    29 Jun 2009
    Link to this post
    I have changed the security provider to:

     

     

     

    <security defaultProvider="DefaultSecurityProvider" cmsProvidersName="Sitefinity">   
    <roles>   
    <clear/>   
    <add name="CmsAdmin" permission="Unrestricted"/>   
    </roles>   
    <providers>   
    <clear/> 
    <add name="DefaultSecurityProvider" connectionStringName="DefaultConnection"   
      type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data"   
      membershipProvider="ActiveDirectory" roleProvider="ActiveDirectory"/>   
    </providers>   
    </security>   
     

     

     


    But now I am getting the page error:
    This type of page is not served

    Any ideas?? This is getting depressing..
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    29 Jun 2009
    Link to this post
    Hi sam,

    Thank you for using our services.

    1.Make sure that you have added the correct connection string that points to your LDAP: IP address.
    2. Currently the security provider in you web.config uses  Sitefinity's default provider. If you want to login with AD user credentials, please change the provider. Otherwise use a user from Sitefinity provider.
    3. As I see it you are using Default connection string with your AD provider, but for the AD you have different connection string that have to be used.

    Generally you should create AD, then set the connectionString for the AD in your web.config file, add role and membership providers. Afterwords, you should set permissions for the groupMaps.

     <connectionStrings> 
      <add name="ADService" connectionString="LDAP://192.168.0.171" /> 
     
    ... 
     
     
     <roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="Sitefinity"
          <providers> 
            <clear /> 
            <add applicationName="/" connectionStringName="ADService" connectionUsername="user" connectionPassword="password" groupMaps="administrators" domainName="domain.com" name="Sitefinity2" type="Telerik.Security.ActiveDirectory.TelerikADRoleProvider, Telerik.Security" /> 
     
    ...... 
     
     
    <membership defaultProvider="Sitefinity" userIsOnlineTimeWindow="15" hashAlgorithmType=""
          <providers> 
            <clear /> 
            <add name="Sitefinity2" connectionStringName="ADService" enableSearchMethods="true" attributeMapUsername="sAMAccountName" connectionUsername="user" connectionPassword="password" type="Telerik.Security.ActiveDirectory.TelerikADMembershipProvider, Telerik.Security" /> 
     
    ... 
     
     
        <security defaultProvider="DefaultSecurityProvider" cmsProvidersName="ADService"
          <roles> 
            <clear /> 
            <add name="Sitefinity" permission="Unrestricted" /> 
            <add name="Administrators" permission="Unrestricted" /> 
     
     
    ..... 

    Let us know if there is anything else that we can do for you to get this working at your end.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  4. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    29 Jun 2009
    Link to this post
    Hi Ivan,

    I have a connection string stipulated that seems to work:
    <add name="ActiveDirectoryConn" connectionString="LDAP://DomainIPAddress/OU=Intranet CMS,OU=IRL Groups,DC=int,DC=irl,DC=cri,DC=nz"/>

    And I created an AD Security provider below: But I get the error ActiveDirectoryConn does not exist.
    Why? When there is the connection above.

    Is my AD Security provider correct??

    <security defaultProvider="ADProvider" cmsProvidersName="Sitefinity">

    <
    add name="ADProvider" connectionStringName="ActiveDirectoryConn"   
         type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data"   
         membershipProvider="ActiveDirectory" roleProvider="ActiveDirectory"/>   
     
    <add name="DefaultSecurityProvider" connectionStringName="Sitefinity"   
         type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data"   
         membershipProvider="Sitefinity" roleProvider="Sitefinity"/>   
     
  5. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    29 Jun 2009
    Link to this post
    Hi Ivan,

    Also is my connection wrong?:
     <add name="ActiveDirectoryConn" 
           connectionString="LDAP://DomainIPAddress/OU=Intranet CMS,OU=IRL Groups,DC=int,DC=irl,DC=cri,DC=nz"/>  

    Should it be:

     <add name="ActiveDirectoryConn" 
           connectionString=LDAP://DomainIPAddress />

    And where should I set the other container properties?
    Could you show my how please?

    Cheers

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    29 Jun 2009
    Link to this post
    Hi sam,

    The connection string seems to be correct. I think that the problem comes from the security provider you  added. Please remove it and keep using default providers as the highlighted code below illustrates

        <security defaultProvider="DefaultSecurityProvider" cmsProvidersName="Sitefinity"
                <roles> 
                    <clear/> 
                    <add name="Administrators" permission="Unrestricted"/> 
                </roles> 
                <providers> 
                    <clear/> 
                    <add name="DefaultSecurityProvider" connectionStringName="DefaultConnection" type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data" membershipProvider="Sitefinity" roleProvider="Sitefinity"/> 
                </providers> 
            </security> 

    Please do not add providers here and do not change the connectionStringName. Please take a look at my previous post to gather more information about setting the providers.

    If the problem persists after you have fixed the nodes in your web.config, please write back to us. If possible attach the web.config file.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    29 Jun 2009
    Link to this post
    Hi Ivan,

    I tried what you said, but I get: This type of page is not served.
    This indicates to me I am not being authorised.

    Are you sure?

    About :

    <security defaultProvider="DefaultSecurityProvider" cmsProvidersName="Sitefinity"
                <roles> 
                    <clear/> 
                    <add name="Administrators" permission="Unrestricted"/> 
                </roles> 
                <providers> 
                    <clear/> 
                    <add name="DefaultSecurityProvider" connectionStringName="DefaultConnection" type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data" membershipProvider="Sitefinity" roleProvider="Sitefinity"/> 
                </providers> 
            </security> 

    I would think the security provider should be using my AD Membership and Role provider, not the SF PROVIDERS.

    Either case they both don't work. I am pretty stuck. I was looking forward to implement SF for our company
    intranet.



  8. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    29 Jun 2009
    Link to this post
    I tried browsing to http://localhost/Intranet/sitefinity/login.aspx

    and I get the error: No connection with the name

    ActiveDirectoryConn


    This is getting confusing.

    I have a this:
     
    <connectionStrings>   
     <!--AD CMS -->   
     <add name="ActiveDirectoryConn" connectionString="LDAP://131.203.11.112/OU=Intranet CMS,OU=IRL Groups,DC=int,DC=irl,DC=cri,DC=nz"/>   
        
    </connectionStrings>   
     
     

     


    And my AD Membership and Role providers are pointing to the connectionstring..?????


  9. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    29 Jun 2009
    Link to this post
    I am also setting the defaultprovider for the membership and roleprovider to "ActiveDirectory"

    The name of my AD Membership and Role provider..
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    30 Jun 2009
    Link to this post
    Hi sam,

    Please send us your web.config file with the last modification you made. As for the authorizing, please make sure you have granted your AD role to access the CMS.

    I look forward to hearing from you.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  11. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    30 Jun 2009
    Link to this post
    Hi,

    Here is my web.config

    <?xml version="1.0"?> 
    <configuration> 
        <configSections> 
            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
                <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
                    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
                        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/> 
                        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                        <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                        <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                    </sectionGroup> 
                </sectionGroup> 
            </sectionGroup> 
            <sectionGroup name="telerik"
                <section name="dataAccess" type="Telerik.DataAccess.Configuration.SectionHandler, Telerik.DataAccess" requirePermission="false"/> 
                <section name="framework" type="Telerik.Framework.Configuration.SectionHandler, Telerik.Framework" requirePermission="false"/> 
                <section name="localization" type="Telerik.Localization.Configuration.SectionHandler, Telerik.Localization" requirePermission="false"/> 
                <section name="blogs" type="Telerik.Blogs.Configuration.SectionHandler, Telerik.Blogs" requirePermission="false"/> 
                <section name="news" type="Telerik.News.Configuration.SectionHandler, Telerik.News" requirePermission="false"/> 
                <section name="versioning" type="Telerik.Versioning.Configuration.SectionHandler, Telerik.Versioning" requirePermission="false"/> 
                <section name="lists" type="Telerik.Lists.Configuration.SectionHandler, Telerik.Lists" requirePermission="false"/> 
                <section name="cmsEngine" type="Telerik.Cms.Engine.Configuration.SectionHandler, Telerik.Cms.Engine" requirePermission="false"/> 
                <section name="security" type="Telerik.Security.Configuration.SectionHandler, Telerik.Security" requirePermission="false"/> 
                <section name="workflow" type="Telerik.Workflow.WorkflowSectionHandler, Telerik.Workflow" requirePermission="false"/> 
                <section name="cms" type="Telerik.Cms.Configuration.SectionHandler, Telerik.Cms" requirePermission="false"/> 
                <section name="polls" type="Telerik.Polls.PollsSectionHandler, Telerik.Polls" requirePermission="false"/> 
                <section name="fileManager" type="Telerik.FileManager.Configuration.SectionHandler, Telerik.FileManager" requirePermission="false"/> 
                <section name="forums" type="Telerik.Forums.Configuration.SectionHandler, Telerik.Forums" requirePermission="false"/> 
                <section name="rss" type="Telerik.Rss.Configuration.SectionHandler, Telerik.Rss" requirePermission="false"/> 
                <section name="search" type="Telerik.Search.Configuration.SectionHandler, Telerik.Search" requirePermission="false"/> 
                <section name="personalization" type="Telerik.Personalization.Configuration.SectionHandler, Telerik.Personalization" requirePermission="false"/> 
                <section name="libraries" type="Telerik.Libraries.Configuration.SectionHandler, Telerik.Libraries" requirePermission="false"/> 
                <section name="events" type="Telerik.Events.Configuration.SectionHandler, Telerik.Events" requirePermission="false"/> 
                <section name="notifications" type="Telerik.Notifications.Newsletters.Configuration.SectionHandler, Telerik.Notifications" requirePermission="false"/> 
                <section name="spamProtector" type="Telerik.Cms.Engine.SpamProtector.Configuration.SpamProtectorSection, Telerik.Cms.Engine"/> 
                <section name="performanceCounter" type="Telerik.Framework.Utilities.HealthMonitoring.Configuration.CountersSection, Telerik.Framework"/> 
                <section name="storageSetting" type="Telerik.Libraries.AmazonStorage.StorageSection, Telerik.Libraries" requirePermission="false"/> 
                <section name="mediaProvider" type="Telerik.Libraries.MediaProvider.Configuration.MediaProviderSection, Telerik.Libraries" requirePermission="false"/> 
            </sectionGroup> 
        </configSections> 
        <runtime> 
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
                <dependentAssembly> 
                    <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> 
                    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> 
                </dependentAssembly> 
                <dependentAssembly> 
                    <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> 
                    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> 
                </dependentAssembly> 
            </assemblyBinding> 
        </runtime> 
        <connectionStrings> 
             
            <add name="Sitefinity" connectionString="data source=grdev\sql2005;UID=SF_Intranet_User;PWD=1password!;initial catalog=SF_Intranet"  
                providerName="System.Data.SqlClient"/> 
     
            <!-- AD CMS --> 
            <add name="ADService" connectionString="LDAP://131.203.11.112/OU=Intranet CMS,OU=IRL Groups,DC=int,DC=irl,DC=cri,DC=nz"/> 
        </connectionStrings> 
        <system.web> 
            <!-- Sets the allowed upload file size --> 
            <httpRuntime maxRequestLength="51200"/> 
            <pages> 
                <controls> 
                    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                    <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/> 
                    <add tagPrefix="telerik" namespace="Telerik.Charting" assembly="Telerik.Web.UI"/> 
                    <add tagPrefix="telerik" namespace="Telerik.Cms.Web.UI" assembly="Telerik.Cms.Web.UI"/> 
                    <add tagPrefix="telerik" namespace="Telerik.Cms.Web.UI" assembly="Telerik.Framework"/> 
                </controls> 
            </pages> 
            <httpHandlers> 
                <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/> 
                <add verb="*" path="*.rss" type="Telerik.Rss.RssHttpHandler, Telerik.Rss"/> 
                <add verb="*" path="*.rss.ashx" type="Telerik.Rss.RssHttpHandler, Telerik.Rss"/> 
                <add verb="GET" path="*.sflb" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/> 
                <add verb="GET" path="*.sflb.ashx" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/> 
                <add verb="GET" path="*.tmb" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/> 
                <add verb="GET" path="*.tmb.ashx" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/> 
                <add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/> 
                <add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/> 
                <add verb="*" validate="false" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI"/> 
                <remove verb="*" path="*.asmx"/> 
                <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> 
                <add verb="GET" path="CaptchaImage.axd" type="Telerik.Web.UI.SpamProtection.Captcha.CaptchaImageHandler, Telerik.Cms.Web.UI"/> 
                <add verb="POST" path="blogs/metablog.ashx" type="Telerik.Blogs.MetaWeblog.MetaWeblogHandler, Telerik.Blogs"/> 
                <add verb="POST" path="trackback.ashx" type="Telerik.Cms.Engine.Trackback.TrackbackHandler, Telerik.Cms.Engine"/> 
                <add verb="GET" path="*.s3lb" type="Telerik.Libraries.AmazonStorage.S3StorageHandler, Telerik.Libraries"/> 
                <add verb="GET" path="*.s3lb.ashx" type="Telerik.Libraries.AmazonStorage.S3StorageHandler, Telerik.Libraries"/> 
                <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/> 
            </httpHandlers> 
            <customErrors mode="RemoteOnly"
                <error redirect="~/Sitefinity/nopermissions.aspx" statusCode="403"/> 
            </customErrors> 
            <compilation debug="true"
                <assemblies> 
                    <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                    <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                    <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                    <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies> 
            </compilation> 
            <roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="ActiveDirectory"
                <providers> 
                 
                    <clear/> 
     
                    <add name="ActiveDirectory" 
                        applicationName="/" 
                        description="Telerik Role provider for Active Directory" 
                        authenticationType="Secure" 
                          userSearchFilter="(&amp;(sAMAccountType=805306368)(sAMAccountName={0}))" 
                        roleSearchFilter="(&amp;(objectClass=group)(sAMAccountName={0}))" 
                        userDefinitionFilter="sAMAccountType=805306368" 
                        groupDefinitionFilter="(objectClass=group)" 
                           
                        connectionStringName="ADService" 
                        type="Telerik.Security.ActiveDirectory.TelerikADRoleProvider, Telerik.Security" 
                        connectionUsername="IRL\sqldev" 
                        connectionPassword="1234" 
                        groupMaps="administrator,Intranet CMS" 
                        domainName="irl.cri.nz" 
                        searchScope="subtree"  /> 
     
     
                    <add connectionStringName="DefaultConnection" applicationName="/" name="Sitefinity" type="Telerik.DataAccess.AspnetProviders.TelerikRoleProvider, Telerik.DataAccess"/> 
                </providers> 
            </roleManager> 
            <membership defaultProvider="ActiveDirectory" userIsOnlineTimeWindow="15" hashAlgorithmType=""
                <providers> 
                    <clear/> 
                    <add connectionStringName="ADService"  
                    enableSearchMethods="true"  
                    attributeMapUsername="sAMAccountName"  
                    connectionUsername="IRL\sqldev"  
                    connectionPassword="1234"  
                    name="ActiveDirectory"  
                    type="Telerik.DataAccess.AspnetProviders.TelerikMembershipProvider, Telerik.DataAccess"/> 
                     
                    <add name="Sitefinity" connectionStringName="DefaultConnection" type="Telerik.DataAccess.AspnetProviders.TelerikMembershipProvider, Telerik.DataAccess" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" passwordStrengthRegularExpression="" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0"/> 
                </providers> 
            </membership> 
            <profile defaultProvider="Sitefinity"
                <providers> 
                    <clear/> 
                    <add name="Sitefinity" connectionStringName="DefaultConnection" applicationName="/" type="Telerik.DataAccess.AspnetProviders.TelerikProfileProvider, Telerik.DataAccess"/> 
                </providers> 
                <properties> 
                    <add name="FirstName"/> 
                    <add name="LastName"/> 
                    <add name="Position"/> 
                    <add name="Photo_Hidden"/> 
                    <add name="Photo" defaultValue="~/Sitefinity/Common/Images/defaultavatar.gif"/> 
                    <group name="InstantMessenger"
                        <add name="IM_Type"/> 
                        <add name="IM_Value"/> 
                    </group> 
                    <group name="Phone"
                        <add name="Value"/> 
                        <add name="Type"/> 
                    </group> 
                </properties> 
            </profile> 
            <httpModules> 
                <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add name="Cms" type="Telerik.Cms.Web.CmsHttpModule, Telerik.Cms"/> 
                <!-- Http Module for extension mappings in Library module.--> 
                <!--<add name="LibraryModule" type="Telerik.Libraries.LibraryHttpModule, Telerik.Libraries"/>--> 
                <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/> 
            </httpModules> 
            <authentication mode="Windows"
                <forms name=".ASPNET" loginUrl="~/sitefinity/login.aspx" protection="All" timeout="1440" path="/"/> 
            </authentication> 
            <authorization> 
                <allow users="?"/> 
            </authorization> 
            <siteMap defaultProvider="CmsSiteMapProvider" enabled="true"
                <providers> 
                    <clear/> 
                    <add name="CmsSiteMapProvider" description="Displays Cms Pages" type="Telerik.Cms.Web.CmsSiteMapProvider"/> 
                </providers> 
            </siteMap> 
            <healthMonitoring enabled="true" heartbeatInterval="0"
                <eventMappings> 
                    <add name="Simple Web Request Event" type="Telerik.Utilities.SimpleWebRequestEvent,Telerik.Framework"/> 
                    <add name="Code Benchmark Event" type="Telerik.Utilities.CodeBenchmarkEvent,Telerik.Framework"/> 
                </eventMappings> 
                <providers> 
                    <add name="Simple Web Event Provider" type="Telerik.Utilities.TextFileWebEventProvider,Telerik.Framework" logFileName="~/App_Data/sitefinity.log"/> 
                    <add name="Simple Web Buffered Event Provider" type="Telerik.Utilities.BufferedTextFileWebEventProvider,Telerik.Framework" bufferMode="Notification" logFileName="~/App_Data/sitefinity.log"/> 
                    <add name="Code Benchmark Provider" type="Telerik.Utilities.CodeBenchmarkTextFileProvider,Telerik.Framework" enabled="False" logFileName="~/App_Data/performance.log"/> 
                </providers> 
                <rules> 
                    <add name="SitefinityEventHandler" eventName="Simple Web Request Event" provider="Simple Web Event Provider" minInterval="00:00:00" minInstances="1" maxLimit="Infinite"/> 
                    <add name="SitefinityErrorHandler" eventName="All Errors" provider="Simple Web Event Provider" minInterval="00:00:00" minInstances="1" maxLimit="Infinite"/> 
                    <add name="SitefinityCodeBenchmarkHandler" eventName="Code Benchmark Event" provider="Code Benchmark Provider" minInterval="00:00:00" minInstances="1" maxLimit="Infinite"/> 
                </rules> 
            </healthMonitoring> 
        </system.web> 
        <system.web.extensions> 
            <scripting> 
                <!--The Following lines value should be true in production server--> 
                <scriptResourceHandler enableCompression="false" enableCaching="false"/> 
            </scripting> 
        </system.web.extensions> 
        <system.webServer> 
            <validation validateIntegratedModeConfiguration="false"/> 
            <modules> 
                <remove name="ScriptModule"/> 
                <remove name="Cms"/> 
                <!--<remove name="LibraryModule"/>--> 
                <remove name="RadUploadModule"/> 
                <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add name="Cms" type="Telerik.Cms.Web.CmsHttpModule, Telerik.Cms"/> 
                <!-- Http Module for extension mappings in Library module.--> 
                <!--<add name="LibraryModule" type="Telerik.Libraries.LibraryHttpModule, Telerik.Libraries"/>--> 
                <add name="RadUploadModule" preCondition="managedHandler" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/> 
            </modules> 
            <handlers> 
                <remove name="ScriptResource"/> 
                <remove name="WebServiceHandlerFactory-Integrated"/> 
                <remove name="ScriptHandlerFactory"/> 
                <remove name="ScriptHandlerFactoryAppServices"/> 
                <remove name="SitefinityTemplate"/> 
                <remove name="SitefinityThumbnail"/> 
                <remove name="SitefinityLibrary"/> 
                <remove name="RadUploadProgress"/> 
                <remove name="SitefinityRSS"/> 
                <remove name="Dialog"/> 
                <remove name="Spellcheck"/> 
                <remove name="ChartImage"/> 
                <remove name="CaptchaImage"/> 
                <remove name="Metablog"/> 
                <remove name="Trackback"/> 
                <remove name="AmazonLibrary"/> 
                <remove name="AmazonLibraryAdd"/> 
                <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add name="SitefinityTemplate" path="*.template" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32"/> 
                <add name="SitefinityThumbnail" path="*.tmb" verb="*" preCondition="integratedMode" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/> 
                <add name="SitefinityThumbnailAdd" path="*.tmb.ashx" verb="*" preCondition="integratedMode" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/> 
                <add name="SitefinityLibrary" path="*.sflb" verb="*" preCondition="integratedMode" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/> 
                <add name="SitefinityLibraryAdd" path="*.sflb.ashx" verb="*" preCondition="integratedMode" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/> 
                <add name="SitefinityRSS" preCondition="integratedMode" verb="*" path="*.rss" type="Telerik.Rss.RssHttpHandler, Telerik.Rss"/> 
                <add name="SitefinityRSSAdd" preCondition="integratedMode" verb="*" path="*.rss.ashx" type="Telerik.Rss.RssHttpHandler, Telerik.Rss"/> 
                <add name="RadUploadProgress" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/> 
                <add name="Dialog" preCondition="integratedMode" verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/> 
                <add name="Spellcheck" preCondition="integratedMode" verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/> 
                <add name="ChartImage" preCondition="integratedMode" verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI"/> 
                <add name="CaptchaImage" preCondition="integratedMode" verb="GET" path="CaptchaImage.axd" type="Telerik.Web.UI.SpamProtection.Captcha.CaptchaImageHandler, Telerik.Cms.Web.UI"/> 
                <add name="Metablog" preCondition="integratedMode" verb="POST" path="blogs/metablog.ashx" type="Telerik.Blogs.MetaWeblog.MetaWeblogHandler, Telerik.Blogs"/> 
                <add name="Trackback" preCondition="integratedMode" verb="POST" path="trackback.ashx" type="Telerik.Cms.Engine.Trackback.TrackbackHandler, Telerik.Cms.Engine"/> 
                <add name="AmazonLibrary" path="*.s3lb" verb="*" preCondition="integratedMode" type="Telerik.Libraries.AmazonStorage.S3StorageHandler, Telerik.Libraries"/> 
                <add name="AmazonLibraryAdd" path="*.s3lb.ashx" verb="*" preCondition="integratedMode" type="Telerik.Libraries.AmazonStorage.S3StorageHandler, Telerik.Libraries"/> 
                <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1125.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/> 
            </handlers> 
        </system.webServer> 
        <system.net> 
            <mailSettings> 
                <smtp from="mailmaster@yourdomain.com"
                    <network host="smtp.yourdomain.com" userName="YourUsername" password="YourPassword" port="25"/> 
                </smtp> 
            </mailSettings> 
        </system.net> 
        <system.codedom> 
            <compilers> 
                <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"
                    <providerOption name="CompilerVersion" value="v3.5"/> 
                    <providerOption name="WarnAsError" value="false"/> 
                </compiler> 
                <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"
                    <providerOption name="CompilerVersion" value="v3.5"/> 
                    <providerOption name="OptionInfer" value="true"/> 
                    <providerOption name="WarnAsError" value="false"/> 
                </compiler> 
            </compilers> 
        </system.codedom> 
        <telerik> 
            <dataAccess defaultConnection="DefaultConnection"
                <connections> 
     
                     
                    <add name="DefaultConnection" driver="Nolics.ORMapper.DataProviders.SqlServer2005Provider" connectionStringName="Sitefinity"/> 
                    <add name="GenericContentConnection" driver="Telerik.Cms.Engine.Data.Providers.GCSql2005Provider, Telerik.Cms.Engine.Data" connectionStringName="Sitefinity"/> 
                </connections> 
            </dataAccess> 
            <framework> 
                <caching defaultProvider="memoryCache"
                    <providers> 
                        <add name="memoryCache" type="Telerik.Caching.MemoryCachingProvider, Telerik.Framework"/> 
                        <add name="ASPNET" type="Telerik.Caching.AspNetCachingProvider, Telerik.Framework" duration="120" slidingExpiration="true"/> 
                    </providers> 
                    <cacheDependency mode="InMemory"/> 
                </caching> 
                <modules> 
                    <add type="Telerik.Cms.Engine.GenericContentModule, Telerik.Cms.Engine"/> 
                    <add type="Telerik.News.NewsModule, Telerik.News"/> 
                    <add type="Telerik.Blogs.BlogsModule, Telerik.Blogs"/> 
                    <add type="Telerik.Lists.ListModule, Telerik.Lists"/> 
                    <add type="Telerik.Polls.PollModule, Telerik.Polls"/> 
                    <add type="Telerik.Forums.ForumsModule, Telerik.Forums"/> 
                    <add type="Telerik.Libraries.LibrariesModule, Telerik.Libraries"/> 
                    <add type="Telerik.Events.EventsModule, Telerik.Events"/> 
                    <add type="Telerik.Notifications.Newsletters.NewsletterModule, Telerik.Notifications"/> 
                </modules> 
                <services> 
                    <add type="Telerik.Search.SearchModule, Telerik.Search"/> 
                    <add type="Telerik.Search.Engine.IndexingManager, Telerik.Search"/> 
                    <add type="Telerik.Rss.RssModule, Telerik.Rss"/> 
                    <add type="Telerik.Rss.RssProviderService, Telerik.Rss"/> 
                    <add type="Telerik.Cms.Engine.ContentUrlRewriterService, Telerik.Cms.Engine"/> 
                </services> 
                <tools> 
                    <add type="Telerik.Cms.Tools.SiteExporter, Telerik.Cms"/> 
                </tools> 
                <assemblies> 
                </assemblies> 
                <controlDesigners> 
                    <add key="System.Web.UI.WebControls.Image" value="Telerik.Libraries.WebControls.ImageEditorDialog, Telerik.Libraries"/> 
                    <add key="Telerik.Cms.Engine.WebControls.SitefinityImage" value="Telerik.Libraries.WebControls.ImageEditorDialog, Telerik.Libraries"/> 
                </controlDesigners> 
                <propertySelectors> 
                    <add key="System.Web.UI.Design.ImageUrlEditor" value="Telerik.Libraries.WebControls.ImageSelector, Telerik.Libraries"/> 
                </propertySelectors> 
                <sitefinityConfiguration defaultProvider="XmlConfigProvider"
                    <providers> 
                        <add name="XmlConfigProvider" type="Telerik.Sitefinity.Configuration.XmlConfigProvider, Telerik.Framework"/> 
                    </providers> 
                </sitefinityConfiguration> 
            </framework> 
            <notifications defaultProvider="Notifications"
                <providers> 
                    <clear/> 
                    <add name="Notifications" type="Telerik.Notifications.Data.DefaultProvider, Telerik.Notifications.Data" connectionStringName="DefaultConnection" EnableSsl="false" MergedFields="FirstName;LastName" SendingInterval="1000"/> 
                </providers> 
            </notifications> 
            <search defaultProvider="Search"
                <providers> 
                    <clear/> 
                    <add name="Search" type="Telerik.Search.Data.DefaultProvider, Telerik.Search.Data" connectionStringName="DefaultConnection" useCompoundIndexFile="true"/> 
                </providers> 
                <indexClients> 
                    <add name="PageIndex" type="Telerik.Cms.Search.PageIndexProvider, Telerik.Cms" settingsControl="Telerik.Cms.Web.UI.PageIndexSettings, Telerik.Cms" viewSettingsControl="Telerik.Cms.Web.UI.SearchViewControl, Telerik.Cms" description="Provides indexing services for CMS Pages."/> 
                </indexClients> 
                <indexers> 
                    <add extensionOrMimeType=".aspx" type="Telerik.Search.Engine.HtmlIndexer"/> 
                    <add extensionOrMimeType="text/html" type="Telerik.Search.Engine.HtmlIndexer"/> 
                </indexers> 
                <searchInputValidation> 
                    <add matchPattern="\A[\*\?\~][^\s]*" replacementString="" enabled="true" matchAlert="You can not start your query using wildcards, modify your query and try again.."/> 
                    <add matchPattern="[\!\^\(\)\{\}\[\]]" replacementString="" enabled="true" matchAlert="Strange characters should be enclosed between double quotation, modify your query and try again.."/> 
                </searchInputValidation> 
            </search> 
            <localization defaultProvider="Sitefinity" persistenceMode="None" defaultCulture="en" cultures="en, es, fr, de, bg"
                <providers> 
                    <clear/> 
                    <add name="Sitefinity" type="Telerik.Localization.Data.DefaultProvider, Telerik.Localization.Data" connectionStringName="DefaultConnection"/> 
                </providers> 
            </localization> 
            <lists defaultProvider="Sitefinity"
                <providers> 
                    <clear/> 
                    <add name="Sitefinity" securityProviderName="" type="Telerik.Lists.Data.DefaultProvider, Telerik.Lists.Data" connectionStringName="DefaultConnection" visible="true"/> 
                    <!--
                    <add name="SitefinityXml" securityProviderName="" type="Telerik.Lists.Data.XmlProvider, Telerik.Lists.Data" dataFile="~/App_Data/Lists.xml" visible="true"  />
                    --> 
                </providers> 
            </lists> 
            <forums defaultProvider="Sitefinity"
                <providers> 
                    <clear/> 
                    <add name="Sitefinity" securityProviderName="" profileProviderName="Sitefinity" type="Telerik.Forums.Data.DefaultProvider, Telerik.Forums.Data" connectionStringName="DefaultConnection" visible="true"/> 
                </providers> 
            </forums> 
            <rss defaultProvider="Sitefinity"
                <feeds> 
                </feeds> 
                <channelProviders> 
                    <clear/> 
                    <add name="Page Rss Provider" type="Telerik.Cms.Web.RssChannelProvider, Telerik.Cms" settingsControl="Telerik.Cms.Web.UI.RssSettingsControl, Telerik.Cms" viewSettingsControl="Telerik.Cms.Web.UI.RssViewSettingsControl, Telerik.Cms" description="Provides RSS for CMS pages"/> 
                </channelProviders> 
                <providers> 
                    <clear/> 
                    <add name="Sitefinity" type="Telerik.Rss.Data.DefaultServiceProvider, Telerik.Rss.Data" connectionStringName="DefaultConnection"/> 
                </providers> 
            </rss> 
            <versioning defaultProvider="Sitefinity"
                <providers> 
                    <clear/> 
                    <add name="Sitefinity" type="Telerik.Versioning.Data.DefaultProvider, Telerik.Versioning.Data" connectionStringName="DefaultConnection"/> 
                </providers> 
            </versioning> 
            <security defaultProvider="DefaultSecurityProvider" cmsProvidersName="Sitefinity"
                <roles> 
                    <clear/> 
                    <add name="Intranet Cms Admin" permission="Unrestricted"/> 
                </roles> 
                    <providers> 
                        <clear/> 
                        <add name="DefaultSecurityProvider"  
                        connectionStringName="DefaultConnection"  
                        type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data"  
                        membershipProvider="Sitefinity" roleProvider="Sitefinity"/> 
                    </providers> 
            </security> 
            <cms defaultProvider="Sitefinity" pageExtension=".aspx" siteTemplate="" projectName="Intranet" disabled="false" pageEditorUIMode="Overlay"
                <providers> 
                    <clear/> 
                    <add connectionStringName="DefaultConnection" allowPageHistory="true" allowPageWorkflow="false" cachingProviderName="ASPNET" name="Sitefinity" type="Telerik.Cms.Data.DefaultProvider, Telerik.Cms.Data"/> 
                </providers> 
                <toolboxControls> 
                    <clear/> 
                    <add name="Generic Content" section="Most popular" type="Telerik.Cms.Engine.WebControls.GenericContent, Telerik.Cms.Engine"/> 
                    <add name="Image" section="Most popular" type="Telerik.Cms.Engine.WebControls.SitefinityImage, Telerik.Cms.Engine" description="Displays an image on a Web page."/> 
                    <add name="Image gallery" section="Most popular" type="Telerik.Libraries.WebControls.ImageGallery, Telerik.Libraries"/> 
                    <add name="Dynamic Hyper Link" section="Navigation" type="Telerik.Cms.Engine.WebControls.DynamicHyperLink, Telerik.Cms.Engine" description="Dynamic Hyper Link lets you declare link for cms pages so that its Navigate URL doesn't not depend on where the page is located in the hierarchy."/> 
                    <add name="Site Menu" section="Navigation" url="~/Sitefinity/UserControls/Navigation35/SiteMenu.ascx"/> 
                    <add name="Site Panelbar" section="Navigation" url="~/Sitefinity/UserControls/Navigation35/SitePanelbar.ascx"/> 
                    <add name="Site Tabstrip" section="Navigation" url="~/Sitefinity/UserControls/Navigation35/SiteTabstrip.ascx"/> 
                    <add name="Site Treeview" section="Navigation" url="~/Sitefinity/UserControls/Navigation35/SiteTreeview.ascx"/> 
                    <add name="Breadcrumb" section="Navigation" type="Telerik.Cms.Web.UI.Breadcrumb, Telerik.Cms.Web.UI"/> 
                    <add name="Hyper Link" section="Navigation" type="Telerik.Cms.Engine.WebControls.SitefinityHyperLink, Telerik.Cms.Engine" description="Creates links on a Web page that allow users to move from page to page in your application."/> 
                    <add name="Language Selector" section="Navigation" type="Telerik.Localization.WebControls.LanguageBar,Telerik.Localization" description="A control for selecting the current language current version"/> 
                    <add name="RadTabStrip" section="RadControls" type="Telerik.Web.UI.RadTabStrip, Telerik.Web.UI"/> 
                    <add name="RadMenu" section="RadControls" type="Telerik.Web.UI.RadMenu, Telerik.Web.UI"/> 
                    <add name="RadPanelBar" section="RadControls" type="Telerik.Web.UI.RadPanelBar, Telerik.Web.UI"/> 
                    <add name="Image " section="Images &amp; Documents" type="Telerik.Cms.Engine.WebControls.SitefinityImage, Telerik.Cms.Engine" description="Displays an image on a Web page."/> 
                    <add name="XML Data Source" section="Data" type="System.Web.UI.WebControls.XmlDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" description="Represents an XML data source to data-bound controls."/> 
                    <add name="SiteMapDataSource" section="Data" type="System.Web.UI.WebControls.SiteMapDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" description="Provides a data source control that Web server controls and other controls can use to bind to hierarchical site map data. "/> 
                    <add name="Details View" section="Data" type="System.Web.UI.WebControls.DetailsView, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" description="Displays the values of a single record from a data source in a table, where each data row represents a field of the record. The DetailsView control allows you to edit, delete, and insert records."/> 
                    <add name="Grid View" section="Data" type="System.Web.UI.WebControls.GridView, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> 
                    <add name="Login Status" section="Login" type="System.Web.UI.WebControls.LoginStatus, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" description="Detects the user's authentication state and toggles the state of a link to log in to or log out of a Web site."/> 
                    <add name="Login Name" section="Login" type="System.Web.UI.WebControls.LoginName, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" description="Displays the value of the System.Web.UI.Page.User.Identity.Name property."/> 
                    <add name="Login" section="Login" url="~/Sitefinity/UserControls/Login/LoginControl.ascx" description="Provides user interface (UI) elements for logging in to a Web site."/> 
                    <add name="Manage Profile" section="Login" type="Telerik.Security.WebControls.ManageProfile, Telerik.Security" description="Provides UI for managing user's profile information"/> 
                    <add name="Login View" section="Login" url="~/Sitefinity/UserControls/Login/LoginViewControl.ascx" description="Displays the appropriate content template for a given user, based on the user's authentication status and role membership."/> 
                    <add name="Create User" section="Login" url="~/Sitefinity/UserControls/Login/CreateUserWizardControl.ascx" description="Provides a user interface for creating new Web site user accounts."/> 
                    <add name="Spam Protector" section="Forms" type="Telerik.Web.UI.SpamProtection.SpamProtector, Telerik.Cms.Web.UI" description="Provides spam protection to web forms using different strategies."/> 
                    <add name="Video" section="Most popular" type="Telerik.Libraries.WebControls.Video, Telerik.Libraries" description="Video content control"/> 
                    <!-- IRL Usercontrols --> 
                    <add name="Persons" section="IRL" url="~/UserControls/Person/Persons.ascx" description="IRL Persons"/> 
                    <add name="NewPersonsSmall" section="IRL" url="~/UserControls/NewPeople/NewPeopleSmall.ascx" description="New IRL People Small"/> 
                    <add name="NewPersonsLarge" section="IRL" url="~/UserControls/NewPeople/NewPeopleLarge.ascx" description="New IRL People Large"/> 
                </toolboxControls> 
            </cms> 
            <cmsEngine defaultProvider="Generic_Content"
                <providers> 
                    <clear/> 
                    <add name="Generic_Content" urlRewriteFormat="[Publication_Date]/[Name].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="True" defaultMetaField="Name" securityProviderName="" allowLocalization="False" allowVersioning="True" allowWorkflow="False" allowComments="false" commentsModeration="true" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data"/> 
                    <add name="News" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/News" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.News.Data.DefaultNewsProvider, Telerik.News.Data"/> 
                    <add name="Blogs" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" applicationName="/Blogs" allowVersioning="True" allowComments="true" commentsModeration="false" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Blogs.Data.DefaultBlogProvider, Telerik.Blogs.Data"/> 
                    <add name="Libraries" urlRewriteFormat="~/{Provider}/{LibraryName}/[Name].sflb.ashx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" applicationName="/Libraries" allowVersioning="False" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Libraries.Data.DefaultProvider, Telerik.Libraries.Data" tagEditorTemplate="~/Sitefinity/Admin/ControlTemplates/Libraries/BatchTagsEditor.ascx"/> 
                    <!--Amazon Data Provider [First turn off the default one] url format can be urlRewriteFormat="~/{Provider}/{LibraryName}/[Name].s3lb" as well in that cae there will extra libraries in the url--> 
                    <!--<add name="Libraries" urlRewriteFormat="~/{LibraryName}/[Name].s3lb"  thumbnailExtension=".tmb" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" applicationName="/Libraries" allowVersioning="True" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Libraries.Data.AmazonProvider, Telerik.Libraries.Data" tagEditorTemplate="~/Sitefinity/Admin/ControlTemplates/Libraries/BatchTagsEditor.ascx" />--> 
                    <!--Viddler Data Provider Compatible with other libraries, must add a libraryInfo with type = "Viddler"--> 
                    <!--<add name="Libraries" urlRewriteFormat="~/{LibraryName}/[Name].sflb.ashx" thumbnailExtension=".tmb" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" applicationName="/Libraries" allowVersioning="True" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Libraries.Data.ViddlerProvider, Telerik.Libraries.Data" tagEditorTemplate="~/Sitefinity/Admin/ControlTemplates/Libraries/BatchTagsEditor.ascx"/>--> 
                    <add name="Events" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/Events" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.Events.Data.DefaultEventsProvider, Telerik.Events.Data"/> 
                </providers> 
                <rssProviders> 
                    <clear/> 
                    <add name="Blogs" type="Telerik.Blogs.RssProvider, Telerik.Blogs" visible="True" applicationName="/Blogs" rssFieldAuthor="Author" rssFieldTitle="Title" rssFieldPubDate="Publication_Date"/> 
                </rssProviders> 
                <browserCacheSettings lastModifiedDateEnabled="true" contentExpirationEnabled="false"
                    <expirationSettings option="ExpireImmediately" value="0"
                    </expirationSettings> 
                </browserCacheSettings> 
                <metaFields> 
                    <add key="Generic_Content.Name" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="Name this content" mandatory="True"/> 
                    <add key="Generic_Content.Description" valueType="LongText" visible="True" searchable="False" sortable="True" defaultValue="Add description here"/> 
                    <add key="Generic_Content.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Generic_Content.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="News.Title" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="News.Summary" valueType="LongText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="News.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="News.Source" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="News.Publication_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now"/> 
                    <add key="News.Expiration_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Max"/> 
                    <add key="News.Thumbnail" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/> 
                    <add key="News.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""
                    </add> 
                    <add key="Blogs.Title" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Blogs.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Blogs.Publication_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now"/> 
                    <add key="Blogs.BlogID" valueType="Guid" visible="False" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Blogs.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Blogs.View_Count" valueType="Integer" visible="True" searchable="True" sortable="True" defaultValue="0"/> 
                    <add key="Libraries.Name" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Libraries.Width" valueType="Integer" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Libraries.Height" valueType="Integer" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Libraries.Size" valueType="Integer" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Libraries.Extension" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Libraries.AlternateText" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Libraries.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Libraries.Description" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Libraries.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Libraries.PermaLink" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Events.Title" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Events.Street" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Events.City" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Events.Country" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                    <add key="Events.State" valueType="ShortText" visible="True" searchable="True" sortable="False" defaultValue=""/> 
                    <add key="Events.Geomapping_Data" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/> 
                    <add key="Events.Event_Start" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now"/> 
                    <add key="Events.Event_End" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now"/> 
                    <add key="Events.Publication_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now"/> 
                    <add key="Events.Expiration_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Max"/> 
                    <add key="Events.Contact_Name" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/> 
                    <add key="Events.Contact_Email" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/> 
                    <add key="Events.Contact_Phone" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/> 
                    <add key="Events.Contact_Cell" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/> 
                    <add key="Events.Contact_Web" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/> 
                    <add key="Events.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
                </metaFields> 
                <contentViewSettings> 
                    <add type="Telerik.Cms.Engine.WebControls.Design.Settings.TextSettingService"/> 
                    <add type="Telerik.Cms.Engine.WebControls.Design.Settings.ContentSettingService"/> 
                    <add type="Telerik.Cms.Engine.WebControls.Design.Settings.MaxWidthSettingService"/> 
                </contentViewSettings> 
            </cmsEngine> 
            <news defaultGenericProvider="News"
                <genericContentProviders> 
                    <add providerName="News" publicationDateField="Publication_Date" expirationDateField="Expiration_Date" thumbnailUrlField="Thumbnail" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_"/> 
                </genericContentProviders> 
            </news> 
            <blogs defaultGenericProvider="Blogs"
                <genericContentProviders> 
                    <add providerName="Blogs" publicationDateField="Publication_Date" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" flatOwnership="True"/> 
                </genericContentProviders> 
            </blogs> 
            <libraries defaultGenericProvider="Libraries"
                <genericContentProviders> 
                    <add providerName="Libraries" publicationDateField="Publication_Date"/> 
                </genericContentProviders> 
                <libraryInfo> 
                    <add name="Image" title="Image Library" defaultExtenstions=".png, .jpg, .jpeg, .gif" metaKeys="Author, AlternateText, Extension, Name, Height, Width, Size, Category"
                    </add> 
                    <add name="Document" title="Document Library" defaultExtenstions=".doc, .docx, .rtf, .txt, .pdf, .ppt, .pptx, .html, .xls, .xlsx" metaKeys="Author, Description, Extension, Name, Size, Category"
                    </add> 
                    <add name="Custom" title="Custom Library" defaultExtenstions=".*" metaKeys="Author, Description, Extension, Name, Size, Category"
                    </add> 
                    <add name="Video" title="Video" defaultExtenstions=".wmv" metaKeys="Author, Extension, Name, Size, Category, Description"
                    </add> 
                    <!-- Viddler can co-exists with other libraries--> 
                    <!--<add name="Viddler" title="Viddler Library" defaultExtenstions=".avi, .mpg, .mov, .wmv, .wma, .3gp" metaKeys="Author, Description, Extension, Name, Size, Category"></add>--> 
                </libraryInfo> 
                <!-- before using extensionMapping be you uncomment LibraryHttpModule in handlers and httpHandlers sections --> 
                <extensionMapping defaultExtension=".sflb.ashx"
                    <!--<add key=".jpg"/> 
                    <add key=".pdf"/> 
                    <add key=".csv"/> 
                    <add key=".xls"/>--> 
                </extensionMapping> 
            </libraries> 
            <events defaultGenericProvider="Events" googleMapsAPIKey="" googleMapsAPIUrl="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=" yahooMapsAPIKey="" yahooMapsAPIUrl="http://api.maps.yahoo.com/ajaxymap?v=3.7&amp;appid=" liveSearchMapsAPIUrl="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"
                <genericContentProviders> 
                    <add providerName="Events" publicationDateField="Publication_Date" expirationDateField="Expiration_Date" eventStartField="Event_Start" eventEndField="Event_End" streetField="Street" cityField="City" countryField="Country" stateField="State" geomappingDataField="Geomapping_Data" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_"/> 
                </genericContentProviders> 
            </events> 
            <workflow deleteOnCompletion="true" defaultProvider="NolicsWorkflowProvider"
                <providers> 
                    <clear/> 
                    <add name="NolicsWorkflowProvider" connectionStringName="DefaultConnection" type="Telerik.Workflow.NolicsWorkflowProvider, Telerik.Workflow"/> 
                </providers> 
            </workflow> 
            <polls defaultProvider="NolicsPollsProvider"
                <providers> 
                    <clear/> 
                    <add name="NolicsPollsProvider" connectionStringName="DefaultConnection" type="Telerik.Polls.Data.NolicsPollsProvider, Telerik.Polls.Data"/> 
                </providers> 
            </polls> 
            <fileManager defaultProvider="Sitefinity"
                <impersonation username="" password=""
                    <allow roles="Administrators"
                    </allow> 
                </impersonation> 
                <providers> 
                    <clear/> 
                    <add name="Sitefinity" type="Telerik.FileManager.DefaultProvider, Telerik.FileManager"/> 
                </providers> 
            </fileManager> 
            <personalization defaultProvider="Sitefinity"
                <providers> 
                    <clear/> 
                    <add name="Sitefinity" type="Telerik.Personalization.Data.NolicsProvider, Telerik.Personalization.Data" connectionStringName="DefaultConnection"/> 
                </providers> 
                <globalSettings> 
                    <add type="Telerik.Cms.Web.UI.Personalization.GeneralSettingPanel, Telerik.Cms" templatePath="~/Sitefinity/Admin/ControlTemplates/Personalization/GeneralSettings.ascx" order="1"/> 
                    <add type="Telerik.Cms.Web.UI.Personalization.DashboardSettingPanel, Telerik.Cms" templatePath="~/Sitefinity/Admin/ControlTemplates/Personalization/DashboardSettings.ascx" order="2"/> 
                    <add type="Telerik.Cms.Web.UI.Personalization.PageEditorSettingPanel, Telerik.Cms" templatePath="~/Sitefinity/Admin/ControlTemplates/Personalization/PageEditorSettings.ascx" order="3"/> 
                </globalSettings> 
                <dashboardVisibilitySettings> 
                    <add key="showMyLatestChanges" value="true"/> 
                    <add key="showLastModifiedPages" value="true"/> 
                    <add key="showNewUsers" value="false"/> 
                    <add key="showLastModifiedBlogs" value="false"/> 
                    <add key="showLastModifiedBlogPosts" value="false"/> 
                    <add key="showLastModifiedNews" value="false"/> 
                    <add key="showLastModifiedForums" value="false"/> 
                    <add key="showNewForumPosts" value="false"/> 
                    <add key="showLastModifiedLists" value="false"/> 
                    <add key="showLastModifiedContents" value="false"/> 
                </dashboardVisibilitySettings> 
            </personalization> 
            <spamProtector defaultProvider="akismet" disabled="true"
                <providers> 
                    <add name="akismet" type="Telerik.Cms.Engine.SpamProtector.AkismetProvider" key="c0e8868fd509" siteUrl="http://www.telerik.com/"/> 
                </providers> 
            </spamProtector> 
            <performanceCounter category="Sitefinity CMS" description="Sitefinity performance statistics" disabled="true"
                <counters> 
                    <add name="DAL Operations/Sec" description="The number database calls made per second." type="RateOfCountsPerSecond32"/> 
                    <add name="Error Raised" description="Number of times excpetion has been thrown running the app" type="NumberOfItems32"/> 
                    <add name="CMS Page Average Execution Time" description="The average time consumed to serve Sitefinity pages measured in milliseconds." type="AverageTimer32"/> 
                    <add name="CMS Content Average Execution Time" description="The average time consumed to serve Sitefinity Content measured in milliseconds." type="AverageTimer32"/> 
                    <add name="Average Operation Execution Time" description="The average time to execute an operaion (CRUD) measured in milliseconds." type="AverageTimer32"/> 
                </counters> 
            </performanceCounter> 
            <storageSetting defaultProvider="Amazon"
                <providers> 
                    <add name="Amazon" type="Telerik.Libraries.AmazonStorage.AmazonStorageProvider, Telerik.Libraries" downloadUrlPrefix="http://s3.amazonaws.com" accessKey="#YourAccessKey#" secretAccessKey="#YourSecrectKey#" bucketName="Sitefinity"/> 
                </providers> 
            </storageSetting> 
            <!-- Viddler--> 
            <mediaProvider defaultProvider="viddler"
                <providers> 
                    <add name="viddler" type="Telerik.Libraries.MediaProvider.ViddlerProvider" apiKey="#Your_Api#" baseUrl="http://api.viddler.com/rest/v1/"/> 
                </providers> 
            </mediaProvider> 
        </telerik> 
    </configuration> 
     
  12. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    01 Jul 2009
    Link to this post
    Hi sam,

    There are several general mistakes that I saw in your configuration. I posted them below.

    1. The highlighted type below is wrong. It should be Telerik.Security.ActiveDirectory.TelerikADMembershipProvider, Telerik.Security

     <membership defaultProvider="ActiveDirectory" userIsOnlineTimeWindow="15" hashAlgorithmType="">  
                <providers>  
                    <clear/>  
                    <add connectionStringName="ADService"   
                    enableSearchMethods="true"   
                    attributeMapUsername="sAMAccountName"   
                    connectionUsername="IRL\sqldev"   
                    connectionPassword="1234"   
                    name="ActiveDirectory"   
                    type="Telerik.DataAccess.AspnetProviders.TelerikMembershipProvider, Telerik.DataAccess"/>  

    2. In security node you are setting no existing groupMaps Intranet Cms Admin

     <add name="Intranet Cms Admin" permission="Unrestricted"/> 

    Please fix this settings. Let us know the result.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  13. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    02 Jul 2009
    Link to this post

    Hi Ivan,

     

    I implemented your recommended changes but I am getting the same previous error.

     

    I am sure it has to do with my path:

    LDAP://131.203.11.112/OU=Intranet CMS,OU=IRL Groups,DC=int,DC=irl,DC=cri,DC=nz

    Can you explain these setting from my role provider:

     

    userSearchFilter

     

    ="(&amp;(sAMAccountType=805306368)(sAMAccountName={0}))"

     

     

     

     

     

    roleSearchFilter="(&amp;(objectClass=group)(sAMAccountName={0}))"

     

     

     

     

     

    userDefinitionFilter="sAMAccountType=805306368"

     

     

     

     

     

    groupDefinitionFilter="(objectClass=group)"

     


    As I think the problem lies somewhere there..

    Else what else can I try??
  14. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    02 Jul 2009
    Link to this post
    Hello sam,

    The Active Directory connection string is simliar to the database connection string used in ASP.NET, except that it references an LDAP address.

    DC- authenticate users in entire domain tree - test.co.uk
    DC=test,DC=co,DC=uk"/>

    OU - The objects held within a domain grouped into containers

    SAM-Account-Name Attribute. For all other attributes you can take a look at Telerik Active Directory Providers. If you do not want to use searchFilter, searchRole filter, please remove them or contact your server administrator for more information.

    Useful links : LDAP tips #1: Searching for Users

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  15. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    07 Jul 2009
    Link to this post
    Hi,

    I have 2 problems. One being not able to retrieve roles from AD. 
    To address this problem for now I have created a custom ADRole provider and hard coded a result for GetRolesForUser to return what I wanted
    .

    I tested the result with the test page below (from using Reflector) and hard coded my AD Role Provider name to get roles. And it worked as expected.

    I then thought as I have suspected all along the security provider must be using the wrong role and membership providers. Using debug I found it was using the "SiteFinity" Role and Membership providers.

    This is really confusing to me because within my web.config I have:
    Set my Custom AD role provider as the default provider
    Set my Custom AD membership provider as the default provider

    And within the security provider point to my custom AD providers.

     

    <add name="DefaultSecurityProvider" 
                        connectionStringName="DefaultConnection"   
                        type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data"   
                        membershipProvider="ActiveDirectory" roleProvider="ActiveDirectory"/> 

    What givesss????????????????????????
     

    using System;  
    using System.Collections.Generic;  
    using System.Linq;  
    using System.Web;  
    using System.Web.UI;  
    using System.Web.UI.WebControls;  
    using Telerik.Security;  
    using Telerik.Security.Data;  
    using Telerik.Security.Configuration;  
    using System.Web.Security;  
    using Telerik.Security.Permissions;  
    using System.Configuration.Provider;  
     
    public partial class test2 : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            bool result = IsCurrentUserUnrestricted();  
        }  
     
        public bool IsCurrentUserUnrestricted()  
        {  
            foreach (string str in GetCurrentUserRoles())  
            {  
                if (ConfigHelper.IsRoleUnrestricted(str))  
                {  
                    return true;  
                }  
            }  
            return false;  
        }  
     
        public string[] GetCurrentUserRoles()  
        {  
            UserManager m = new UserManager();  
            string mmembership = m.MembershipProvider.Name;  
            string role = m.RoleProvider.Name;  
     
            return GetCurrentUserRoless(membership);  
        }  
     
        public string[] GetCurrentUserRoless(string providerName)  
        {  
            RolePrincipal currentUser = HttpContext.Current.User as RolePrincipal;  
            if ((currentUser != null) && currentUser.ProviderName.Equals(providerName))  
            {  
                return currentUser.GetRoles();  
            }  
            return new string[0];  
        }  
     
         
     
     
     
     
     
     
     
     
    }  
     

  16. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    07 Jul 2009
    Link to this post
    Hi sam,

    The security provider is not related to the AD and membership providers. Please keep using the default settings for the security provider as suggested. The settings for the security provider are related to nolics. The sections you should use to set membership and role providers are under roleManager/providers and membership/providers.

    You can send your web.config for review.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  17. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    08 Jul 2009
    Link to this post
    Hi Ivan,

    I finally got it working and all it did was change the name of my Role provider and Membership providers from ActiveDirectory to Sitefinity. And I also commented out the existing SiteFinity role and membership providers.

    This is really strange.. I post my web.config tomorrow..
Register for webinar
17 posts, 0 answered