|
|

楼主 |
发表于 2006/7/10 11:04:57
|
显示全部楼层
这是包FND_WEB_SEC的描述,修改密码用:
FUNCTION change_password(p_user IN VARCHAR2,
p_old_pwd IN VARCHAR2,
p_new_pwd1 IN VARCHAR2,
p_new_pwd2 IN VARCHAR2) RETURN VARCHAR2;
-- Changes the password of an applications user without verifying
-- the existing pasword. Returns 'Y' on success and 'N' on failure.
FUNCTION change_password(p_user IN VARCHAR2, p_new_pwd IN VARCHAR2)
- CREATE OR REPLACE PACKAGE fnd_web_sec AUTHID CURRENT_USER AS
- /* $Header: AFSCJAVS.pls 115.27 2004/12/15 23:13:08 mskees ship $ */
- /*
- * Validate_login
- * Test a username and password without updating audit tables.
- * Only use this api to authenticate a user password when you do not
- * expect that user to login or create a session.
- *
- * NOTE: This api only works for LOCAL users (i.e., for users who are
- * not SSO enabled.)
- * IN
- * p_user - username
- * p_password - password
- * RETURNS
- * 'Y' if user/password is valid, 'N' if not
- * RAISES
- * Never raises exceptions, returns 'N' with a message on the
- * message stack if an error is encountered.
- */
- FUNCTION validate_login(p_user IN VARCHAR2, p_pwd IN VARCHAR2)
- return VARCHAR2;
- /*
- * Validate_login
- * Validate a username and password, and update audit tables with
- * results. Use this api if the user is expected to login.
- *
- * NOTE: This api only works for LOCAL users (i.e., for users who are
- * not SSO enabled.)
- * IN
- * p_user - username
- * p_password - password
- * p_loginfrom - flag indicating a login UI was used for access
- * OUT
- * p_loginID - Login ID of audit record (if successful)
- * p_expired - Expiration flag to check whether user's password has expired.
- * RETURNS
- * 'Y' if user/password is valid, 'N' if not
- * RAISES
- * Never raises exceptions, returns 'N' with a message on the
- * message stack if an error is encountered.
- */
- FUNCTION validate_login(p_user IN VARCHAR2,
- p_pwd IN VARCHAR2,
- p_loginID OUT nocopy NUMBER,
- p_expired OUT nocopy VARCHAR2,
- p_loginfrom IN VARCHAR2 default null)
- return VARCHAR2;
- /* This procedure logs an unsuccessful_login attempt which would normally come from
- * FUNCTION validate_login(p_user IN VARCHAR2,
- * p_pwd IN VARCHAR2,
- * p_loginID OUT NUMBER,
- * p_expired OUT VARCHAR2)
- */
- PROCEDURE unsuccessful_login(userID IN NUMBER);
- -- Creates a new application user in the FND_USER table.
- -- Returns 'Y' on success and 'N' on failure.
- -- If successful, returns the new user_id.
- FUNCTION create_user(p_user IN VARCHAR2,
- p_pwd IN VARCHAR2,
- p_user_id OUT nocopy NUMBER) RETURN VARCHAR2;
- -- Changes the password of an applications user after verifying
- -- the existing pasword. Returns 'Y' on success and 'N' on failure.
- FUNCTION change_password(p_user IN VARCHAR2,
- p_old_pwd IN VARCHAR2,
- p_new_pwd1 IN VARCHAR2,
- p_new_pwd2 IN VARCHAR2) RETURN VARCHAR2;
- -- Changes the password of an applications user without verifying
- -- the existing pasword. Returns 'Y' on success and 'N' on failure.
- FUNCTION change_password(p_user IN VARCHAR2, p_new_pwd IN VARCHAR2)
-
- RETURN VARCHAR2;
- -- Changes the password of an existing " web user" - previously
- -- in fnd_web_user table. For Internal use only.
- FUNCTION upgrade_web_password(p_user IN VARCHAR2,
- p_enc_web_pwd IN VARCHAR2,
- p_new_pwd IN VARCHAR2) RETURN VARCHAR2;
- -- Validates a user's password.
- function validate_password(username in varchar2, password in varchar2)
- return varchar2;
- -- Updates entries in FND_USER_PREFERENCES that support the
- -- "no reuse within X days" password validation feature.
- procedure update_no_reuse(username in varchar2, password in varchar2);
- -- Return user password encrypted with new key
- -- If mode = 'OID' then uses an algorithm that OID can decrypt on their end
- function get_reencrypted_password(username in varchar2,
- new_key in varchar2,
- p_mode in varchar2 default null)
- return varchar2;
- -- Set user password from value returned from get_reencrypted_password
- function set_reencrypted_password(username in varchar2,
- reencpwd varchar2,
- new_key in varchar2) return varchar2;
- -- Return oracle user password decrypted. This is mainly used by
- -- FND_ORACLE_SCHEMA.GetSchemaPassword().
- function get_op_value(username in varchar2, applsyspwd in varchar2)
- return varchar2;
- -- Creates a new oracle user in the FND_ORACLE_USERID table.
- -- Returns 'Y' on success and 'N' on failure.
- -- If successful, returns the new user_id.
- FUNCTION create_oracle_user(p_user IN VARCHAR2,
- p_pwd IN VARCHAR2,
- p_newkey IN VARCHAR2,
- p_user_id OUT nocopy NUMBER) RETURN VARCHAR2;
- -- Return user password encrypted with new key
- function get_reencrypted_oracle_pwd(username in varchar2,
- new_key in varchar2) return varchar2;
- -- Return user password converted from cur_key to right key for storing in db
- function cvt_reencrypted_oracle_pwd(pwd in varchar2, cur_key in varchar2)
- return varchar2;
- -- Use the given key to encrypt the given string by calling
- -- WebSessionManagERProc.encrypt().
- function encrypt(key in varchar2, value in varchar2) return varchar2;
- -- A different encryption routine, calls through to
- -- WebSessionManagerProc.URLEncrypt().
- function URLEncrypt(key in varchar2, value in varchar2) return varchar2;
- -- This routine is for AOL INTERNAL USE ONLY !!!!!!!
- -- Changes the password of the applications GUEST user without verifying
- -- the existing password. Returns 'Y' on success and 'N' on failure.
- --
- -- bug 4051516 allow AdminAppServer to pass fnd pass as key to remove
- -- dependancy on the guest password being correct to reset it.
- -- Requires AFSCJAVB.pls 115.63 and AdminAppServer.java
- FUNCTION change_guest_password(p_new_pwd IN VARCHAR2,
- p_key IN VARCHAR2 default NULL)
- RETURN VARCHAR2;
- -- bug 4047740 used by loader when creating a new user
- INVALID_PWD CONSTANT VARCHAR2(25) := '**FND_INVALID_PASSWORD**';
- END FND_WEB_SEC;
复制代码 |
|