Unlock User PIN when PIN Reset is completed

Version 1

    Subject: RE: Unlock User PIN when PIN Reset is completed
    Replied by: Jeff Lindborg on 28-10-2011 11:05:19 AM
    Try using 0 instead of false - I just tried sending "<Credential><Credentials<55443322</Credentials><Locked>0</Locked></Credential>"
    in the body of a request to both my 8.5.1 and 8.6 servers and the admin locked flag is properly cleared for the user...
     
    Working with CUC 8.5 and I am currently able to do a successful PIN reset for a user but I also want the ability to unlock an account on the successful PIN reset from the user.
     
    example - user Ted locks his CUC account because of unsuccessful attempts at login via phone - so pin is locked. Ted then goes to the self care portal and resets his PIN, need the ability to also unlock the account when this action happens.
     
    I am currently using:
     
    credential.Locked = 'false'
     
    Guess I am missing something as the Pin does get reset, its just the account is not unlocked.
     
    Any thoughts?
     
    Thanks!


    Subject: RE: Unlock User PIN when PIN Reset is completed
    Replied by: Jeff Lindborg on 28-10-2011 05:38:06 PM
    oh, sorry - to clear the hacked state, don't mess with the hacked times or lockout times - those wont do what you want - to clear a hacked account pass in a "HackedCount" of 0 and a "Hacked" (boolean) as 0 - it will reset the hacked count and indicate that the account is no longer locked (this will update the date you're looking at on the back end to blank).
    This document was generated from CDN thread

    Created by: JASON SLAGLE on 28-10-2011 10:18:57 AM
    Working with CUC 8.5 and I am currently able to do a successful PIN reset for a user but I also want the ability to unlock an account on the successful PIN reset from the user.
     
    example - user Ted locks his CUC account because of unsuccessful attempts at login via phone - so pin is locked. Ted then goes to the self care portal and resets his PIN, need the ability to also unlock the account when this action happens.
     
    I am currently using:
     
    credential.Locked = 'false'
     
    Guess I am missing something as the Pin does get reset, its just the account is not unlocked.
     
    Any thoughts?
     
    Thanks!

    Subject: RE: Unlock User PIN when PIN Reset is completed
    Replied by: JASON SLAGLE on 28-10-2011 12:47:20 PM
    Thanks - Yes I am able to remove the Admin lock check box as well with the process as defined, the problem I still have is that the process doesnt work for a user that has locked their account because of invalid PIN logins - you will see a message on the CUC --> Users -- Select User -- edit Passwords screen stating that the account is locked. The interesting thing is - if I flag the Admin locked account attribute on the page and then do a PIN reset - my process does remove the Admin unlock and the unlock message, but if the admin lock check box is not set to true then the unlock doesn't work with the PIN reset - the message on CUC still displays that the account is locked....
     
    Here is what I am sending:
     
    [2011-10-28 18:43:21,059]  REQUEST: method
    [2011-10-28 18:43:21,059]  RESQUEST: url[https://10.X.X.X:8443/vmrest/users/400a34a1-e571-40ea-ae30-132e78c66e85/credential/pin]
    [2011-10-28 18:43:21,059]  RESQUEST: data[<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
            <Credential>
                <URI>/vmrest/users/400a34a1-e571-40ea-ae30-132e78c66e85/credential/pin</URI>
                <UserObjectId>400a34a1-e571-40ea-ae30-132e78c66e85</UserObjectId>
                <CredentialType>4</CredentialType>
                <Credentials>123123</Credentials>
                <IsPrimary>false</IsPrimary>
                <CantChange>false</CantChange>
                <DoesntExpire>true</DoesntExpire>
                <TimeChanged>2011-10-28 18:40:48.166</TimeChanged>
                <HackCount>0</HackCount>
                <Locked>false</Locked>
                <TimeLastHack>2011-10-28 18:40:48.269</TimeLastHack>
                <Alias>dannyboy</Alias>
                <CredMustChange>false</CredMustChange>
                <CredentialPolicyObjectId>fae8bbea-9d5e-4423-b919-eacb04598b74</CredentialPolicyObjectId>
                <Hacked>false</Hacked>
                <ObjectId>3f221465-5a2d-4378-953d-704d85726a1f</ObjectId>
                <EncryptionType>3</EncryptionType>
            </Credential>

    Subject: RE: Unlock User PIN when PIN Reset is completed
    Replied by: JASON SLAGLE on 28-10-2011 05:14:40 PM
    Ok it seems that this is the missing element - credential.TimeLockout =

    Just need to figure out what type of value to use so that I dont get errors back from CUC....

    Subject: RE: Unlock User PIN when PIN Reset is completed
    Replied by: JASON SLAGLE on 28-10-2011 05:57:40 PM
    Well thought I had it figured out - I was seeing the password lock cleared in the web CUC browser but when dialing in from the phone I get the response that it is still locked.... weird problem...