How to edit the password and domain fields in the KERB_INTERACTIVE_UNLOCK_LOGON -> KERB_INTERACTIVE_LOGON ? RRS feed

  • Question

  • I am developing a  WIN 7 credential provider and filter , in the  ICredentialProviderCredential::GetSerialization , I need to inspect the packed structure KERB_INTERACTIVE_UNLOCK_LOGON -> KERB_INTERACTIVE_LOGON  and adjust the  WCHAR strings representing password and username. ( Please note this is not a change password scenario where user enters a new password himself). As the KERB structure is packed and password field is a UNICODE_STRING with Buffer that holds offset of the password in the packed structure, I am not able to make any changes to this field.

    I have looked at the helpers.cpp in the windows 7 sample SDK and found the kerbunpack init and kerbunpack methods but they don't work when I have to edit the password coming in as the original packed buffer.

    Please let me know if this is possible and any help is greatly appreciated.

    Tuesday, October 7, 2014 10:26 PM