I'm writing a Java module for my web application that would allow the user to reset their password in LDAP. When I execute the module I'm getting the following error:
[LDAP: error code 50 - Insufficient Access Rights]

Is this due to the fact that only a user that is admin can change password in LDAP?

I'm not passing Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS in my HashMap.