dbTalk Databases Forums  

autorization uplift in stored procedure

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss autorization uplift in stored procedure in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Werner
 
Posts: n/a

Default autorization uplift in stored procedure - 04-11-2006 , 04:43 AM






Hi,

is it possible to implement a stored procedure
executing with a higher authorization than the
calling client connection?
Background: I'd like to store an applications
authorizations in a database table. Of course
access to this table must be very restricted.
Having a low restricted stored procedure using
a username and password as argument to asquire
and pass back an access level from this highly
restricted table may be one solution for this.
I'd like to avoid the need to have one DB user
for every application user or group.

Using ASA 9.0.2.3267 on Windows and
Windows CE.

TIA

Chris Werner



Reply With Quote
  #2  
Old   
Breck Carter [Team iAnywhere]
 
Posts: n/a

Default Re: autorization uplift in stored procedure - 04-11-2006 , 06:44 AM






That's actually how stored procedures *work*... they execute with the
permissions of the procedure owner, not the procedure caller. You then
GRANT EXECUTE to the user ids doing the calling; that means they can
call the procedure that does the SELECT even though they cannot
directly do a SELECT themselves. Some folks bury ALL their SQL inside
procedures and GRANT nothing but EXECUTE... not an approach that is
power-user-friendly, but AFAIK it certainly satisfies your
requirement.

Do I hear a "Woohoo!" ? <g>

Breck


On 11 Apr 2006 02:43:15 -0700, "Chris Werner"
<cw{please_no_spam}ATf-s.de> wrote:

Quote:
Hi,

is it possible to implement a stored procedure
executing with a higher authorization than the
calling client connection?
Background: I'd like to store an applications
authorizations in a database table. Of course
access to this table must be very restricted.
Having a low restricted stored procedure using
a username and password as argument to asquire
and pass back an access level from this highly
restricted table may be one solution for this.
I'd like to avoid the need to have one DB user
for every application user or group.

Using ASA 9.0.2.3267 on Windows and
Windows CE.

TIA

Chris Werner

--
Breck Carter [Team iAnywhere]
RisingRoad SQL Anywhere and MobiLink Professional Services
www.risingroad.com
The book: http://www.risingroad.com/SQL_Anywhe...ers_Guide.html
breck.carter (AT) risingroad (DOT) com


Reply With Quote
  #3  
Old   
Chris Werner
 
Posts: n/a

Default Re: autorization uplift in stored procedure - 04-11-2006 , 06:54 AM



Quote:
That's actually how stored procedures *work*...
<low>Woohoo!</low>

No full blast here because my question seems to
be on the same level as "Is there a possibility in
ASA to store record like data in tables?" ;-)

<louder>Thanks!</louder>

Chris Werner




"Breck Carter [Team iAnywhere]" <NOSPAM__bcarter (AT) risingroad (DOT) com> schrieb im
Newsbeitrag news:c61n321i4e5totfg13db9lp3odtko12ubm (AT) 4ax (DOT) com...
Quote:
That's actually how stored procedures *work*... they execute with the
permissions of the procedure owner, not the procedure caller. You then
GRANT EXECUTE to the user ids doing the calling; that means they can
call the procedure that does the SELECT even though they cannot
directly do a SELECT themselves. Some folks bury ALL their SQL inside
procedures and GRANT nothing but EXECUTE... not an approach that is
power-user-friendly, but AFAIK it certainly satisfies your
requirement.

Do I hear a "Woohoo!" ? <g

Breck


On 11 Apr 2006 02:43:15 -0700, "Chris Werner"
cw{please_no_spam}ATf-s.de> wrote:

Hi,

is it possible to implement a stored procedure
executing with a higher authorization than the
calling client connection?
Background: I'd like to store an applications
authorizations in a database table. Of course
access to this table must be very restricted.
Having a low restricted stored procedure using
a username and password as argument to asquire
and pass back an access level from this highly
restricted table may be one solution for this.
I'd like to avoid the need to have one DB user
for every application user or group.

Using ASA 9.0.2.3267 on Windows and
Windows CE.

TIA

Chris Werner


--
Breck Carter [Team iAnywhere]
RisingRoad SQL Anywhere and MobiLink Professional Services
www.risingroad.com
The book:
http://www.risingroad.com/SQL_Anywhe...ers_Guide.html
breck.carter (AT) risingroad (DOT) com



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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.