Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Create oracle users PL/SQL procedure

Re: Create oracle users PL/SQL procedure

From: Vincent O'Neill <vincent_oneill_at_ntlworld.com>
Date: 24 Apr 2002 00:36:07 -0700
Message-ID: <125a7420.0204232336.137ffd61@posting.google.com>


markg_at_mymail.co.uk (Mark) wrote in message news:<ddb31653.0204230017.a670e17_at_posting.google.com>...
> Hi,
>
> I read some of the posts in this thread from Daniel, Niall and Sybrand
> and partly agree and disagree with the comments.
>
> I personally cannot see why end users cant create other users for
> themselves. However, when designing your procedure to do it, be aware
> of security issues.
>
> I have done it for a particular project, basically one or two
> appointed admin users can create other users. In my code, I use
> dynamis SQL to create the Oracle user and have dynamic SQL to only
> grant them access to tables which they need to run the application.
> The grants are done via a predefined role. They cannot see System
> tables or get up to anything they shouldn't (if they ever got access
> to tools, they have locked-down PCs).
>
> The users only need a GRANT EXECUTE on the procedures which create a
> user, they will not need a specific CREATE ANY USER role assigned to
> them since the procedure will be run with the rights of the owner of
> the procedure (ie definer rights).
>
> In short, no problem for me, you can try it yourself but be aware of
> issues.
>
> Mark
>
>
> "VINCENT ONEILL" <voneill_at_ntlworld.com> wrote in message news:<mZVw8.6487$xn.291466_at_news8-gui.server.ntli.net>...
> > Hi,
> >
> > Does anyone know or have a PL/SQL procedure to create users and add roles ?
> > I would like to use a procedure and grant access to it for non DBA users so
> > that they do not have to have the system/sys passwords to create user
> > accounts.
> >
> > TIA
> >
> > Vincent

Hi,

Thanks for the input.

I agree that there are security implications to this. But it will be executed only by Database Operators and all actions will be go into an audit table.

Thanks again

Vincent

Post closed Received on Wed Apr 24 2002 - 02:36:07 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US