/*
SSSD
Authors:
Jan Zeleny <jzeleny@redhat.com>
Copyright (C) 2012 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "providers/ldap/sdap_async_private.h"
#include "providers/ldap/ldap_common.h"
struct sdap_host_state {
const char **attrs;
int search_base_iter;
char *cur_filter;
char *host_filter;
const char *hostname;
/* Return values */
};
static void
static errno_t
struct sdap_host_state *state);
/**
* hostname == NULL -> look up all hosts / host groups
* hostname != NULL -> look up only given host and groups
* it's member of
*/
struct tevent_req *
struct tevent_context *ev,
struct sdap_handle *sh,
struct sdap_options *opts,
const char *hostname,
struct sdap_attr_map *host_map,
struct sdap_search_base **search_bases)
{
return NULL;
}
state->search_base_iter = 0;
goto immediate;
}
} else {
hostname);
}
goto immediate;
}
}
goto immediate;
}
return req;
} else {
}
return req;
}
struct sdap_host_state *state)
{
return EOK;
}
return ENOMEM;
}
true);
return EIO;
}
return EAGAIN;
}
static void
{
&state->host_count,
return;
}
if (state->host_count == 0) {
/* No more search bases to try */
}
return;
}
/* Nothing else to do, just complete the req */
}
struct sysdb_attrs ***hosts)
{
return EOK;
}