note 84607 added to function.oci-connect
| From: | sixd@php.net | Date: | Mon, 21 Jul 2008 20:16:20 +0000 |
| Subject: | note 84607 added to function.oci-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-142441@lists.php.net to get a copy of this message | ||
From PHP 5.3 onwards:
A new OCI_CRED_EXT flag can be passed as the "session_mode" parameter
to oci_connect(), oci_new_connect() and oci_pconnect().
$c1 = oci_connect("/", "", $db, null, OCI_CRED_EXT);
This tells Oracle to do external or OS authentication, if configured
in the database.
OCI_CRED_EXT can only be used with username of "/" and a empty
password. Oci8.privileged_connection may be On or Off.
OCI_CRED_EXT is not supported on Windows for security reasons.
The new flag may be combined with the existing OCI_SYSOPER or
OCI_SYSDBA modes (note: oci8.privileged_connection needs to be On for
OCI_SYSDBA and OCI_SYSOPER), e.g.:
$c1 = oci_connect("/", "", $db, null, OCI_CRED_EXT+OCI_SYSOPER);
----
Server IP: 69.147.83.197
Probable Submitter: 148.87.1.167
----
Manual Page -- http://www.php.net/manual/en/function.oci-connect.php
Edit -- https://master.php.net/note/edit/84607
Del: integrated -- https://master.php.net/note/delete/84607/integrated
Del: useless -- https://master.php.net/note/delete/84607/useless
Del: bad code -- https://master.php.net/note/delete/84607/bad+code
Del: spam -- https://master.php.net/note/delete/84607/spam
Del: non-english -- https://master.php.net/note/delete/84607/non-english
Del: in docs -- https://master.php.net/note/delete/84607/in+docs
Del: other reasons-- https://master.php.net/note/delete/84607
Reject -- https://master.php.net/note/reject/84607
Search -- https://master.php.net/manage/user-notes.php