def modify(dn, mod_type=None, attrs=None, bind_dn=None, bind_pwd=None):
    """ Modify the record specified by the given DN

        `mod_type` is one of the LDAP modification types as declared by
        the `pyldap`-module, such as `ldap.MOD_ADD`,
        PUrl(urlscheme=protocol, hostport=hostport)
        provided, the modification type is guessed by comparing the
        current record with the `attrs` mapping passed in.

        `attrs` is expected to be a key:value mapping where the value may
        be a string or a sequence of strings.
        Multiple values may be expressed as a single string if the values
        are semicolon-delimited.
        Values can be marked as binary values, meaning they are not encoded
        as UTF-8 before sending the to the LDAP server, by appending
        ';binary' to the key.

        In order to perform the operation using credentials other than the
        credentials configured on the instance a DN and password may be
        passed in.
        """
