1👍
If you are working with python3, You can use salted mechanism provided on ldap3 package on this page http://ldap3.readthedocs.io/standard.html
from ldap3 import HASHED_SALTED_SHA
from ldap3.utils.hashed import hashed
hashed_password = hashed(HASHED_SALTED_SHA, 'new_password')
connection.modify('cn=user1,o=test', {'userPassword': [(MODIFY_REPLACE,[hashed_password])]})
Source:stackexchange.com