Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Old password authentication and logout button
kathleen.m.ranes_at_boeing.com said...
> 2)To authenticate their old password before allowing the user to change
> their password to something else.
>
> I've read in the Oracle material that ocipasswordchange() can be used to
> verify the old password, but I'm not using C or Perl and want to be able
> to run it from a PL/SQL package.
>
> Any ideas to accomplish the above would be appreciated.
>
Head on over to http://asktom.oracle.com and search for
"dbms_obfuscation_toolkit" (without quotes). If you pass the clear-text
password, it will return the encrypted password that Oracle uses and you
can compare that against dba_users or some such.
For example, I have the following function that returns the encrypted password:
create or replace function md5_digest (
vin_string IN varchar2
) return varchar2 IS
-- -- Return an MD5 hash of the input string. --
-- /Karsten DBA > retired > DBAReceived on Fri Apr 11 2003 - 16:18:33 CDT
![]() |
![]() |