unboundid-ldap-sdk

How do I resolve “WILL_NOT_PERFORM” MS AD reply when trying to change password in scala w/ the unboundid LDAP SDK?

。_饼干妹妹 提交于 2019-11-26 14:31:50
问题 I'm wrestling with Active Directory, trying to get it to let me change a password. I've found tons of useful information, but I'm still getting a persistent error. Some code: import com.unboundid.ldap.sdk._ import com.unboundid.util.ssl._ def main(args: Array[String]) : Unit = { var sslUtil = new SSLUtil( new TrustAllTrustManager() ) var con = new LDAPConnection(sslUtil.createSSLSocketFactory()) con.connect("ldap.example.net", 636) con.bind("ldapadmin", "adminpasswd") val newPass = "Jfi8ZH8#k