title: spring-ldap use ldaps connect to ActiveDirectory
body: <p>I want to create a ldap account (with password) or change account passwords with spring-ldap, so I follow some instructions to export a certificate from AD and import it to jdk, after that I change the protocol and port of the url to <code>ldaps://AD-SERVER-TEST.test.com:636</code>, I think It's all I have to do. But I got a <code>javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 00002077: SvcErr: DSID-031908B4, problem 5003 (WILL_NOT_PERFORM), data 0</code> error. It means spring-ldap doesn't connect AD through secure connection.
  I search from the web, nothing help. But I can change the password with native ldap support, for example , <code>javax.naming.ldap.InitialLdapContext.createSubcontext()</code> to create a new account, all the ldap config is the same as spring-ldap. So do I need make more changes to spring-ldap ?
  the native ldap enviroment config like this, nothing special:</p>
  <pre class="lang-java prettyprint-override"><code>        env.put(Context.INITIAL_CONTEXT_FACTORY, &quot;com.sun.jndi.ldap.LdapCtxFactory&quot;);
          env.put(Context.SECURITY_AUTHENTICATION, &quot;simple&quot;);
          env.put(Context.SECURITY_PRINCIPAL, adminName);
          env.put(Context.SECURITY_CREDENTIALS, adminPassword);
          env.put(Context.SECURITY_PROTOCOL, &quot;ssl&quot;);
          String ldapURL = &quot;ldaps://AD-SERVER-TEST.test.com:636&quot;;
          env.put(Context.PROVIDER_URL, ldapURL);
  </code></pre>