where is the function OCIPasswordChange()?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • peter ineichen

    where is the function OCIPasswordChange()?

    hello

    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?

    thx peter


  • Andy Hassall

    #2
    Re: where is the function OCIPasswordChan ge()?

    On Mon, 2 Feb 2004 11:03:13 +0100, "peter ineichen" <p.ineichen@fre esurf.ch>
    wrote:
    [color=blue]
    >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?[/color]

    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:



    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 <andy@andyh.co. uk> / Space: disk usage analysis tool
    <http://www.andyh.co.uk > / <http://www.andyhsoftwa re.co.uk/space>

    Comment

    Working...