473,498 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

hiding a db connection string

Hi,

I'm having a problem that I've been working with for the last week, I'm
not having any luck, I'm hoping someone can help me. Anything would be
appreciated.

I have a setup where we currently use a single sign on to our oracle db
for our client/server VB6 apps. We currently have a DLL that the VB6
apps call to get the production connection string. What this afforded
us was the ability to change the production db password for all
applications at once, without having to recompile and distribute all
the apps (the dll was shared on the network). Yes I realize a single
DB signon is bad, and that this setup only affords us security through
obfuscation, but for the short being, it was working.

As we move to .NET, I wanted to construct an environment where
applications (all c/s launched from a network share) could only connect
to the production server if the application was launched from the
production application server (fileserver). Seemingly a simple task,
but all the securities and whatnot in .NET are ensuring this is not
going to be an easy feat.

For example, some of the things I have tried.

I created a DLL in .NET, having the DLL reflect on the calling assembly
to get the calling assembly's base directory, then hand out the
connection string based on that. Of course, this works, but the DLL
either has to be in the base path or below it, or strongly named, and
when strongly named, the calling app has to be re-compiled against any
DLL changes, which kills my requirement of not having to recompile all
apps with a password change.

Then I created a remoted SAO Singleton, hosted on our IIS server.
Figuring I could either (a) somehow "reflect" on the caller to see
where it's being launched from, or (b) find a way for the caller to
specify to the remote object where it's calling from (short of actually
passing the path from the application to the remote object, which would
just be obscure, and I'm not keen on obscurity with .NET having a
decompiler distributed with it). I can't do it based on IP address,
because that doesn't give me the file server the application was
launched from, just the client that the application is running on.

I'm trying to find an object that the application may have with the
launch path in it as read only property, and maybe I can send that up
with the remote method call... but as I'm looking for these
off-the-wall solutions, I'm wondering if there just isn't a better way
to handle this situation.

Again, I would greatly appreciate any input that I can get on this
issue... any corrections to my assumptions or results would be
appreciated as well... This post is in this group because I can't
quite nail it to a design issue, .net issue, or c# issue, but I'm
working with .NET VS2005 and C#.

Thanks,
Mike

Dec 6 '05 #1
1 1396
Anonymike,

Maybe it is better next time only to describe your problem.

I assume it is this
I wanted to construct an environment where
applications (all c/s launched from a network share) could only connect
to the production server if the application was launched from the
production application server (fileserver).


Why than not add the IP address or even better machinename from that server
in your procedure?

http://msdn2.microsoft.com/en-us/lib...chinename.aspx

\\\
string IPAdres = System.Net.Dns.Resolve _
(SystemInformation.ComputerName).AddressList(0).To String();
///

I hope this helps,
Cor
Dec 6 '05 #2

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

Similar topics

3
1843
by: plittle1970 | last post by:
Hi there. My website passes information from one page to another via the URL. it DOESN'T use forms or post/get but rather I build up the url in page A as a string and use it to link to page B. ...
7
2678
by: Les Juby | last post by:
I have a customer with an extensive intranet which contains a lot of sensitive company data. The client is concerned that any employee could download source code back to removable storage and...
10
2034
by: Picho | last post by:
Hi all, Lets say I have a "secret" I wish to "hide", lets say a database password. For the more detailed problem, a web application/service that uses a connection string. all the solutions I...
2
2021
by: Noloader | last post by:
Hello, Access XP, SQL Server 2000 Is it possible to hide a SP under Queries in Access, yet still be able to Execute it from Access? (Similar to hiding Tables, then using Views) We hooked...
17
2894
by: Bob Weiner | last post by:
What is the purpose of hiding intead of overriding a method? I have googled the question but haven't found anything that makes any sense of it. In the code below, the only difference is that...
1
3303
by: marfi95 | last post by:
Is there a way to hide a row in a listview w/o removing it ? Or if I have to use a hidden listview to store another view, a way to duplicate the contents extremely fast. there could be thousands...
2
4820
by: developer.new | last post by:
Hi I have a question regarding this concept I learned about recently: Name Hiding. Here's what I've come across: There is a base class with two functions with the same name but different...
11
4914
by: JJ297 | last post by:
I want to hide the Pin field below in my repeater. How do I do this? <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <tr> <td><font...
4
5249
LoanB
by: LoanB | last post by:
Hi gang, Im busy writing my firs Windows Mobile 6 Application. - I'm a beginner ok. My first problem: When I run the app through the emulator I get an error: Database file cannot be found. ...
0
7004
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6890
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
7379
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...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4915
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
4593
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
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.