Unix Technical Forum

IDS 10

This is a discussion on IDS 10 within the Informix forums, part of the Database Server Software category; --> Currently on 9.4.FC5 Solaris 9 SE6320. Anticipating upgrade to IDS10. Any advice or suggestions? I did some very limited ...


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, 09:41 AM
Campbell, John \(GE Consumer Finance\)
 
Posts: n/a
Default IDS 10


Currently on 9.4.FC5 Solaris 9 SE6320. Anticipating upgrade to IDS10. Any advice or suggestions? I did some very limited testing but had to move onto more pressing matters. I could not get the "default roles at database level" to work any differently than they do now. I thought I could simply create a role, grant that role to a valid user and that role would be his default permissions when he connected to the database (that and anything else granted to him individually ). Is that not how it is supposed to work?



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, 09:41 AM
david@smooth1.co.uk
 
Posts: n/a
Default Re: IDS 10


The new default role in IDS 10 is applied to a user at connection time.
It is at the session level not the database level.

You need to "grant default role dave to <user>;"

I've just done this against IDS 10.00.TC1TL on Windows XP:-


In a dbaccess session as user djw;

create database djw;
database djw;
create table a ( b int);
revoke all on a from public;
grant connect to o2;

in a separate dbaccess session:-

Connection-> Connect -> select database server
input user name o2 and password
select database djw

select * from a
# ^
# 272: No SELECT permission.
#

In the first dbaccess session:-

create role dave;
grant select on a to dave;
grant default role dave to o2;

In the second dbaccess session

Connection-> Connect -> select database server
input user name o2 and password
select database djw

select * from a;

b

1

In first dbaccess session:-

revoke default role from o2

In second dbaccess session:-

select * from a;


b

1

NOTE: User has not reconnected so they retain select privilege since
their
sessions still has that role as it's current role. However reconnect
and:-

Connection-> Connect -> select database server
input user name o2 and password
select database djw

select * from a
# ^
# 272: No SELECT permission.
#

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 09:14 AM.


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