Not able to change password in ERPNext which reflects in active directory

I am using Microsoft AD and ERPNext. I was able to successfully integrate both using the LDAP settings. However, when a user logs in using LDAP, changing password doesnot reflect in AD, it gets changed only for the local user. Can some one provide a solution for the same?