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

Creating a user,problem 5003 (WILL_NOT_PERFORM) #1144

Open
linzehai0801 opened this issue May 7, 2024 · 1 comment
Open

Creating a user,problem 5003 (WILL_NOT_PERFORM) #1144

linzehai0801 opened this issue May 7, 2024 · 1 comment

Comments

@linzehai0801
Copy link

  My code is as follows      
       ```

dn = "CN=lints,OU=ops,OU=xxx,DC=xxx,DC=ad,DC=ap-east-1,DC=xxx,DC=private,DC=com"

        user_attr = {
            "cn": "lints",
            "givenName": "ts",
            "sn": "lin",
            "mail": "1nh-q6@dingtalk.com",
            "memberOf": [
                "CN=test,OU=xxx,DC=xxx,DC=ad,DC=ap-east-1,DC=xxx,DC=private,DC=com",
            ],
            "objectClass": ["top", "person", "organizationalPerson", "user"],
            "sAMAccountName": "lints",
            "userPrincipalName": "lints@xxx.ad.ap-east-1.xxx.private.com",
        }

        conn.add(dn, attributes=user_attr)
 {'result': 53, 'description': 'unwillingToPerform', 'dn': '', 'message': '0000209A: SvcErr: DSID-031A1012, problem 5003 (WILL_NOT_PERFORM), data 0\n\x00', 'referrals': None, 'type': 'addResponse'}
What went wrong and should I then change the code
@ThePirateWhoSmellsOfSunflowers
Copy link
Contributor

Hi

see https://stackoverflow.com/a/21177829 ?

🌻

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

2 participants