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

Forums / Security / ASP.NET membership and role tables versus Telerik

ASP.NET membership and role tables versus Telerik

11 posts, 0 answered
  1. debett
    debett avatar
    16 posts
    Registered:
    12 Feb 2007
    31 Aug 2010
    Link to this post
    Hi,

    I was wondering if sitefinity can use ASP.NET tables in sql server instead of its sf_users and other tables?

    I already have users in ASP.NET tables and I do not want to implement the second level of security and then control its synchronization.

    Thank you.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    31 Aug 2010
    Link to this post
    Hello debett,

    This is not possible if you want to use the built-in Membership, Role and Profile providers. If you have a custom providers you can declare them in the web.config and set them as default providers. You can also import the tables you use in Sitefinity database, so that everything will be in one place. Another option is migrating all users and their data to Sitefinity Membership, Role and Profile providers.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. debett
    debett avatar
    16 posts
    Registered:
    12 Feb 2007
    31 Aug 2010
    Link to this post
    Ivan,

    I suppose than importing is not possible because of the encryption mechanisms and salt..  Am i wrong?

    Thank you.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    31 Aug 2010
    Link to this post
    Hi debett,

    This depends on how you have stored the passwords in your tables and what is the passwordFormat value of your provider. You can make a hack to import the users, but this will be a potential risk - set up both membership/role/profile providers ( yours and Sitefinity's ). During login of each user you can get the cleared password from Login control and after LoggedIn event get all data for this user and migrate it to our provider. In this case you will have the clear password instead of hashed.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. debett
    debett avatar
    16 posts
    Registered:
    12 Feb 2007
    31 Aug 2010
    Link to this post
    Ivan,

    You have been really helpful to me with all my questions.

    I have multiple issues with initial setup/running. Is there any way to talk to someone on the phone or using gotomeeting to resolve my issue. I am seriously interested in your product and I already have all other telerik products. However, I need help to get started.

    Thank you.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    01 Sep 2010
    Link to this post
    Hello debett,

    We proceed with web sessions when there is some bug in our code that we could see and we are not able to reproduce locally.

    I suggest that you should go through Bullet proof installing Sitefinity where you will find step by step tutorial how to proceed with the installation process.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. debett
    debett avatar
    16 posts
    Registered:
    12 Feb 2007
    02 Sep 2010
    Link to this post
    Ivan,

    The problem is not that I do not know how to do it - the problem is that I am getting various exceptions every two clicks. When creating a new project 9 out 10 times it will say that the project is corrupted and will give a gray exception screen. Missing dlls, incorrect files, yellow page of exception if you mistype a connection string. The worst part about it is that after you mistype it once, it won't let you go at all. Even after restarting your "administrative tool," and retyping everything correctly it keeps the mistyped connection and gives you the yellow page of exception.

    Well, I guess that I should look for a completed product.

    Thank you.
  8. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Sep 2010
    Link to this post
    Hello debett,

    Thank you for voicing your experience with the system. The problem with the missing files can be resolved if you delete the _EmptyProject directory. We have issues with the caching configuration for the database and the way to clear the cache is if you restart the server. I want to assure you that we are working toward straightening out these issues.

    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. DrGiorgini
    DrGiorgini avatar
    5 posts
    Registered:
    13 Jul 2010
    14 Oct 2010
    Link to this post
    Hello Ivan Dimitrov (thank for your support!)

    > This is not possible if you want to use the built-in Membership, Role and Profile providers. If you have a custom
    > providers you can declare them in the web.config and set them as default providers.
    > You can also import the  tables you use in Sitefinity database, so that everything will be in one place. Another
    > option is migrating all users   and their data to Sitefinity Membership, Role and Profile providers.

    this mean that is not possible delete "sitefinity" entries, and set only my providers? I want to use my ROLE/MEMBERSHIP/PROFILE class,and use Sitefinity for CMS.

    For examples:
    <roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="Sitefinity"
        <providers
          <clear/> 
          <add connectionStringName="DefaultConnection" applicationName="/" name="PPPPP" type="XXXX.YYYY.ZZZZ"/> 
        </providers
      </roleManager
      <membership defaultProvider="MYMSPROVIDER" userIsOnlineTimeWindow="15" hashAlgorithmType=""
        <providers
          <clear/> 
          <add name="MYMSPROVIDER" connectionStringName="DefaultConnection" type="XXXX.YYYY.ZZZZ"/> 
        </providers
      </membership
      <profile defaultProvider="MYPROFILE"
        <providers
          <clear/> 
          <add name="Sitefinity" connectionStringName="DefaultConnection" applicationName="/" type="XXXX.YYYY.ZZZZ"/> 
        </providers
        <properties
          <add name="FirstName"/> 
          <add name="LastName"/> 
          </properties
      </profile>
      
      
    ...
      
      
    <security defaultProvider="DefaultSecurityProvider" cmsProvidersName="Sitefinity"
        <roles
          <clear/> 
          <add name="MY_ROLE_Administrators" permission="Unrestricted"/> 
        </roles
        <providers
          <clear/> 
          <add name="DefaultSecurityProvider" connectionStringName="DefaultConnection" type="XXXX.YYYY.ZZZZZ" membershipProvider="MYMSPROVIDER" roleProvider="MYRLPROVIDER"/> 
        </providers
      </security>

    It's correct?

    We try different configuration, but nothing...

    You could give me a sample of web.config section for using a samples dll called:
    myMembership
    myProfile
    myRole

    I think that our problems are only in configuration section... but after some day of war  :-) , I'm confused!!

    best regards!

  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    14 Oct 2010
    Link to this post
    Hi Ser-Vis,

    You can use your own custom providers, but they should inherit from our Membership, Role and Profile provider or from the standard ASP.NET providers.

    In this section, cmsProviderName should be the name of your custom membership provider.

    <security defaultProvider="DefaultSecurityProvider" cmsProvidersName="The name of yor provider">


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  11. DrGiorgini
    DrGiorgini avatar
    5 posts
    Registered:
    13 Jul 2010
    14 Oct 2010
    Link to this post
    it's work thank!
Register for webinar
11 posts, 0 answered