StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      


««123»»

Trouble Connecting to the security databaseExpand / Collapse
Author
Message
Posted 11/07/2006 3:57:52 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 1:23:24 PM
Posts: 1,327, Visits: 3,475
Trent L. Taylor (11/07/2006)
But when you try to login with a user that is in your database, it does not authenticate?


that is correct. I turned off complex password rules (pretty much all of the rules) and made the password textbox show clear text, just to make sure it wasn't a typo.
Post #4229
Posted 11/07/2006 3:59:09 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:19:14 PM
Posts: 4,801, Visits: 4,769
Did you see my last post about packaging up your SQL database and project so I can take a look at it?
Post #4230
Posted 11/07/2006 4:03:22 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 1:23:24 PM
Posts: 1,327, Visits: 3,475
How much of it do you need? I'm converting a proprietary app, most of which isn't for public consumption. There are two dbs, the StrataFrame db and the app db. The app db has something like 90 tables, a 100 views and 150 sprocs. Some of the tables have lots of data (even in my test db)...yada yada. I can't send most of it to you, as I'd be skinned alive by my boss. So, I can't really just zip it up and post it here

So, what exactly do you need?
Post #4231
Posted 11/07/2006 4:05:27 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:19:14 PM
Posts: 4,801, Visits: 4,769
Well...I thought you might be working with a test app since you are going through the trial.  Bottom line is I need to reproduce the behavior.  Let me try it on my side first.
Post #4232
Posted 11/07/2006 4:08:53 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 1:23:24 PM
Posts: 1,327, Visits: 3,475
Well, the app we need to use it on is complex. Rather than invent the complexity, I'm trying the "hard" stuff with SF to evaluate it. Plus, I needed to see how it would handle existing data and I have data in the db to test on and I have databases that I can connect to over VPN to test speed, etc.

However, I'm going to do a new app, and see if I can reproduce, and on a test app, so I can send it to you if it is reproduced.
Post #4233
Posted 11/07/2006 4:12:40 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:19:14 PM
Posts: 4,801, Visits: 4,769
ahhhh....it just dawned on me what you forgot to set.  You do not have the security key and vector set to match your project.  If you look in the documentation under: Defining Security within the Application -> Adding Security to an Existing Application then go to section 5b to see how to call this method.

It has to match the security key defined in your Role-Based Security project.  Since all of the password, etc. are encrypted, this is your "pre-shared" key to dynamically create a vector encryption key.  Here is the screen inside of the editor:

Whatever value you have in the Security Key property here you need to have that also defined within your app (case sensitive) in the InitApplication section:

SecurityBasics.SetSecurityKeyAndVectorForUserAuthentication("Test")

Post #4234
Posted 11/07/2006 4:32:55 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 1:23:24 PM
Posts: 1,327, Visits: 3,475
As you suspected, this was not set.

I made both the same, but it still didn't work.

I'm gonna guess that this is because the security key set in the security dialog is used to encrypt the values stored in the db, while the on set in InitApplication is used to decrypt this value right? So, I need to set it to the string in the security editor, which was an empty string...trying it...
Post #4235
Posted 11/07/2006 4:34:40 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:19:14 PM
Posts: 4,801, Visits: 4,769
Yes...set this in the role-based security editor, then set the password for the user...then make sure it matches in the InitApplication and I think you will be good.  I just created a test app doing what you are attempting to do and it worked fine....so we just need to work through this little step and you should be on your way.
Post #4236
Posted 11/07/2006 4:35:23 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 1:23:24 PM
Posts: 1,327, Visits: 3,475
Wohoo! That was it. When set to the value in the security dialog, all is good. I'll make sure I keep these both set in the future. Thanks Trent!
Post #4237