I would like to change password for user in Active Directory using JNDI. The problem is, that this user's password has expired. When I create InitialDirContext
it gives me immediately an error (data 773
means password expired):
javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 773, v1db1
I know that IBM LDAP has special bind which addresses this issue, but I could not find something for AD.
Is it possible to change expired password for user without admin account? I would like to provide current and new password and change it.