﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Integration with external / forum user database</title><link>http://www.aspplayground.net/forum/</link><description /><copyright>(c) ASP Playground Support Forum</copyright><ttl>30</ttl><item><title>Integration with external / forum user database (Example) (Samuel)</title><description>  &lt;font color="#ff0000"&gt;&lt;font size="4"&gt;Example Scenario&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;font size="4"&gt;: &lt;/font&gt;&lt;/font&gt; &lt;br&gt;   &lt;br&gt;  We have an asp.net based system with a login/password setup for our members to access various areas of the system.  &lt;br&gt;   &lt;br&gt;  We also have committees that people can be members of.  &lt;br&gt;   &lt;br&gt;  And we want each committee to have a private forum area just for members of that committee.  &lt;br&gt;   &lt;br&gt;  Authentication for committee access is currently done by checking a member ship table for the various committees. &lt;br&gt;   &lt;br&gt;  How can I use your software for this specific purpose? &lt;br&gt;   &lt;br&gt;  &lt;font color="#008000"&gt;&lt;font size="4"&gt;Answer:&lt;/font&gt;&lt;/font&gt; &lt;br&gt;   &lt;br&gt;  The forum software along with the membership provider discussed above can help with this scenario.  &lt;br&gt;   &lt;br&gt;  You can first refer to &lt;a href="#sce2"&gt;scenario 2&lt;/a&gt;  above to see how to use our membership provider for authentication / importing users into our db. &lt;br&gt;   &lt;br&gt;  What we also have in the Site Integration Package (SIP) is a Role provider (in addition to the Membership provider), and one of the features of the Role provider allows you to &lt;b&gt;assign members to certain user groups&lt;/b&gt; (in your case, committees). &lt;br&gt;   &lt;br&gt;  The following is a step-by-step guide for setting up the desired environment: &lt;br&gt;  &lt;ol&gt;&lt;li&gt;Set up various forums, and some of which are marked "private" (no one can see other than committee members) for your committees.&lt;li&gt;Set up various user groups, one for each committee&lt;li&gt;Mark these user groups as the "Private User" for the private forums&lt;li&gt;Use our Membership provider and Role provider to     &lt;ol&gt;&lt;li&gt;Import your users into our system (Membership.CreateUser);&lt;li&gt;Then, assign these users to the desired user group (committee) set up in step 2 (Roles.AddUserToRole)     &lt;/ol&gt;     &lt;li&gt;Done. &lt;/ol&gt; </description><link>http://www.aspplayground.net/forum/fb.ashx?m=401794</link><pubDate>Fri, 22 May 2009 15:15:10 GMT</pubDate></item><item><title>Integration with external / forum user database (Samuel)</title><description>  &lt;font size="3"&gt;&lt;font color="#cc0000"&gt;Q: &lt;/font&gt;Do you support integration with existing user database? I already have a lot of users in my database. &lt;/font&gt;  &lt;br&gt;   &lt;br&gt;  &lt;font color="#006600"&gt;&lt;font size="4"&gt;A:&lt;/font&gt;&lt;/font&gt; Yes we do. First of all, our software uses Forms Authentication, so it is very easy to &lt;a href="http://www.aspplayground.net/forum/Acheiving-singlesignon-m398468.aspx" target="_blank"&gt;achieve Single-Sign-On&lt;/a&gt; for your entire site, including the forum.                &lt;br&gt;   &lt;br&gt;  Let's look at the the following 3 scenarios for user db integration, all through the &lt;b&gt;standard ASP.NET Membership Provider model&lt;/b&gt;: &lt;br&gt;  &lt;ol&gt;&lt;li&gt; &lt;a href="#sce1"&gt;I have my own members database + membership provider&lt;/a&gt; &lt;li&gt; &lt;a href="#sce2"&gt;I have a membership database and management system, but I don't have a membership provider ready.&lt;/a&gt; &lt;li&gt; &lt;a href="#sce3"&gt;I don't have a membership database, and wish to use our forum's database for storing membership information for my entire site.&lt;/a&gt;  &lt;/ol&gt; &amp;nbsp; &lt;br&gt;  &lt;hr&gt; &lt;h2&gt;&lt;a name="sce1" style="font-size: 0px; visibility:hidden;"&gt;_&lt;/a&gt;Scenario 1: You already have your own membership database + membership provider, and wish to integrate it with our software.&lt;/h2&gt; Our software has built-in support for interacting with external ASP.NET Membership Provider. All you have to do is configure the forum's web.config to interact with your membership provider, and that's it.          &lt;br&gt;  &amp;nbsp;          &lt;br&gt;  &lt;b&gt;With this option, you don't have to import your existing users to the forum's database&lt;/b&gt;. Our built-in support for membership provider takes care of importing and authenticating through your membership provider, and you do not need to modify any code (other than the configuration section in web.config).          &lt;br&gt;  &amp;nbsp;          &lt;br&gt;  This is the best way to integrate your own user database with our software, as we can manage user passwords through your membership provider as well.               &lt;br&gt;   &lt;br&gt;  For example, if you are already using the &lt;b&gt;SqlMembershipProvider &lt;/b&gt;that ASP.NET provides to manage your users, you can plug it right into our software without any issue.       &lt;br&gt;   &lt;br&gt;  &lt;h3&gt;&lt;u&gt;To integrate with your membership provider, do the following:&lt;/u&gt;&lt;/h3&gt; &lt;ol&gt;&lt;li&gt;Put the membership provider information into &lt;b&gt;forum's web.config&lt;/b&gt; file (both the &lt;b&gt;membership &lt;/b&gt;section and its associated &lt;b&gt;connectionString&lt;/b&gt;)&lt;li&gt;In the &lt;b&gt;forum's web.config&lt;/b&gt; file (same file as above), set the &lt;b&gt;EnableMembershipIntegration &lt;/b&gt;key under &lt;i&gt;appSettings &lt;/i&gt;to &lt;b&gt;true&lt;/b&gt;  &lt;/ol&gt; Once the above is set up correctly, to achieve single sign on (SSO), refer to &lt;a href="http://www.aspplayground.net/forum/Acheiving-singlesignon-m398468.aspx" target="_blank"&gt;this SSO guide&lt;/a&gt;.     &lt;br&gt;  &amp;nbsp;     &lt;br&gt;  &lt;b&gt;Note&lt;/b&gt;: if your own membership provider does not store user name in the forms authentication cookie (e.g. your store email instead), you will need an alternative method to do SSO. See this &lt;a href="http://www.aspplayground.net/forum/Custom-Forms-Authentication-cookie-for-Single-Sign-On-m404898.aspx" target="_blank"&gt;custom forms authentication technique&lt;/a&gt; for guidance.    &lt;br&gt;  &amp;nbsp;    &lt;br&gt;  &lt;ol&gt; &lt;/ol&gt; &lt;h2&gt;&lt;a name="sce2" style="font-size: 0px; visibility:hidden;"&gt;_&lt;/a&gt;Scenario 2: You already have a membership database, but you don't have a membership provider built.&lt;/h2&gt; &amp;nbsp;          &lt;br&gt;  If you don't want to do this additional programming, &lt;b&gt;we have our own membership provider for the forum user database&lt;/b&gt;. You can use our forum membership provider in your own registration code to import users to the forum user db.           &lt;br&gt;   &lt;br&gt;  For example, with our membership provider installed, you can use the standard provider method, &lt;b&gt;&lt;i&gt;Membership.CreateUser()&lt;/i&gt;&lt;/b&gt;, in your registration routine to insert new users directly into our forum db, OR you can &lt;b&gt;call this method repeatedly to import&lt;/b&gt; existing users into our software.                &lt;br&gt;   &lt;br&gt;  You can also call the &lt;i&gt;MembershipUser.ChangePassword()&lt;/i&gt; method on your password changing form to submit the new password to our forum database (this may not be necessary because you can use Forms Authentication cookie to achieve &lt;a href="http://www.aspplayground.net/forum/Acheiving-singlesignon-m398468.aspx" target="_blank"&gt;single sign on&lt;/a&gt;).                &lt;br&gt;   &lt;br&gt;  &lt;a href="#sce3"&gt;Please refer to the scenario 3 below&lt;/a&gt; for more info on our own membership provider.          &lt;br&gt;  &amp;nbsp;          &lt;br&gt;  &lt;b&gt;Alternatively&lt;/b&gt;, you can also import users from your member db to our forum using the &lt;b&gt;Fast Member Import&lt;/b&gt; feature available in the Admin control panel. You will supply a list of users (name, email, password) and the software will batch import them for you.          &lt;br&gt;  &amp;nbsp;          &lt;br&gt;  &lt;h2&gt;&lt;a name="sce3" style="font-size: 0px; visibility:hidden;"&gt;_&lt;/a&gt;Scenario 3: You don't have a membership database, and wish to use our forum's database for storing membership information for your entire site.&lt;/h2&gt;  &lt;br&gt;  In this case, you can use the free Membership Provider we provide with our software (through the &lt;b&gt;Site Integration Package&lt;/b&gt;, the &lt;b&gt;SIP&lt;/b&gt;). In other words, you can &lt;br&gt;  &lt;ol&gt;&lt;li&gt;Build a login page on your site and once a user is logged    in, he is logged in to the forum as well - &lt;a href="http://www.aspplayground.net/forum/Acheiving-singlesignon-m398468.aspx" target="_blank"&gt;Single Sign On&lt;/a&gt;, and vice    versa.&lt;li&gt;Build a registration page for your site and have users inserted into our database.&lt;li&gt;In addition, with our membership provider, you can     &lt;ol&gt;&lt;li&gt;Delete users from your site&lt;li&gt;Allows Users to change / reset password&lt;li&gt;Update Users' Email&lt;li&gt;Approve users / Unlock (un-ban) users&lt;li&gt;Build member list&lt;li&gt;Look for users using email / login with wildcard character (%) support&lt;li&gt;Get number of online users  &lt;/ol&gt;  &lt;/ol&gt; A sample application is provided to show you the above functions, so you won't have any issue using this provider.               &lt;br&gt;  Our membership provider inherits the Web.Security.MembershipProvider without adding any additional functionalities. However, our membership provider does not support &lt;b&gt;Password Retrieval&lt;/b&gt; and &lt;b&gt;Password Q &amp;amp; A&lt;/b&gt;. Passwords are stored strictly using the Hash format in our DB.   &lt;br&gt;  &amp;nbsp;   &lt;br&gt;  &lt;h3&gt;Clarification about the membership provider we provide (the SIP)&lt;/h3&gt; To use our membership provider, you &lt;b&gt;do not&lt;/b&gt; need to enable membership integration for the forum (on pg 8, point 7 in the full install manual). This setting is only necessary when you want the forum to talk to an external membership provider (e.g. the standard ASP.NET one as in Scenario 1 above), but in this case, there is not a membership provider the forum need to work with. The forum is already talking to its own database, and we just want our site to use the forum db through a membership provider interface that we provide (the &lt;b&gt;SIP&lt;/b&gt;). So,&lt;b&gt; no extra configuration is needed&lt;/b&gt; on the forum's own web.config file in this case. &lt;br&gt;  </description><link>http://www.aspplayground.net/forum/fb.ashx?m=397994</link><pubDate>Sun, 20 Jul 2008 04:26:04 GMT</pubDate></item></channel></rss>
