﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Application Framework / Role Based Security  / Question about a special scenario / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Fri, 21 Nov 2008 18:02:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Question about a special scenario</title><link>http://forum.strataframe.net/Topic11337-21-1.aspx</link><description>Yep, just let me know when you have new questions :)</description><pubDate>Mon, 10 Sep 2007 08:50:24 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: Question about a special scenario</title><link>http://forum.strataframe.net/Topic11337-21-1.aspx</link><description>Then It is posible.&lt;br&gt;&lt;br&gt;I will test it and post here some aditional questions about this topic :) thankyou so much &lt;br&gt;</description><pubDate>Fri, 07 Sep 2007 14:22:18 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Question about a special scenario</title><link>http://forum.strataframe.net/Topic11337-21-1.aspx</link><description>[quote]I attemp to not waste your time[/quote]&lt;/P&gt;&lt;P&gt;Oh don't worry, you're certainly not wasting my time :)&lt;/P&gt;&lt;P&gt;Yeah, you can swap out the SecurityDataSourceKey at runtime to swap between databases.  The only thing is that a users permissions will be cached when created, so, you'll need to refresh the user after you swap to a new database.&lt;/P&gt;&lt;P&gt;You can get a new ISecurityUser object by calling MicroFour.StrataFrame.Security.LoggedInUser() and pass the SFSUsersBO that you populate with the user from the correct database.</description><pubDate>Fri, 07 Sep 2007 09:58:34 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: Question about a special scenario</title><link>http://forum.strataframe.net/Topic11337-21-1.aspx</link><description>I Apologize for the last post that I made, I like to say "SecurityDataSourceKey" not "securitykey", I try to say if I can change the SecurityDataSourceKey to read another DB entirely and see the permisions of that database (with the logged user that exist on both databases with same user data but changed permission)&lt;br&gt;&lt;br&gt;Sorry Ben, between my english and my knowledge of .net and strataframe, I´m making a mixture :w00t:&lt;br&gt;&lt;br&gt;I attemp to not waste your time, but some things escape to me&lt;br&gt;&lt;br&gt;I am thankful for your patience&lt;br&gt;</description><pubDate>Thu, 06 Sep 2007 13:26:52 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Question about a special scenario</title><link>http://forum.strataframe.net/Topic11337-21-1.aspx</link><description>[quote]Can I change "online" the securitykey and get a permission from one or another DB?[/quote]&lt;/P&gt;&lt;P&gt;No, the security key is used as the seed for the byte[] that is the key used to encrypt/decrypt the us_Data field.  So, if you change the key, suddenly, you won't be able to see anyones passwords and the users will all become invalid.  Hence why the key exists within the SecurityMaintenance editor for adding users at design-time.  The data must be encrypted using the same key to be decrypted at runtime.&lt;/P&gt;&lt;P&gt;[quote]&lt;SPAN id=ctl02_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl06_lblFullMessage&gt;If I handle the aftersave and duplicate from one DB to another EXACTLY the SFS_users row, not having problems with us_data?&lt;/SPAN&gt;[/quote] &lt;/P&gt;&lt;P&gt;Yes, you can copy a user from one database to another with no problem copying the us_Data field, IF (as I mentioned above) the MicroFour.StrataFrame.Security.SecurityBasics.SetSecurityKeyAndVectorForUserAuthentication() method was called with the same security key for all .EXEs that use the access the users.</description><pubDate>Thu, 06 Sep 2007 08:52:30 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: Question about a special scenario</title><link>http://forum.strataframe.net/Topic11337-21-1.aspx</link><description>If I handle the aftersave and duplicate from one DB to another EXACTLY the SFS_users row, not having problems with us_data?&lt;br&gt;&lt;br&gt;Can I change "online" the securitykey and get a permission from one or another DB?&lt;br&gt;&lt;br&gt;Thanks for all the help.&lt;br&gt;&lt;br&gt;- Fabian&lt;br&gt;</description><pubDate>Wed, 05 Sep 2007 13:20:22 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Question about a special scenario</title><link>http://forum.strataframe.net/Topic11337-21-1.aspx</link><description>The RBS is designed so that all of the SFS* tables reside in the same database so that the tables can be joined and such.  So, splitting the permissions off and placing them in a different database would not be possible.  If all of the enterpriseN applications use the same permissions, then you would need to have to store the SFS* tables in the enterpriseN database so that each would have its own UsersXPermissions records to determine which user has which permissions for that database.  The closest you would get to having a shared users table would be to handle the AfterSave event of the SFSUsersBO and duplicate/update the user on the additional databases.</description><pubDate>Wed, 05 Sep 2007 09:23:11 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>Question about a special scenario</title><link>http://forum.strataframe.net/Topic11337-21-1.aspx</link><description>I think if is posible to use the RBS on this scenario:&lt;br&gt;&lt;br&gt;I try to develop a Mini - ERP, this have a ConfigDB Database with the RBS Tables (users,permission,etc), but have multiple DB (1 for each "enterprise", Enterprise1, Enteprise2, EnterpriseN, etc)&lt;br&gt;&lt;br&gt;Questions:&lt;br&gt;1) I like to have the same users but not same permission&lt;br&gt; ex: on enterprise 1 the user "pepe" can make a invoice, but not on enterprise 2&lt;br&gt; - about this I think about if I can have the users on the ConfigDB and the permission on ConfigDB, and also if the permission need to be customized to enterpriseN, I have a copy of this permission on EnterpriseN DB and use it (something like on RBS how the user permissions have priority over the role permissions)&lt;br&gt;      then if I found a same permission on the actual enterpriseN DB, I take that (if it no exist I use the configDB permission)&lt;br&gt;&lt;br&gt;I have something on RBS to make this or have to check the permission on my actual db (on a copy of SFSRolesXPermission and SFSUsersXPermission) and see if this exist there, and if it not, use the one on configDB?&lt;br&gt;&lt;br&gt;I not sure If I can explain the stuff correctly, I try to be clear but I speak in spanish and are newbie on .net and strataframe :w00t:&lt;br&gt;&lt;br&gt;thanks guys for the great patience :)&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 05 Sep 2007 07:45:08 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item></channel></rss>