473,625 Members | 2,668 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 1408
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 _
(SystemInformat ion.ComputerNam e).AddressList( 0).ToString();
///

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
1849
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. My url looks (something)like this http://www.mysite.com/pageb.php?PassedUserName='Hester'&PassedUserOccupation='Tester' I don't want users to be able to type in what ever entries they like, but also I would like to hide the entire list of...
7
2686
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 thereby steal the data. Printing is considered publicly risky and other capture methods of visble screens would be too clumsy and outside the capability of most. So we have been asked to make the source "invisible" or at least extremely...
10
2064
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 came up with (embedding in code, encrypting-decrypting) involve embedding the/another secret in the code. since my problem cannot request a user intervention, I am at a stop.
2
2030
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 up a custom form to accept the input parameters (MS Feature Request!) for the Stored Procedure. We had two problems with MS's
17
2907
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 when the Poodle is upcast to the Dog (in its wildest dreams) it then says "bow wow" where the bernard always says "woof" (see code). Basically, it appears that I'm hiding the poodle's speak method from everything except the poodle. Why would I...
1
3312
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 of rows in the list.
2
4843
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 signature. A class inherits publicly from this base class and redefines one of the two functions in the derived class. In that case, a derived class object cannot access the other base class function that it hasn't redefined. I'm posting a code snippet...
11
4929
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 color="#330099">Claim SSN: </font><b><%# Eval("ClaimSSN") %></b></td> <td colspan="2"></td>
4
5258
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. - Where does the emulator look for the database? Can I copy the file there? My connection string when running the app off my actual device is: this.connectionString = "Data Source=" +...
0
8182
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8635
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8352
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7178
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5570
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4085
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2614
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1800
muto222
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.