Call: +44 (0)7759 277220 Call
Forum

Welcome, Guest. Please Login.
Nov 22nd, 2024, 4:33am
News: Welcome to Pete Finnigan's Oracle security forum
Home | Help | Search | Members | Login
   Pete Finnigan's Oracle Security Forum
   Oracle Security
   Oracle Security
(Moderator: Pete Finnigan)
   Password Verification Function
« Previous topic | Next topic »
Pages: 1  Reply | Notify of replies | Send Topic | Print
   Author  Topic: Password Verification Function  (Read 11660 times)
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Password Verification Function
« on: Sep 20th, 2007, 7:49pm »
Quote | Modify

Hi,
 
Presently, I'm exploring Oracle's password management capabilities. I am attempting to check the strength of a password. I know that I need to create a function (ie. verify_function) in which the checks on the composition/structure of the password is to be performed.  
 
I've attempted to create a package that contains this function, verify_function. The other functions in the package are called from verify_function.  
 
I've set this function as the value of the password verification parameter in a particular profile being used.  
 
PASSWORD_VERIFY_FUNCTION verify_function;
 
These activities were performed in the SYS schema.  
 
However, verify_function function is not being found when I attempt to change the password of a user attached to the particular profile...
 
Is it possible to set this up as I did Huh.....having the verify function in a package ??
 
Any feedback will be welcome....thanka alot..
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Password Verification Function
« Reply #1 on: Sep 21st, 2007, 9:20am »
Quote | Modify

Hi,
 
Can you show us the exact statement you used to attach the function to the profile? - from your simple example you dont qualify the package name but you say the function is in a package?
 
cheers
 
Pete
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Password Verification Function
« Reply #2 on: Sep 25th, 2007, 3:02pm »
Quote | Modify

Hi,
 
I apologize for my tardy reply. I've been away for a short period. As requested....
 
ALTER PROFILE DEFAULT LIMIT
....
....
PASSWORD_VERIFY_FUNCTION Password_Verification.verify_function(username, password, old_password);
 
The package declarations are as follows :-
 
CREATE OR REPLACE PACKAGE Password_Verification AS
 
FUNCTION verify_function (username IN varchar2, password IN varchar2, old_password IN varchar2)
   
RETURN boolean;
...
...
 
CREATE OR REPLACE PACKAGE BODY Password_Verification AS
 
FUNCTION verify_function
(username IN varchar2, password IN varchar2, old_password IN varchar2)
...
...
------------------------
The package was compiled/created successfully.
 
 
When I attempt to execute the ALTER PROFILE statement, the following error is returned :-
 
ora-02376 - Invalid or redundant resource.
 
I assume the package has not been recognized or is deemed invalid Huh  
 
I'm not a DBA.....just working on this particular aspect...new to packages etc..
 
I'm testing to determine what's the source of the problem...the package..the function within the package....not sure.
 
 
 
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Password Verification Function
« Reply #3 on: Oct 9th, 2007, 5:30pm »
Quote | Modify

Any update on this thread? I am doing the exact same thing and experiencing the very same result.  Must the password_verify_function be a standalone function?
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Password Verification Function
« Reply #4 on: Oct 9th, 2007, 9:19pm »
Quote | Modify

I haven't had any feedback on this issue. I'm not sure if the password verification function MUST exist as stand-alone....doesn't seem to be working if a package is used. I would appreciate any assistance if you are successful.
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Password Verification Function
« Reply #5 on: Oct 9th, 2007, 11:54pm »
Quote | Modify

According to OracleMetalink Note:241621.1
 
You cannot use the syntax <package>.<function> or <schema>.<package>.<function> to specify the value for PASSWORD_VERIFY_FUNCTION in ALTER PROFILE / CREATE PROFILE commands because these are not valid syntaxes. You must specify a standalone function owned by SYS .  
 
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Password Verification Function
« Reply #6 on: Oct 10th, 2007, 12:12am »
Quote | Modify

Looks like the syntax demands a function. That function can call a function in another package
 
Code:
create function vf (username IN varchar2, password IN varchar2, old_password IN varchar2) RETURN boolean
 is
  begin
 return Password_Verification.verify_function(username,password,old_password);
 end;
 

Or you can use subprocedures/functions in a function.
Code:
create function vf (username IN varchar2, password IN varchar2, old_password IN varchar2)  
RETURN boolean
is
  function vf1 return boolean is
  begin
     return true;
  end;
begin
 return vf1;
end;

IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Password Verification Function
« Reply #7 on: Oct 10th, 2007, 8:42am »
Quote | Modify

Thanks for your reply Gary, I opened this thread sometime ago intending to reply and then promptly forgot. Thanks again Gary.
 
cheers
 
Pete
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Password Verification Function
« Reply #8 on: Oct 10th, 2007, 3:06pm »
Quote | Modify

I'm thankful for the feedback provided on this issue. I believe I've tried using the stand-alone  function that calls a function in another package.....can't remember what the result was...need to do it again.....
 However, could you indicate if you've been successful using this approach ? Thanks.
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Password Verification Function
« Reply #9 on: Oct 11th, 2007, 9:21am »
Quote | Modify

Hi,
 
Yes i have used an approach that uses a standalone function owned by SYS that then calls other functions in a package.
 
cheers
 
Pete
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Password Verification Function
« Reply #10 on: Nov 26th, 2007, 9:02pm »
Quote | Modify

You probably have your answer already but if not, here's the approach I use:
 
As sysdba:
CREATE OR REPLACE FUNCTION  pwd_verify
(username varchar2,
  password varchar2,
  old_password varchar2)
  RETURN boolean IS
...
...
END;
 
Then you can assign it to the profile either as you create the profile or afterwards.  
 
Here's the post profile creation format:
ALTER PROFILE default LIMIT PASSWORD_VERIFY_FUNCTION pwd_verify;
 
An interesting note is I modified my function to require a minimum of 15 character passwords.  OEM does not seem to pick it up very well.
 
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pages: 1  Reply | Notify of replies | Send Topic | Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board
  • PFCLScan PFCLScan

    Simply connect PFCLScan to your Oracle database and it will automatically discover the security issues that could make your Oracle database vulnerable to attack and to the potential loss of your data.

  • PFCL Obfuscate PFCLObfuscate

    PFCLObfuscate is the only tool available that can automatically add license controls to your PL/SQL code. PFCLObfuscate protects your Intellectual Property invested in your PL/SQL database code.

  • PFCLCode PFCLCode

    PFCLCode is a tool to allow you to analyse your PL/SQL code for many different types of security issues. PFCLCode gives you a detailed review and reports and includes a powerful colour syntax highlighting code editor

  • PFCLForensics PFCLForensics

    PFCLForensics is the only tool available to allow you to do a detailed live response of a breached Oracle database and to then go on and do a detailed forensic analysis of the data gathered.

  • Products We resell PFCLReselling

    PeteFinnigan.com Limited has partnered with a small number of relevant companies to resell their products where they enhance or compliment what we do

  • PFCLATK PFCLATK

    PFCLATK is a toolkit that allows detailed pre-defined policy driven audit trails for your Oracle database. The toolkit also provides for a centralised audit trail and centralised activity reporting

  • PFCLCookie PFCLCookie

    PFCLCookie is a useful tool to use to audit your websites for tracking cookies. Scan websites in a natural way using powerful browser driven scanner

  • PFCL Training PFCLTraining

    PFCLTraining is a set of expert training classes for you, aimed at teaching how to audit your own Oracle database, design audit trails, secure code in PL/SQL and secure and lock down your Oracle database.

  • PFCL Services PFCLServices

    Choose PFCLServices to add PeteFinnigan.com Ltd to your team for your Oracle Security needs. We are experts in performing detailed security audits, data security design work and policy creation

  • PFCLConsulting PFCLConsulting

    Choose PFCLConsulting to ask PeteFinnigan.com Limited to set up and use our products on your behalf

  • PFCLCustom PFCLCustom

    All of our software products can be customised at a number of levels. Choose this to see how our products can be part of your products and services

  • PFCLCloud PFCLCloud

    Private cloud, public cloud, hybrid cloud or no cloud. Learn how all of our services, trainings and products will work in the cloud

  • PFCLUserRights PFCLUserRights

    PFCLUserRights allows you to create a very detailed view of database users rights. The focus of the reports is to allow you to decide what privileges and accounts to keep and which to remove.

  • PFCLSTK PFCLSTK

    PFCLSTK is a toolkit application that allows you to provide database security easily to an existing database. PFCLSTK is a policy driven toolkit of PL/SQL that creates your security

  • PFCLSFTK PFCLSFTK

    PFCLSFTK is a toolkit that solves the problem of securing third party applications written in PL/SQL. It does this by creating a thin layer between the application and database and this traps SQL Injection attempts. This is a static firewall.

  • PFCLSEO PFCLSEO

    PFCLSEO is a web scanner based on the PFCLScan technology so that a user can easily scan a website for technical SEO issues