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



Role Based Security and Terminal Server...Expand / Collapse
Author
Message
Posted 11/15/2006 8:54:25 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
Am I correct in assuming that the workstation restriction wouldn't really work in a terminal server environment?

Also... let me know if this is possible... We use terminal server instead of deploying our apps to individual computers. This way the front end and the database are on separate computers in the same location so we dont worry about performance over the WAN.

If we were to use Role-Based Security is there a way that we could log the user in automatically based on the user name they used to log into terminal server? This isnt a big deal but this would require that the user log in three times to get to the app, once on their computer, once to the terminal server, and again at the app. I realize that because of the way we're structured this isnt your fault i was just wondering if its possible.

Post #4474
Posted 11/15/2006 9:19:14 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 10:13:07 AM
Posts: 4,799, Visits: 4,768
Am I correct in assuming that the workstation restriction wouldn't really work in a terminal server environment?

No, this would not work on a Terminal Server since the machine name is the same.  In this case, just apply a restriction set to a user.

If we were to use Role-Based Security is there a way that we could log the user in automatically based on the user name they used to log into terminal server?

Sure.  You would just handle the login yourself instead of going through a login form.  For example, you can login like you would for a web environment by calling the AuthenticateUser() and SetLoggedInUser().  You can find more about this in the help documentation:

Defining Security within the Application -> Programmatic Access -> Login Class -> Methods

Post #4485
Posted 11/15/2006 9:22:43 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
AWESOME! Thanks.
Post #4488
Posted 11/15/2006 9:31:49 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 10:13:07 AM
Posts: 4,799, Visits: 4,768
Sure
Post #4496
Posted 11/29/2006 3:08:21 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
By using the SetLoggedInUser method all it does is return a loginresult... how would I be able to tell if the password or username was incorrect?
Post #4850
Posted 11/30/2006 8:54:40 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:24:42 AM
Posts: 2,686, Visits: 1,889
The LoginResult will tell you whether the user successfully authenticated or not.  Also, if you just want to authenticate the user and you don't want to change the currently logged in user, you can use Login.AuthenticateUser().


www.bungie.net
Post #4861
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 12:13pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.