sysdb_ssh.c revision 3a59cbd0b7b9c5dd3c62ac1679876070c264d80f
/*
Authors:
Jan Cholasta <jcholast@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 <talloc.h>
#include "db/sysdb_ssh.h"
#include "db/sysdb_private.h"
const char *name,
const char *alias,
struct sysdb_attrs *attrs)
{
struct ldb_message **hosts;
struct ldb_message_element *el;
unsigned int i;
bool in_transaction = false;
if (!tmp_ctx) {
return ENOMEM;
}
if (!attrs) {
if (!attrs) {
goto done;
}
}
goto done;
}
in_transaction = true;
goto done;
}
if (num_hosts > 1) {
("Found more than one host with name [%s].\n", name));
goto done;
}
("Failed to delete host [%s].\n", name));
goto done;
}
if (num_hosts == 1) {
if (el) {
for (i = 0; i < el->num_values; i++) {
}
("Could not add name alias [%s]\n",
goto done;
}
}
}
}
if (alias) {
("Could not add name alias [%s]\n", alias));
goto done;
}
}
goto done;
}
goto done;
}
in_transaction = false;
done:
if (in_transaction) {
}
}
return ret;
}
const char *name)
{
}
const char *name,
const char **attrs,
struct ldb_message ***hosts,
{
const char *filter;
struct ldb_message **msgs;
if (!filter) {
goto done;
}
("Error looking up host [%s]", name));
goto done;
*host_count = 0;
goto done;
}
*host_count = count;
done:
return ret;
}