Re: Connecting to a remote sbs from a website?
- From: "Cliff Galiher" <cgaliher@xxxxxxxxx>
- Date: Fri, 11 Jul 2008 14:58:00 -0600
Your solution only works if your web app doesn't need to write data to the database. That is an unreasonable limitation in many environments.
With that said, SQL server has always supported SQL authentication which does NOT require an SBS username/password. That can be configured independently in the SQL server administrator. And security by preventing writes to the database is not real security. Somehow the data on the master server gets updated. Even if it is a times script that goes and retrieves data, of the data is malformed, it'll still break your system.
NOTHING replaces secure coding practices. Validate data input, check our boundaries, if you insist in coding in C make sure your data is the same size as your pointers to prevent buffer overruns, etc etc. If you are doing your job as a coder then you'll be fine. And if you aren't, somebody will find a way to break you, regardless of how well you think you've secured your master database. :)
-Cliff
"Joe" <joe@xxxxxxxxxxxxxx> wrote in message news:OOHlWDt4IHA.3612@xxxxxxxxxxxxxxxxxxxxxxx
T.Mthimkulu wrote:Hi Cliff,
Thanks for that..!Yes,I am running a SBS premuim 2003.By creating a new instance,do you mean,creating a new table?By the sounds of it,there wont be any implications of connecting to a remote SBS then?What are the normal required parameters for making an SQL server connection?
If you don't know that...
I've never done it, but I'd assume you need to log on to SQL Server with a valid SBS user name and password, one that has the required read and write permissions on the database table(s). Your programming/scripting language will have library calls to make and break the connection and to carry out SQL transactions.
Please bear in mind that what you are doing is the equivalent of running, not with scissors, but with several open cut-throat razors. An active web page linked to an SQL database running on an organisation's main/only business server is just the sort of thing a cracker would be overjoyed to find. I take it you know all there is to know about cross-site scripting and SQL injection?
I've only done this once, and here's the coward's way in outline:
-A master SQL database running on the in-house server with *no* remote access allowed
-A slave SQL database running on a commercial web host's server
-Timed scripts run on the master to update the slave with any changed records on the master, via email
At no time is anything open on the master or slave servers, all data movement is initiated from the servers themselves. And if the slave ever gets cracked, the web host re-images it and the full database gets backed up on the master and restored to the slave. No data is ever passed back to the master in this system, though this would have been easy to do, again using email but in the other direction. A timed script running on the receiving server pulls in the email from an IMAPS server and updates the database from it, after certain integrity checks.
It's not the only way, nor even the best, but it's resilient and pretty much bomb-proof and requires no listening servers, no open ports at either end except the slave web server itself. Best of all, absolutely nothing that happens to the web server can in any way compromise the in-house server, no matter how full of holes my web scripts may be.
Occasionally, the master system loses Internet access, but just sends out the queued emails when it's back online. It's been running with only minor database housekeeping for nearly two years, without any faults or data loss. It doesn't happen to run on Windows, for a reason not related to security, but I'm sure a Windows equivalent would be no more difficult to organise.
.
- Follow-Ups:
- References:
- Re:Connecting to a remote sbs from a website?
- From: T.Mthimkulu
- Re: Re:Connecting to a remote sbs from a website?
- From: Lanwench [MVP - Exchange]
- Re: Re:Connecting to a remote sbs from a website?
- From: T.Mthimkulu
- Re: Re:Connecting to a remote sbs from a website?
- From: Lanwench [MVP - Exchange]
- Re: Re:Connecting to a remote sbs from a website?
- From: Cliff Galiher
- Re: Re:Connecting to a remote sbs from a website?
- From: T.Mthimkulu
- Re: Connecting to a remote sbs from a website?
- From: Joe
- Re:Connecting to a remote sbs from a website?
- Prev by Date: Re: email meeting request fail to reach recipient
- Next by Date: Re: Can't share folders
- Previous by thread: Re: Connecting to a remote sbs from a website?
- Next by thread: Re: Connecting to a remote sbs from a website?
- Index(es):
Relevant Pages
|