def fill_auth_list_from_ou(self, auth_list, opts=None):
        ou_names = []
        for item in auth_list:
            if isinstance(item, six.string_types):
                continue
            ou_names.append([potential_ou for potential_ou in item.keys() if potential_ou.startswith('ldap(')])
        if ou_names:
            auth_list = salt.auth.ldap.expand_ldap_entries(auth_list, opts)
        return auth_list
Query LDAP, retrieve list of minion_ids from an OU or other search.
dataset/ETHPy150Open saltstack/salt/salt/utils/minions.py/CkMinions.fill_auth_list_from_ou