C#: code error while changing the active directory user's password

后端 未结 3 1000
既然无缘
既然无缘 2021-01-23 23:22
C# code     

> error--->>>Unknown name. (Exception from HRESULT: 0x80020006
> (DISP_E_UNKNOWNNAME))

and the code is this



        
3条回答
  •  醉话见心
    2021-01-23 23:47

    The DISP_E_UNKNOWNNAME makes it appear that the active directory is responding to the attempt, but it can't locate the user based on the name supplied in the directory entry. Some things to try/verify:

    1. Verify that your directory entry is populated with the proper information.
    2. Verify that the username of your entry actually exists in the AD.
    3. Verify that the OU the username belongs to is reflected in your query.

    I've received this error in the past, and universally (for me) it revolved around a disconnect between the directory entry and the ultimate location of the user within the AD. OU differences can make or break the connection.

提交回复
热议问题