'Extract all connection\'s credentials.
:return: List of dict in which one dict contains all information for a connection.'

def extract_connections_credentials(self):

    repos_creds = []
    connection_file_location = os.path.join(constant.profile['USERPROFILE'], '.ApacheDirectoryStudio\\.metadata\\.plugins\\org.apache.directory.studio.connection.core\\connections.xml')
    if os.path.isfile(connection_file_location):
        try:
            connections = ET.parse(connection_file_location).getroot()
            connection_nodes = connections.findall('.//connection')
            for connection_node in connection_nodes:
                creds = {}
                for connection_attr_name in connection_node.attrib:
                    if (connection_attr_name in self.attr_to_extract):
                        creds[connection_attr_name] = connection_node.attrib[connection_attr_name].strip()
                if creds:
                    repos_creds.append(creds)
        except Exception as e:
            print_debug('ERROR', ("Cannot    retrieve    connections    credentials    '%s'" % e))
            pass
    return repos_creds
