Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to enable user via LDAP in AD?
    primarykey
    data
    text
    <p>In my program (jldap-based) I trying to enable user in AD by setting userAccountControl value to 512. User created with following attributes:</p> <pre><code>objectClass=user cn=username name=username userAccountControl=512 userPassword={BASE64}&lt;base64 encoded password&gt; sAMAccountName=username distinguishedName=username,CN=Users,DC=company,DC=com </code></pre> <p>But I get exception:</p> <pre><code>LDAPException: Unwilling To Perform (53) Unwilling To Perform LDAPException: Server Message: 0000052D: SvcErr: DSID-031A0FC0, problem 5003 (WILL_NOT_PERFORM), data 0 </code></pre> <p>May be anybody can tell me where I'm making an error? Maybe I forgot some required attribute?</p> <p>EDIT:</p> <p>My code (It is trivial and I think that no errors in it):</p> <pre><code>LDAPConnection connection; LDAPMessageQueue messageQueue; ... LDAPAttributeSet attributes = new LDAPAttributeSet(); attributes.add(new LDAPAttribute("objectClass", "user")); attributes.add(new LDAPAttribute("cn", "username")); attributes.add(new LDAPAttribute("name", "username")); attributes.add(new LDAPAttribute("userAccountControl", "512")); attributes.add(new LDAPAttribute("userPassword", "{BASE64}&lt;base64 encoded password&gt;")); attributes.add(new LDAPAttribute("sAMAccountName", "username")); attributes.add(new LDAPAttribute("distinguishedName", "username,CN=Users,DC=company,DC=com")); LDAPEntry entry = new LDAPEntry("CN=username,CN=Users,DC=company,DC=com", attributes); connection.add(entry); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload