On Mon, 2 Feb 2004 11:03:13 +0100, "peter ineichen" <p.********@fre esurf.ch>
wrote:
i'm searching for the function OCIPasswordChan ge(). in the changelog i've
found it in version 4.3.2, but is it realy programmed? how can i change an
expired password without it?
You can't change an expired password with PHP, as it won't let you log on. You
can do this in OCI itself, since you can use the OCI function to change
password without having an active session. But PHP's OCILogon function doesn't
allow this 'intermediate' state between having a connection and an active
session.
It also doesn't handle the password expiry grace period either, see:
http://groups.google.co.uk/groups?hl...0d0dcef&rnum=8
I posted a small patch there to accept OCI_SUCCESS_WIT H_INFO during logon so
you can still log on during the grace period. (No guarantees as to any other
side-effects though)
OCIPasswordChan ge is in the source code, (ext/oci/oci8.c) but apparently not
documented.
/* {{{ proto bool ocipasswordchan ge(int conn, string username, string
old_password, string new_password)
changes the password of an account*/
PHP_FUNCTION(oc ipasswordchange )
--
Andy Hassall <an**@andyh.co. uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk > / <http://www.andyhsoftwa re.co.uk/space>