sdap_async_sudo_hostinfo.c revision 5f73b623fc72e3b9b3590420825f30e618b4d4dd
/*
Authors:
Pavel Březina <pbrezina@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 <errno.h>
#include <tevent.h>
#include <talloc.h>
#include "providers/ldap/sdap_id_op.h"
#include "providers/ldap/sdap_sudo.h"
struct sdap_sudo_get_hostinfo_state {
char **hostnames;
char **ip_addr;
};
struct sdap_options *opts,
{
char *conf_hostnames = NULL;
char *conf_ip_addr = NULL;
int ret;
/* create request */
return NULL;
}
/* load info from configuration */
if (conf_hostnames != NULL) {
goto done;
} else {
}
}
if (conf_ip_addr != NULL) {
goto done;
} else {
}
}
/* auto configuration will be supported later */
done:
} else {
}
}
return req;
}
struct tevent_req *req,
{
return EOK;
}