凭据提供程序更改密码方案 [英] Credential Provider Change Password Scenario

查看:167
本文介绍了凭据提供程序更改密码方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我对凭据提供程序中的密码更改有以下问题:



1。当我们在ReportResult方法中收到ERROR_PASSWORD_MUST_CHANGE时,我们应该采取哪些步骤来更改密码?



2。我正在使用NetUserChangePassword更改密码,并在GetSerialization(KERB_INTERACTIVE_UNLOCK_LOGON)结构中传递此新密码,这会导致密码错误。但是它在重新枚举之后有效(我的意思是在重新枚举之后它不再有更改密码方案,但是登录方案。)



3。在这种情况下我们需要使用KERB_CHANGEPASSWORD_REQUEST结构吗?如果是,那么该结构的MessageType参数应该是什么? (MessageType参数未在msdn中记录,但它在结构中存在)。



谢谢,


/ ashwin

解决方案

参见 http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2118002&SiteID=1


 

I have following questions regarding password change in credential provider:

 

1. When we receive ERROR_PASSWORD_MUST_CHANGE in ReportResult method, what steps we should take to change the password?

 

2. I am changing the password using NetUserChangePassword and passing this new password in GetSerialization (KERB_INTERACTIVE_UNLOCK_LOGON) structure which gives me bad password error. But it works after reenumeration (I mean after reenumeration its no more change password scenario, but the logon scenario.)

 

3. Do we need to use KERB_CHANGEPASSWORD_REQUEST structure in this case? If yes, what should be the MessageType parameter of this structure? (MessageType parameter is NOT documented in msdn but it is there in the structure).

 

Thanks,

/ashwin

解决方案

See http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2118002&SiteID=1

 


这篇关于凭据提供程序更改密码方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆