Ask a Question related to Coldfusion Database Access, Design and Development.
-
mike2004 #1
How to add security to data sources from SQL 2000
How to add security to data sources from SQL 2000
I have been doing ColdFusion programming for over 5 years and now I hired an
assistant for myself. So far I didn?t have any security on my data sources but
now I need to add user rights to these so if my assistant make a mistake
nothing would happen to the tables. Currently I have about 3 data sources. I
did some research on creating users under Microsoft SQL 2000 and I did create a
user account under SQL but since my data sources are connecting via sa account,
this user still have full power on all the tables. Maybe there?s more than just
creating a user account under SQL and permitting read only access to the tables
under the permission tab! Or maybe I need to create new data sources with
different configurations or maybe use ColdFusion Sandbox!
This is where I am confused right now and don?t know what would be the way to
protect my assistant against damaging my tables!
I?m going to explain my situation with an example here:
Let say Mike is a Project Manager / Database Administrator and he?s the only
one in the network who needs to have full access to all the tables/data
sources. And Juta is the Programmer who should only have Read-Only access to
all of the tables with the exception of Update/Insert access on 1 or 2 tables.
I would really appreciate if someone can help me to figure what I need to do
to accomplish this.
Thanks,
Mike R
mike2004 Guest
-
Data Sources
Can anyone tell me how to get a list of Data Sources from CF server using cfml? Thanks: Phil -
backup data sources
Is it possible to backup data sources from one server to another? I need to move data sources from Coldfusion MX to Coldfusion MX 7 server. Thanks... -
Restoring data sources in CF 5.0
Hello guys, Could you please suggest a way to backup data sources for sybase, oracle and db2 from one UNIX server (Solaris) to another Solaris... -
The IListSource does not contain any data sources. <-- ?
Hi When I execute an SQL steatement, I retreive a Dataset. For some queries which does not return any data, If I assign it to the... -
how to access data from 2 different sources?
I need to use data from multiple tables that are located in 2 different databases. Most of the tables are in SQL Server 2000 but 1 one the tables I... -
paross1 #2
Re: How to add security to data sources from SQL 2000
The amount of security associated with the user account that you use for
accessing your database through your data source will need to allow the minimum
necessary actions (UPDATE, DELETE, INSERT, SELECT, etc.) on the database
objects used by your application. You have chosen SA, which is wide open, but
you could create a user account with a much more restricted access. Are you
more worried about what can be done via ColdFusion, or are you worried about
your assistant accessing the database directly through Enterprise Manager? If
it is the latter, then you should set up an account for this person with the
appropriate privileges to the minimum number of objects. SQL Server Books
Online has a good section on Managing Security, and I recommend that you read
it, as it should answer most of your questions. This is really a SQL Server
issue, not a ColdFusion one.
Phil
paross1 Guest
-
mike2004 #3
Re: How to add security to data sources from SQL 2000
thx for the reply. i thought so that i have go with sql side. i read the online
book from sql and i'm even more confused. i don't understand where i have to go
and set this permission for my users knowing my datasources are using sa
account. i created a user under sql with limited permission and still that user
have full access to everything due to the way data sources are connecting to
these tables (via sa account).
maybe i need to create views, or some sort of rules to over write sa permssion
if the user account exists on the sql enterprise.
any idea what i have to do? please advice.
thanks,
mike r
mike2004 Guest
-
paross1 #4
Re: How to add security to data sources from SQL 2000
In Enterprise Manager for your database, you should be able to manage user's
privileges in Security-->Logins, or even create a role for this user and others
with a similiar profile under Security-->Roles. Of course, the user has to log
on to the database with this account for the privileges to be in effect. If
they still use SA, then they will have unlimited access.
Phil
paross1 Guest
-
mike2004 #5
Re: How to add security to data sources from SQL 2000
thx again.
i think i know where i'm confused:
when i enter the rds password on dreamweaver for my coldfusion data sources,
no matter who the logged-in user is i'll see all the possible data sources that
are out there. saying that if i even create a custom data source for my
programmer (user) still she can see all the other data sources so she can
simply query one of the other data sources with full permission!
is there any way to have control over what data sources to show under
dreamweaver or how can workaround this?
please advice.
mike2004 Guest
-
paross1 #6
Re: How to add security to data sources from SQL 2000
Well, that is an RDS issue, not a SQL Server one. You see the databases with
the same privileges as how your data sources are configured on your ColdFusion
server. I hope that this is a development server, as you shouldn't be using RDS
on a production system because of security issues.
Phil
paross1 Guest
-
mike2004 #7
Re: How to add security to data sources from SQL 2000
how can i not use rds and still make communication with my databases? i think i'm missing something here.
mike2004 Guest
-
paross1 #8
Re: How to add security to data sources from SQL 2000
I'm guessing that you need RDS for Dreamweaver to communicate with your
ColdFusion server, etc., but ColdFusion doesn't use RDS to connect to the
database, just for you to be able to "talk" to CF with Dreamweaver, right? We
have RDS enabled in our develoment environment so that we can use CF Studio
(yes, I know, an antique), but the same aplies to Homesite or DW, I would
imagine. We do not have RDS enabled on our production CF server. so if I happen
to use CF Studio to edit any templates on the production system, I can't run
them (or look at any databases, etc. ) and would need to use Explorer to run
the template, and Enterprise Manager (or SQL Plus, etc.) to "look" at the
database. However, you really shouldn't make a habit of modifying production CF
templates without testing them in development anyway, so it really shouldn't be
an issue, unless you don't have development database instances, etc., which
then could be a problem.
Phil
paross1 Guest
-
mike2004 #9
Re: How to add security to data sources from SQL 2000
but aren't data sources running from coldfusion server via rds login account?
do i have any power over what databases to be shown with a specifiec type of
permission under coldfusion databases tab after entering my rds?
mike2004 Guest
-
paross1 #10
Re: How to add security to data sources from SQL 2000
I think that you are confusing Remote Development Services, which allows
connectivity with a remote ColdFusion server, and Remote Data Services, which
is something different entirely. The RDS password that you are entering in
Dreamweaver is for Remote Development Services and has nothing to do with your
data sources.
Phil
paross1 Guest
-
mike2004 #11
Re: How to add security to data sources from SQL 2000
so why my data sources load once i enter the rds? please note that these data sources are setup through coldfusion data source tab.
mike2004 Guest
-
paross1 #12
Re: How to add security to data sources from SQL 2000
See [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000053.htm[/url]
If you use Macromedia Dreamweaver MX or Macromedia HomeSite+ to develop
your applications, you can access a remote ColdFusion MX 7 server using HTTP.
However, you must configure Remote Development Services (RDS) in your
integrated development environment (IDE), and RDS must be enabled in ColdFusion
MX 7. Using RDS, IDE users can securely access remote files and data sources,
build SQL queries from these data sources, and debug CFML code.
Note: The ColdFusion Report Builder uses RDS for the Query Builder and for
charting support.
However, for security reasons, Macromedia recommends that you disable RDS
on a production server. To disable it, you must disable the RDSServlet
mapping.
You actually configure your data sources through the ColdFusion Administrator,
but RDS lets you link to them.
paross1 Guest
-
mike2004 #13
Re: How to add security to data sources from SQL 2000
so for me to not allow my assistant to have full power over my datasources i
shouln't open rds on her macromedia dreamweaver mx and instead i should have
her to create her own datasources with her own sql username and password? am i
understanding correct?
mike2004 Guest
-
paross1 #14
Re: How to add security to data sources from SQL 2000
No, you aren't understanding it entirely correctly, but I don't know how else
to explain it to you. If your assistand doesn't have RDS enabled, then she
won't be able to connect to the ColdFusion server at all, at least using your
Dreamweaver development environment. That is why you should have a separate
development ColdFusion AND database so that you can have RDS enabled on
development, and NOT production. She would have full power on your development
database, but normally, who cares? You should be able to restore a dev db from
production, right?
Phil
paross1 Guest
-
mike2004 #15
Re: How to add security to data sources from SQL 2000
lol, sorry Phil if I gave you a hard time on understanding this but i have a
good news for you. i think i finally got it.
so the best way to handle my situation is to separate my development
environment and production environment. currently i only have one environment.
so here's what i think i have to do next to come up with a new develeopment
environment:
1) go to my assistant computer and take off RDS password so she can't have
access to my production environment data sources and other important stuffs.
2) install coldfusion locally on her computer
3) then i will have to create local sql database for her similar to what i
have on my production enviroment. (maybe it's better to just install sql server
2000 on her machine).
4) then enable rds on her machine which is only dealing with her local
database and coldfusion and doesn't know any thing about my production
enviroment.
5) once she's done with her coding and once i know the program is working
properly then at that time i should move it to the production enviroment.
am i good to go?
mike2004 Guest
-
paross1 #16
Re: How to add security to data sources from SQL 2000
I think that you got it! Actually, it is a little easier than you described.
You probably could just create another database on the same SQL Server as a
development version, whichalso makes it easy to "refresh", since you could
take a recent backup of the production database and "restore" it once in a
while as the dev database. On her local version of ColdFusion, just create the
datasources that access the dev database only, so that would be the only
database that she could affect.
Phil :grin;
paross1 Guest
-
mike2004 #17
Re: How to add security to data sources from SQL 2000
Great. thanks for your time. you helped me a lot. have a wonderful weekend.
mike2004 Guest



Reply With Quote

