'Retrieve res_company_ldap resources from the database in dictionary
format.
:return: ldap configurations
:rtype: list of dictionaries'

@api.multi
def get_ldap_dicts(self):

    ldaps = self.sudo().search([('ldap_server', '!=', False)], order='sequence')
    res = ldaps.read(['id', 'company', 'ldap_server', 'ldap_server_port', 'ldap_binddn', 'ldap_password', 'ldap_filter', 'ldap_base', 'user', 'create_user', 'ldap_tls'])
    return res
