Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify user password fails #1166

Open
Formartha opened this issue Dec 26, 2024 · 0 comments
Open

modify user password fails #1166

Formartha opened this issue Dec 26, 2024 · 0 comments

Comments

@Formartha
Copy link

Formartha commented Dec 26, 2024

hello,
I created the following function but it fails, i tried using ChatGPT without luck, hence reaching out for help here.

 def modify_user_password(self, username, password):

    dn = self.generate_user_dn(username)
    self.connection.extend.microsoft.modify_password(dn, old_password=None, new_password=password)
    if self.connection.result['description'] != 'success':
        logger.error(f"Failed to set password: {self.connection.result}")
        return False`

that's the error I'm getting:
ERROR:__main__:Failed to set password: {'result': 53, 'description': 'unwillingToPerform', 'dn': '', 'message': '0000001F: SvcErr: DSID-031A126C, problem 5003 (WILL_NOT_PERFORM), data 0\n\x00', 'referrals': None, 'type': 'modifyResponse'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant