#33365 [Opn->Fbk]: logon fails when password expired, ORA-28001
| From: | sniper@php.net | Date: | Thu, 16 Jun 2005 16:04:09 +0000 |
| Subject: | #33365 [Opn->Fbk]: logon fails when password expired, ORA-28001 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80462@lists.php.net to get a copy of this message | ||
ID: 33365
Updated by: sniper@php.net
Reported By: uherj at avx dot cz
-Status: Open
+Status: Feedback
Bug Type: OCI8 related
Operating System: windows
PHP Version: 4.3.11
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-06-16 17:32:45] uherj at avx dot cz
Description:
------------
OCIlogon do not returns connection resource for account with expired
password.
ocierror() contain:
[code] => 28001
[message] => ORA-28001: the password has expired
Is unable to call OCIpasswordchange without existing resource. (return
same error)
(similar problem in Bug #31623 - not fully resolved)
Reproduce code:
---------------
1.create new user account with expired password
2.try:
$user="newaccount";
$password="password";
$dbstring="(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL =
TCP)";
$dbstring.="(HOST = $server)(PORT = 1521)))";
$dbstring.="(CONNECT_DATA = (SID = $sid)) )";
$con=ocilogon($user,$password,$dbstring);
$conerr=ocierror();
print_r($conerr);
echo "resource connection:".$con;
Expected result:
----------------
there could be error retrieved by ocierror() (information), OCIlogon()
should return resource.
Actual result:
--------------
no resource returned by OCIlogon()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33365&edit=1