473,473 Members | 4,189 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to implement security?

Hi everybody,

I am working on a small project that implements basic security (users
have to login/logout).
Only one user can be logged in at one time. I use C# and ADO.NET.
Users, passwords, accessrights to the system etc. is saved in an Access
database. Everything works fine the way security is implemented at this
point. I use an enum "AccessRight" (All, Read, Write) in my
application. Corresponding values is found in a separate table in my
database(tbl_Rights). By checking a users rights in the database and
comparing it to the enum I can enforce security within the application.
Some users can only read data not write or make changes, while others
can read and write.
What I want to be able to do is to have some sort of "dynamic"
security. Do I have to use an enum within my app like I have done? What
if I want to add another security level...then I would have to make
changes to my source code. I don't like that.

Any suggestions? Any help is appreciated.

Thanks

Nov 17 '05 #1
1 1634
Expand on what you mean by dynamic security. You mean keeping the roles,
users, passwords in a database?

Also, only having one user log in at a time is not a very scalable
application.

"Tookums" <to*****@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi everybody,

I am working on a small project that implements basic security (users
have to login/logout).
Only one user can be logged in at one time. I use C# and ADO.NET.
Users, passwords, accessrights to the system etc. is saved in an Access
database. Everything works fine the way security is implemented at this
point. I use an enum "AccessRight" (All, Read, Write) in my
application. Corresponding values is found in a separate table in my
database(tbl_Rights). By checking a users rights in the database and
comparing it to the enum I can enforce security within the application.
Some users can only read data not write or make changes, while others
can read and write.
What I want to be able to do is to have some sort of "dynamic"
security. Do I have to use an enum within my app like I have done? What
if I want to add another security level...then I would have to make
changes to my source code. I don't like that.

Any suggestions? Any help is appreciated.

Thanks

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Peter | last post by:
I want to copy a parent class instance's all datas to a child's. It's actually a C++'s copy constructor. But why the following code does not work - there is a compile error! How it should look...
14
by: Jim | last post by:
I am using VB.Net 2.0 and I am completely new to the concept of implementing interfaces. Can anyone explain "implementing interfaces" to me and perhaps give me an example of implementing an...
2
by: Justin Drerup | last post by:
I'm tryng to return a custom object that contains a collection of MembershipUsers through a web service however I receive the following error when trying to return the object through a web method:...
9
by: Mike Hofer | last post by:
BACKGROUND: We've designed a Website for a client that will be deployed across multiple physical locations. The site will be hosted from a corporate NOC, and administered by the IT group there. ...
3
by: Luqman | last post by:
How to implement Role Enabled Security in Visual Basic 2005 Windows Application, like we do in ASP.Net 2.0 ? I want to use Sql Server Membership Security for Adding Roles and Users. Can I use...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.