﻿<?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 - V1 » Role Based Security  » Administrative and security maintenance usernames and passwords problem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 22 Apr 2026 23:20:42 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost31519.aspx</link><description>Hi Jennifer.&lt;br/&gt;&lt;br/&gt;Have a look at the thread starting from the following post:&lt;br/&gt;&lt;br/&gt;&lt;a href="http://forum.strataframe.net/FindPost6284.aspx"&gt;http://forum.strataframe.net/FindPost6284.aspx&lt;/a&gt;</description><pubDate>Sat, 20 Oct 2012 10:10:24 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21773.aspx</link><description>Hi&lt;P&gt;I'm using the last version of SF and RBS, I found a problem after change to this version.&lt;/P&gt;&lt;P&gt;I have this for enter as default admin user in AppMain.vb&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;FONT size=2&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;'-- Set the administrative and security maintenance usernames and passwords&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;SecurityBasics.AdministratorUserName = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"admin"&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;SecurityBasics.AdministratorPassword = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"admin"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &amp;amp; DateTime.Now.Day.ToString() &lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;'-- set the admin password so that it changes from day to day&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;SecurityBasics.AdministratorUserPk = -1&lt;/P&gt;&lt;P&gt;SecurityBasics.SecurityMaintenanceUserName = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"seguridad"&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;SecurityBasics.SecurityMaintenancePassword = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"seguridad"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &amp;amp; DateTime.Now.Day.ToString() &lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;'-- set the admin password so that it changes from day to day&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;SecurityBasics.SecurityMaintenanceUserPk = -2&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;Previous to&amp;nbsp;this release I could enter as admin and go to the Security editor to manage the security of the application. Now if enter as "admin" the code breaks here:&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;P&gt;#Region&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;" Data Transformation Functions "&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;''' &amp;lt;summary&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;''' Converts the byte array into an encrypted or decrypted byte array.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;''' If the passed data was encrypted, it will be decrypted and vice-versa.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;''' &amp;lt;/summary&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;''' &amp;lt;param name="input"&amp;gt;&amp;lt;/param&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;''' &amp;lt;param name="CryptoTransform"&amp;gt;&amp;lt;/param&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;''' &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Function&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Transform(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; input() &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Byte&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; CryptoTransform &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ICryptoTransform) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Byte&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;' Create the necessary streams&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; memStream &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MemoryStream = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MemoryStream&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; cryptStream &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; CryptoStream = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; CryptoStream(memStream, CryptoTransform, CryptoStreamMode.Write)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;' Transform the bytes as requested&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;cryptStream.Write(input, 0, input.Length)&lt;/P&gt;&lt;P&gt;cryptStream.FlushFinalBlock() '&lt;FONT color=#dd1111&gt;-- HERE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;The code I use all time to show the security editor is this (previous the update works all time)&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; loForm &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; SecurityDialog&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; SecurityBasics.CurrentUser.GetPermission(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Application Security"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;).Action = PermissionAction.Grant &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;loForm = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; SecurityDialog()&lt;/P&gt;&lt;P&gt;loForm.ShowDialog()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Else&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;MessageForm.ShowMessage(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Acceso denegado"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"No tiene permitido el acceso al editor de seguridad."&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;""&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, MessageFunction.OK, MessagingIcon.Forbidden, MessagingSounds.Warning)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;And if try to enter with the "seguridad" user, I get this error:&lt;/P&gt;&lt;P&gt;[codesnippet]The CurrentRow for table '[dbo].[SFSUsers]' could not be evaluated because the CurrentRowIndex is out of range.&amp;nbsp; Business object record count: 0.&amp;nbsp; CurrentRowIndex: -1.[/codesnippet]&lt;/P&gt;&lt;P&gt;I dind not change anything in my security functions or users permissions. &lt;/P&gt;&lt;P&gt;I read the some changes were made to security, but I can't found anything that point to the problem I'm having now.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Sat, 20 Oct 2012 10:10:24 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost31518.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I am wondering how I can get the password of a user or how I can determine if a user is administrator. &lt;br/&gt;&lt;br/&gt;Since I need check a user's permission, but the program is a Dll and called by another program, so the security login has been bypassed. The user's ID is passed from the other program, i.e. UserID is known. Now I need to check this user's permission to set up my form controls. &lt;br/&gt;&lt;br/&gt;I have programed to check SFSUserXPermission and SFSRolesXPermission, but if this user is an administrator, the role is not in table SFSRolesXPermission. My question is how I can&amp;nbsp;get if this user is an administrator or not. I guess the info is in table SFSUsers.us_Data, but how can I get it? &lt;br/&gt;&lt;br/&gt;Or, how I can get the password of the user? If I have the password, I can use Login.AuthenticateUser(UserName, Password, "", loUserInfo) to login this user, and then check the currentUser's permission.&lt;br/&gt;&lt;br/&gt;Thanks,</description><pubDate>Fri, 19 Oct 2012 13:18:43 GMT</pubDate><dc:creator>Jennifer Guo</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21832.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;Trent, hope yoo take a look, I really need to access with the admin integrated acccount to the security editor, I can log in with the admin and enter to every form of the application but not to the security editor.&lt;/P&gt;&lt;P&gt;The three users of the application not have access to the security editor, because I'm working on the application and the times I need to modify security I do it with the integrated admin account.&lt;/P&gt;&lt;P&gt;As far as I can understand the problem seems to be related to decrypt, because as I posted before the error goes in that part of the code.&lt;/P&gt;&lt;P&gt;Wainting for your answer.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Thu, 05 Feb 2009 00:58:47 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21826.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;Can you tell me how to do that?&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Wed, 04 Feb 2009 13:48:04 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21824.aspx</link><description>Got it.&lt;/P&gt;&lt;P&gt;I think we could try adding your SFS tables into your DDT project again. If the structures have changed, it will bring the updated ones, and then you could deploy it back to the client. This would make sure that you have the uptodate structures for your securtity tables.</description><pubDate>Wed, 04 Feb 2009 11:35:41 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21806.aspx</link><description>Hi again&lt;/P&gt;&lt;P&gt;Thinking, the DDT package yes, but the new structures? I don't know which are does structures?&lt;/P&gt;&lt;P&gt;I don't have indications to compare what is missing.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Wed, 04 Feb 2009 00:07:26 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21805.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;Yes, as I'm developing the application, I add several tables and update the database with DDT.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Wed, 04 Feb 2009 00:05:57 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21802.aspx</link><description>Good.&lt;/P&gt;&lt;P&gt;Just thinking, have you tried refreshing your DDT package with the new structures and re-deploying it into the client, if that is the case?</description><pubDate>Tue, 03 Feb 2009 20:27:28 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21800.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;yes I did. Every installation I let the installer modify the tables.&lt;/P&gt;&lt;P&gt;regards</description><pubDate>Tue, 03 Feb 2009 18:53:09 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21797.aspx</link><description>Hi Juan.&lt;/P&gt;&lt;P&gt;I think that what Trent meant is if you let your StrataFrame database structures to be changed the time you installed the last version of the framework. This is important since there has been some changes in its structures.</description><pubDate>Tue, 03 Feb 2009 13:39:41 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21793.aspx</link><description>Hi Trent&lt;/P&gt;&lt;P&gt;I make that BO's procedure that you indicate in the page with the last version update. But not other changes.&lt;/P&gt;&lt;P&gt;Wait for your indications because I really need to enter with the incorporated ADMIN account, Any one of the users can access to the security dialog.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Tue, 03 Feb 2009 13:06:19 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21791.aspx</link><description>There have been some structure changes.&amp;nbsp; Did you update the structures when you instaled SF?</description><pubDate>Tue, 03 Feb 2009 10:29:09 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21779.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;No recently, the two users that I had before the last version of SF are the same users.&lt;/P&gt;&lt;P&gt;As I try to explain, everything is the same (regarding security and users) than previous the update to the last SF version.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Mon, 02 Feb 2009 17:17:07 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Administrative and security maintenance usernames and passwords problem</title><link>http://forum.strataframe.net/FindPost21778.aspx</link><description>Hi Juan.&lt;/P&gt;&lt;P&gt;Have you got any user added to your security table?</description><pubDate>Mon, 02 Feb 2009 16:12:35 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>