Doesn't work if session is not connected.
However, this should be easy to fix:
//----------------------------------------------------------------------------
//2005-12-19 14:05 N,??:
//2005-12-19 14:05 B,SM B3587: try/finally used (to return connection)
// using SetUserName/SetPassword if not connected
procedure TOraSession.ChangePassword(NewPassword: string);
begin
CreateIConnection;
try //B3587
//B3587 begin
if not Connected then
begin
FIConnection.SetUsername(Username);
FIConnection.SetPassword(Password);
end;
//B3587 end
FIConnection.ChangePassword(NewPassword);
FPassword := NewPassword;
FIConnection.SetPassword(PChar(FPassword));
finally //B3587
if not Connected and (FIConnection.Pool nil) then begin
ConnectionPoolManager.ReturnConnection(FIConnection);
SetIConnection(nil);
end;
end;
end;
Regards
Stefan Meisner
TOraSession.ChangePassword doesn't work (5.55.1.24)
-
- Posts: 6
- Joined: Thu 24 Nov 2005 17:39
- Location: Vienna, Austria
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
-
- Posts: 6
- Joined: Thu 24 Nov 2005 17:39
- Location: Vienna, Austria
ChangePassword
Suppose, the user can't connect due to an expired password he won't be able to connect and thus be unable to change his/her password.
This has been the reason to apply this fix.
Greetings
Stefan Meisner
This has been the reason to apply this fix.
Greetings
Stefan Meisner
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53