def extract_error_msg_from_ldap_exeception(e):
    """
    When the LDAP library raises an exeption the error message
    contains a descrition and additional info. Return those seperately
    instead of a single string.
    """
    s = str(e)
    d = eval(s)
    return d['desc'], d['info']