Active Directory unicodePWD issue

Muhammad Tayyab 21 Reputation points
2021-06-11T11:25:07.827+00:00

here is an issue I want to discuss with you guys kindly help me resolving this issue.

whenever I set the value in active directory user unicodePwd this error show up:

104650-capture.png

i logged in as a administrator user in the active directory

Windows for business Windows Client for IT Pros Directory services Active Directory
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-06-14T05:39:41.19+00:00

    Hello @Muhammad Tayyab ,

    Thank you for posting here.

    I have check in my lab, edit unicodePWD on the Properties of one user. And I have similar error as you.

    105186-er.png

    After my research, it seems we can not edit unicodePWD via GUI.

    Hope the following links is helpful to you.
    Active Directory password change #92
    https://github.com/ldapjs/node-ldapjs/issues/92

    Update unicodepwd in ActiveDirectory
    https://stackoverflow.com/questions/29624457/update-unicodepwd-in-activedirectory

    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    Hope the information above is helpful.

    Should you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Muhammad Tayyab 21 Reputation points
    2021-06-14T06:33:07.777+00:00

    @Anonymous Thankyou for answering i have a question i am using php here is my code for modify unicodePwd but its says "server is unwilling to perform" could you please help me out in this:

    $username = "admin username";

    $password = "admin password";

    $ldap_server = "ldaps://ip address:636";

    $ldap_conn = ldap_connect($ldap_server);
    $base_dn = "user complete dn";

    $userdata["unicodePwd"] = "TGFob3JlMSFUYXl5YWIxQCM="; //base 64 encoded password

    $result = ldap_modify($ldap_conn, $base_dn, $userdata);

    ldap_close($ldap_conn);

    Warning: ldap_modify(): Modify: Server is unwilling to perform


  2. Anonymous
    2021-06-16T09:53:56+00:00

    Hello @Muhammad Tayyab ,

    I am so glad to receive your reply.

    I am sorry, in fact, I do not have any PHP script or any other script to change active directory user password.

    I really want to find useful code and want to test it in my AD test environment to modify the active directory user password.

    But I found out that all I can do is to Google code examples on the Internet, and there are useful codes in the two links in my first post. But I don't have tools to test those codes (the first link is Java code, and the second link is php code. In fact, I can't understand these codes because I am not an expert in this field).

    My suggestion is that you can refer to the code in the link above (or you can find more helpful code examples on the Internet, maybe C++ code), and then find the corresponding code experts on the corresponding forums, and let them test the code in their test environment and modify change active directory user password.

    IADsUser::ChangePassword method (iads.h)
    https://learn.microsoft.com/en-us/windows/win32/api/iads/nf-iads-iadsuser-changepassword

    Thank you so much for your understanding and support.

    Should you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.