Error using OCIPasswordChange with Oracle Instant Client

shishkov

Member
Hi. The problem is when password is expired and a user needs to change it. This works fine with instant client 11.2.0.2.0. But with instant client 12.1.0.1.0 and above OCIPasswordChange returns ora-01017 error. What seems to be a problem? May be the problem with encoding?

Thank you.
Basil
 
No it doesn't. User name, old password and new password are RAO. With instant client 11.2.0.2.0 i have tried to change OCIPasswordChange function's declaration like this:
OCIPasswordChange:
function(svchp: OCISvcCtx;
errhp: OCIError;
user_name: PChar;
usernm_len: ub4;
opasswd: PChar;
opasswd_len: ub4;
npasswd: PChar;
npasswd_len: ub4;
mode: ub4): sword; cdecl;

The result was ora-01017. Then i have returned the original function's declaration and it have worked fine. Hence i decided that problem is with encoding. Then i have found that this function accepted as mode parameter OCI_UTF16 value.

 
Back
Top