Patch for ldap and mcrypt key issue.