def transform_str_to_dict(strdn):
    """From  /DC=ch/DC=cern/OU=computers/CN=lhcbci-cernvm03.cern.ch
       to {'subject':['DC', 'ch', 'DC', 'cern', 'CN', 'lhcbi-cernvm03.cern.ch']}"""
    dn_list = strdn.split('/')
    json_dict = {'subject':[]}
    for element in dn_list:
        if '=' in element:
            element_list = element.split('=')
            json_dict['subject'].append(element_list[0])
            json_dict['subject'].append(element_list[1])
    return json_dict