Problems with integrated accounts


Author
Message
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi

This is the second time I put this, last was not solution or answer. Please I really need the integrated accounts works because I can not access to the Security editor of the application.

I'm using the last beta version of SF and RBS, when installed I let update the SQL tables. And I add some tables later and use the DDT to deploy and update my database.

The problem occurs only after update to the most recent version. If I use the "admin" integrated account I can use all the application excep the Security Editor.

I have this for enter as default admin user in AppMain.vb

'-- Set the administrative and security maintenance usernames and passwords

SecurityBasics.AdministratorUserName = "admin"

SecurityBasics.AdministratorPassword = "admin" & DateTime.Now.Day.ToString() '-- set the admin password so that it changes from day to day

SecurityBasics.AdministratorUserPk = -1

SecurityBasics.SecurityMaintenanceUserName = "seguridad"

SecurityBasics.SecurityMaintenancePassword = "seguridad" & DateTime.Now.Day.ToString() '-- set the admin password so that it changes from day to day

SecurityBasics.SecurityMaintenanceUserPk = -2

Previous to 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:

#Region " Data Transformation Functions "

''' <summary>

''' Converts the byte array into an encrypted or decrypted byte array.

''' If the passed data was encrypted, it will be decrypted and vice-versa.

''' </summary>

''' <param name="input"></param>

''' <param name="CryptoTransform"></param>

''' <returns></returns>

''' <remarks></remarks>

Private Function Transform(ByVal input() As Byte, ByVal CryptoTransform As ICryptoTransform) As Byte()

' Create the necessary streams

Dim memStream As MemoryStream = New MemoryStream

Dim cryptStream As CryptoStream = New CryptoStream(memStream, CryptoTransform, CryptoStreamMode.Write)

' Transform the bytes as requested

cryptStream.Write(input, 0, input.Length)

cryptStream.FlushFinalBlock() '-- HERE

The code I use all time to show the security editor is this (previous the update works all time)

Dim loForm As SecurityDialog

If SecurityBasics.CurrentUser.GetPermission("Application Security").Action = PermissionAction.Grant Then

loForm = New SecurityDialog()

loForm.ShowDialog()

Else

MessageForm.ShowMessage("Acceso denegado", "No tiene permitido el acceso al editor de seguridad.", "", MessageFunction.OK, MessagingIcon.Forbidden, MessagingSounds.Warning)

End If

And if try to enter with the "seguridad" user, I get this error:

The CurrentRow for table '[dbo].[SFSUsers]' could not be evaluated because the CurrentRowIndex is out of range.  Business object record count: 0.  CurrentRowIndex: -1.

I dind not change anything in my security functions or users permissions.

I read the some changes were made to security, but I can't found anything that point to the problem I'm having now.

Regards

Smile Everything is possible, just keep trying...

Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
The problem that you are having seems a little odd.  Im am going to answer under the understanding that you mentioned that when you login with the Admin you can get to anything and when you log in with the security user you get the error.  There are a couple of problems in your statement that don't make sense.

  1. If you login as an Admin, you should be able to get to anything, including security.
  2. You never mentioned trying to login with a user created from within security.  Have you done this?  Does it work?  Does it cause an error?
  3. Do you have a user with the same name as your hard coded user names?
  4. Have you tried this same logic in a brand new SF app with all of the defaults to see if it is reproducable outside of your application environment?

I can tell you this much, nothing in this regard has changed.  There have been some structure changes made between releases to account for a new field or two (i.e. Display Name).  So you will want to verify that as well. 

Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi Trent

  1. If you login as an Admin, you should be able to get to anything, including security.
  2. You never mentioned trying to login with a user created from within security.  Have you done this?  Does it work?  Does it cause an error?
  3. Do you have a user with the same name as your hard coded user names?
  4. Have you tried this same logic in a brand new SF app with all of the defaults to see if it is reproducable outside of your application environment?

1. I can login with the defaul administrator and enter and use every part of the application but if I try to enter to the security editor gives me an error, the shown in the first mail. This is the only one function I can not enter woth the integrated admin.

2. As I'm deloping and application, and have only two users, none have access to security, reason is because I always use the default admin account to change permissons and test with the only two users I have.

3) No, the names are completly different

4) No yet.

The integrated security account does not enter to the application, it shows an error, that I alredy post.

Can you tell me which fields are new, I can review the values in the tables to see if they have those fields.

Regards

Smile Everything is possible, just keep trying...

Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)StrataFrame User (198 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi Trent

75% solved. After working on this I have access with the build-in administrator account to the security dialog.

Also I grant a user persission to access the security dialog and is working.

Also have access to the application with the build-in security account, but... This user have not access to the security dialog.

Do you have some ideas of what can prevent this user to have access there?

Now I'm using a simple access:

Using loDialog As New SecurityDialog(False, False)

loDialog.ShowDialog()

End Using

Regards

Smile Everything is possible, just keep trying...

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search