#33365 [NEW]: logon fails when password expired, ORA-28001
| From: | uherj at avx dot cz | Date: | Thu, 16 Jun 2005 15:32:46 +0000 |
| Subject: | #33365 [NEW]: logon fails when password expired, ORA-28001 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-80459@lists.php.net to get a copy of this message | ||
From: uherj at avx dot cz
Operating system: windows
PHP version: 4.3.11
PHP Bug Type: OCI8 related
Bug description: logon fails when password expired, ORA-28001
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 bug report at http://bugs.php.net/?id=33365&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33365&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33365&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33365&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33365&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33365&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33365&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33365&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33365&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33365&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33365&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33365&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33365&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33365&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33365&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33365&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33365&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33365&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33365&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33365&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33365&r=mysqlcfg