Added the patch for LdapAttributeNew() and syntax errors.