Fixed some errors preventing ldap from syncing properly with PUMP.