regex - Create Password Verification Function Oracle 10g -



regex - Create Password Verification Function Oracle 10g -

how possible create function in oracle check password?

the password should contain:

at to the lowest degree 1 upper case

at to the lowest degree 1 lower case

at to the lowest degree 1 digit

at to the lowest degree 8 characters long

doesn't contain 3 consecutive letters of user name

so far, reached following:

create or replace function dd_pwd_fun(username varchar2, password varchar2) homecoming boolean pwd_str varchar2 user_name begin pwd_str = password; user_name=username; if length(pwd_str) < 8 homecoming false; end if; if regexp_like(:pwd_str, '^.*[a-z].*$') -- little letter -z , regexp_like(:pwd_str, '^.*[a-z].*$') -- capital letters , regexp_like(:pwd_str, '^.*[0-9].*$') -- numbers

this first time working regular expressions , need help finding out solution lastly requirement , want know if i'm on right track

oracle provides function compiled under sys password verification , it's complexity. find in $oracle_home/rdbms/admin/utlpwdmg.sql.

with different releases, function has been modified , new functions have been added. in 10g, complexity check quite simple. before 12c, there 2 functions verify_function (10g) , verify_function_11g (11g). 12c, there 4 more functions, ora12c_verify_function , ora12c_strong_verify_function , 2 helper functions complexity_check , string_distance.

since on 10g, write udf enforce stronger complexity check in password verification. search functions , it's content in newer versions, , apply similar logic in udf. have @ http://www.oradba.ch/2013/07/oracle-12c-new-password-verify-function/

regex oracle oracle10g

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -