Unix Technical Forum

RE: No ODBC access to Informix...

This is a discussion on RE: No ODBC access to Informix... within the Informix forums, part of the Database Server Software category; --> I have the same situation here. I have set up views to my production database with read-only access to ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 08:02 AM
Bill Dare
 
Posts: n/a
Default RE: No ODBC access to Informix...


I have the same situation here. I have set up views to my production
database with read-only access to the data. The ODBC configuration for the
users PCs are then configured to look at those read-only views. Of course
any user that knows how could just change their ODBC config to point to
whichever database they want. Our NT admins tell me there is no way to
secure the ODBC configuration.

I also run a script on my DB server to check that the only users connected
to my production database are those from our application server.

I also have a report instance which is refreshed daily at 0700. The purpose
of this instance is not for security, although it is read-only. Management
wanted a static instance of the database to run reports from so that
everyone who ran a report would have the same data even if not generated at
the same time. As far as I know there is no way to roll the logs forward
daily to refresh this report instance. I do a physical restore from my
daily level 0 each morning and then roll the logs forward to my
point-in-time of 0700.

Regards,
Bill

> -----Original Message-----
> From: wolf.duttlinger-manger@gmx.de [SMTP:wolf.duttlinger-manger@gmx.de]
> Sent: Monday, November 08, 2004 9:36 AM
> To: informix-list@iiug.org
> Subject: No ODBC access to Informix...
>
> Hello all,
>
> after googling I saw that the same discussion came up in 1997/98 - but
> did not lead a satisfactory result for me....
>
> Situation:
> We have some kind of a pre-fab ERP solution in house. From any PC a
> telnet session is used to connect to the Solaris and to start the
> application.
>
> The application uses the Solaris user ID to identify itself to the
> database - and hence there are certain rights, that those users have.
> E.g. a user may well have the right to change a record using the
> application interface's business logic - BUT may not have the right to
> change a row arbitrarily.
>
> So far reporting has been done using MS Query/ODBC. Of course any user
> could simply go in MS Query and generate any SQL code - basically
> allowing him/her to circumvent the application's business logic....
>
> I do not know Informix - but from my understanding there must be a way
> to totally disable ODBC access towards this database. I know a little
> about DB2 and Oracle and from there I have the following picture:
>
> - every box may have one or more instances of a database "engine"
> - every engine may manage one or more databases
>
> Is it like this with Informix (5.01)? Is there a "listener" per
> engine, that can be tweaked the way I want it?
>
> We want to create a "report" DB - either on a seperate machine or -
> preferably - on the same machine, where MS Query access would be
> allowed....
>
> So my ideal picture looks like this:
> - one Solaris box
> - two instances of Informix loaded
> --- one w/o ODBC access
> --- one w/ ODBC access
> - every instance managing one DB
> - applying the "redo"-logs of the w/o ODBC engine towards the other DB
> gives a time-shifted "copy" of the production DB.
>
> Does this make sense at all?????????????
>
> Any postings appreciated!
>
> Regards
> Wolf Duttlinger-Manger

sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 08:02 AM
Art S. Kagel
 
Posts: n/a
Default RE: No ODBC access to Informix...

On Mon, 08 Nov 2004 14:00:45 -0500, Bill Dare wrote:

WAIT just one minute there cowboy! Why not just disable the user's
update/insert/delete permissions on the database itself! The 'business' app
can log into the database on the users' behalf using a different ID which is
priveleged to modify the data. If doing that with a single login for all,
then create another small read-only database that maps real user-id and
password to a unique alter-ego user-id which will be used to connect to the DB
server.

Art S. Kagel

>> I do not know Informix - but from my understanding there must be a way to
>> totally disable ODBC access towards this database. I know a little about
>> DB2 and Oracle and from there I have the following picture:

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 08:02 AM
Wolf
 
Posts: n/a
Default Re: No ODBC access to Informix...

Yeeeeha!!!!

Peng, peng!!!

<G>

I totally agree to this Art - only - the ERP is there and it works the
way it works... i.e. the users log on to the DB using their! uid - and
therefore have to have the rights they have.....

So - also to the others that posted - I do not see a solution -
"hiding" a database is no solution - we have to mitigate the risk of a
user changing the data outside the ERP.....

Again - please does anybody have an idea how to block ODBC access to a
Solaris based Informix *** at all *** - i.e. I do not want to allow
_ANY_ ODBC calls to be coming in to this box - somehow configuring a
"listener" - if there is such thing in Informix......

Regards
Wolf

"Art S. Kagel" <kagel@bloomberg.net> wrote in message news:<pan.2004.11.08.15.48.49.861051.1355@bloomber g.net>...
> On Mon, 08 Nov 2004 14:00:45 -0500, Bill Dare wrote:
>
> WAIT just one minute there cowboy! Why not just disable the user's
> update/insert/delete permissions on the database itself! The 'business' app
> can log into the database on the users' behalf using a different ID which is
> priveleged to modify the data. If doing that with a single login for all,
> then create another small read-only database that maps real user-id and
> password to a unique alter-ego user-id which will be used to connect to the DB
> server.
>
> Art S. Kagel
>
> >> I do not know Informix - but from my understanding there must be a way to
> >> totally disable ODBC access towards this database. I know a little about
> >> DB2 and Oracle and from there I have the following picture:

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 08:02 AM
Art S. Kagel
 
Posts: n/a
Default Re: No ODBC access to Informix...

On Tue, 09 Nov 2004 05:03:31 -0500, Wolf wrote:

A listener in IDS is just a thread in the engine so there's no way to replace
it with one that only allows read-access.

Art S. Kagel

> Yeeeeha!!!!
>
> Peng, peng!!!
>
> <G>
>
> I totally agree to this Art - only - the ERP is there and it works the way
> it works... i.e. the users log on to the DB using their! uid - and therefore
> have to have the rights they have.....
>
> So - also to the others that posted - I do not see a solution - "hiding" a
> database is no solution - we have to mitigate the risk of a user changing
> the data outside the ERP.....
>
> Again - please does anybody have an idea how to block ODBC access to a
> Solaris based Informix *** at all *** - i.e. I do not want to allow _ANY_
> ODBC calls to be coming in to this box - somehow configuring a "listener" -
> if there is such thing in Informix......
>
> Regards
> Wolf
>
> "Art S. Kagel" <kagel@bloomberg.net> wrote in message
> news:<pan.2004.11.08.15.48.49.861051.1355@bloomber g.net>...
>> On Mon, 08 Nov 2004 14:00:45 -0500, Bill Dare wrote:
>>
>> WAIT just one minute there cowboy! Why not just disable the user's
>> update/insert/delete permissions on the database itself! The 'business'
>> app can log into the database on the users' behalf using a different ID
>> which is priveleged to modify the data. If doing that with a single login
>> for all, then create another small read-only database that maps real
>> user-id and password to a unique alter-ego user-id which will be used to
>> connect to the DB server.
>>
>> Art S. Kagel
>>
>> >> I do not know Informix - but from my understanding there must be a way
>> >> to totally disable ODBC access towards this database. I know a little
>> >> about DB2 and Oracle and from there I have the following picture:

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 08:03 AM
Wolf
 
Posts: n/a
Default Re: No ODBC access to Informix...

Hi there,

I just was informed that providing an empty 'sqlhosts' file would
prevent anybody from accessing the box.

Now -
in sqlhosts a "nettype" and some "options" are entered. Are there any
chances to narrow down the scope of "neglection" using these
parameters? Like - nettype not including "ODBC-net access", or options
stating only read-oinly access....

Next -
the 'sqlhosts' file - is it one per box, or one per "instance" - i.e.
would it be possible to install two dbm-instances on one machine with
two different sqlhosts files?

(I know RTFM - but - I don't have them, and I basically do not have
time to become a Informix admin.....)

Regards
Wolf

wolf.duttlinger-manger@gmx.de (Wolf) wrote in message news:<6e942e26.0411090203.1f43e57d@posting.google. com>...
> Yeeeeha!!!!
>
> Peng, peng!!!
>
> <G>
>
> I totally agree to this Art - only - the ERP is there and it works the
> way it works... i.e. the users log on to the DB using their! uid - and
> therefore have to have the rights they have.....
>
> So - also to the others that posted - I do not see a solution -
> "hiding" a database is no solution - we have to mitigate the risk of a
> user changing the data outside the ERP.....
>
> Again - please does anybody have an idea how to block ODBC access to a
> Solaris based Informix *** at all *** - i.e. I do not want to allow
> _ANY_ ODBC calls to be coming in to this box - somehow configuring a
> "listener" - if there is such thing in Informix......
>
> Regards
> Wolf
>
> "Art S. Kagel" <kagel@bloomberg.net> wrote in message news:<pan.2004.11.08.15.48.49.861051.1355@bloomber g.net>...
> > On Mon, 08 Nov 2004 14:00:45 -0500, Bill Dare wrote:
> >
> > WAIT just one minute there cowboy! Why not just disable the user's
> > update/insert/delete permissions on the database itself! The 'business' app
> > can log into the database on the users' behalf using a different ID which is
> > priveleged to modify the data. If doing that with a single login for all,
> > then create another small read-only database that maps real user-id and
> > password to a unique alter-ego user-id which will be used to connect to the DB
> > server.
> >
> > Art S. Kagel
> >
> > >> I do not know Informix - but from my understanding there must be a way to
> > >> totally disable ODBC access towards this database. I know a little about
> > >> DB2 and Oracle and from there I have the following picture:

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-20-2008, 08:03 AM
Jonathan Leffler
 
Posts: n/a
Default Re: No ODBC access to Informix...

Wolf wrote:
> I just was informed that providing an empty 'sqlhosts' file would
> prevent anybody from accessing the box.
>
> Now -
> in sqlhosts a "nettype" and some "options" are entered. Are there any
> chances to narrow down the scope of "neglection" using these
> parameters? Like - nettype not including "ODBC-net access", or options
> stating only read-oinly access....


Nope. There are a few options, but ...

There are logically two sqlhosts files - the one used by the client
and the one used by the server - though they're often the same file.
You can control the one used by the server more carefully and fully
than you can the one used by the client.

> Next -
> the 'sqlhosts' file - is it one per box, or one per "instance" - i.e.
> would it be possible to install two dbm-instances on one machine with
> two different sqlhosts files?



Normally, one per INFORMIXDIR, or one per box. But anybody can
provide their own for the client side - set INFORMIXSQLHOSTS in the
environment on Unix. ODBC provides for DSN-less connections, and the
DSN corresponds to an sqlhosts entry.

No - empty sqlhosts files are not a reliable control (security through
obscurity at best).

> (I know RTFM - but - I don't have them, and I basically do not have
> time to become a Informix admin.....)
>
> Regards
> Wolf
>
> wolf.duttlinger-manger@gmx.de (Wolf) wrote in message news:<6e942e26.0411090203.1f43e57d@posting.google. com>...
>
>>Yeeeeha!!!!
>>
>>Peng, peng!!!
>>
>><G>
>>
>>I totally agree to this Art - only - the ERP is there and it works the
>>way it works... i.e. the users log on to the DB using their! uid - and
>>therefore have to have the rights they have.....
>>
>>So - also to the others that posted - I do not see a solution -
>>"hiding" a database is no solution - we have to mitigate the risk of a
>>user changing the data outside the ERP.....
>>
>>Again - please does anybody have an idea how to block ODBC access to a
>>Solaris based Informix *** at all *** - i.e. I do not want to allow
>>_ANY_ ODBC calls to be coming in to this box - somehow configuring a
>>"listener" - if there is such thing in Informix......
>>
>>Regards
>>Wolf
>>
>>"Art S. Kagel" <kagel@bloomberg.net> wrote in message news:<pan.2004.11.08.15.48.49.861051.1355@bloomber g.net>...
>>
>>>On Mon, 08 Nov 2004 14:00:45 -0500, Bill Dare wrote:
>>>
>>>WAIT just one minute there cowboy! Why not just disable the user's
>>>update/insert/delete permissions on the database itself! The 'business' app
>>>can log into the database on the users' behalf using a different ID which is
>>>priveleged to modify the data. If doing that with a single login for all,
>>>then create another small read-only database that maps real user-id and
>>>password to a unique alter-ego user-id which will be used to connect to the DB
>>>server.
>>>
>>>Art S. Kagel
>>>
>>>
>>>>>I do not know Informix - but from my understanding there must be a way to
>>>>>totally disable ODBC access towards this database. I know a little about
>>>>>DB2 and Oracle and from there I have the following picture:



--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-20-2008, 08:03 AM
Richard Spitz
 
Posts: n/a
Default Re: No ODBC access to Informix...

wolf.duttlinger-manger@gmx.de (Wolf) schrieb:

>Again - please does anybody have an idea how to block ODBC access to a
>Solaris based Informix *** at all *** - i.e. I do not want to allow
>_ANY_ ODBC calls to be coming in to this box - somehow configuring a
>"listener" - if there is such thing in Informix......


Wolf,

you seem to have a misconception about the way ODBC works.

From the database engine point of view, there is no difference at
all between a "native" connection and an ODBC connection. ODBC is
a client-side thing, which provides a (more or less) vendor-independent
API for database access. It's the ODBC driver's responsibility to
translate the ODBC function calls into the vendor-specific calls
to the database engine.

Unfortunately, there is no way you can prevent a user that has
privileges on an informix database to misuse these privileges by way of
ODBC access. AFAIK, the Openlink ODBC drivers provide some mechanism to
fine-tune ODBC access privileges, but any Windows user could still install
Informix's ODBC driver and then use his Solaris credentials to connect
to the database.

Do you have any chance to change the Solaris application that it doesn't
use the logged-in user's account to connect to the database, but another
account and password that is unknown to your users?

Regards, Richard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com