Created
January 3, 2013 03:32
-
-
Save skhatri/4440542 to your computer and use it in GitHub Desktop.
bulk update crowd user password for md5 directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| update cwd_user set credential = concat('{MD5}', | |
| utl_raw.cast_to_varchar2(utl_encode.base64_encode | |
| (dbms_obfuscation_toolkit.md5 (input => utl_raw.cast_to_raw('password'))))) | |
| where directory_id = (select id from cwd_directory where lower_directory_name = 'user-md5-directory') | |
| / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment