We have a couple of LPARS on the same tin, and hosting zend etc on one of them allows us to connect to other LPARS with bogus credentials. I can assure you that the password is not goat, and yet this returns a valid connection handle. Is there a setting that allows this to happen?
this is hosted on lparone and it is trying to open a connection to lpartwo, my expectation would be a connection failure as the password is incorrect.
this is hosted on lparone and it is trying to open a connection to lpartwo, my expectation would be a connection failure as the password is incorrect.
PHP Code:
try {
$bad_conn = db2_connect($this_lpar, $usrPrf, 'goat', $options);
}
catch (Exception $e) {
echo $e->getMessage(), "\n";
$this_bad_msg1 = "TRY {} statement failed with [".db2_conn_errormsg()."]";
exit();
}
if($bad_conn) { $bad_conn_state = 'OK'; $rc = db2_close($bad_conn); } else { $bad_conn_state = 'ERROR'; }
$this_bad_msg1 = "db2_conn_error = [".db2_conn_error()."]";
$this_bad_msg2 = "db2_conn_errormsg = [".db2_conn_errormsg()."]";
// Now punch the results into an array so we can report on it by dumping it out
$results_array[] = array(
'lpar' => $this_lpar,
'resource' => $bad_conn,
'mode' => 'Bogus password',
'state' => $bad_conn_state,
'msg1' => $this_bad_msg1,
'msg2' => $this_bad_msg2
);
Comment