ipa_dyndns.c revision b5f61f8963300c9ba011436f234e9e10224aff6d
/*
SSSD
Authors:
Stephen Gallagher <sgallagh@redhat.com>
Copyright (C) 2010 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 <ctype.h>
#include "providers/ldap/sdap_dyndns.h"
#include "providers/ipa/ipa_common.h"
#include "providers/ipa/ipa_dyndns.h"
#include "providers/data_provider.h"
#include "providers/be_dyndns.h"
void ipa_dyndns_update(void *pvt);
struct ipa_options *ctx)
{
"to use the IPA dynamic DNS updates\n");
return EINVAL;
}
return ret;
}
return ret;
}
return EOK;
}
struct ipa_dyndns_timer_ctx {
struct sdap_id_op *sdap_op;
struct tevent_context *ev;
struct ipa_options *ctx;
};
void ipa_dyndns_timer(void *pvt)
{
struct tevent_req *req;
ctx->dyndns_ctx);
/* Not much we can do. Just attempt to reschedule */
return;
}
}
{
struct ipa_options);
"Failed to connect to IPA: [%d](%s)\n",
return;
}
return ipa_dyndns_update(ctx);
}
void ipa_dyndns_update(void *pvt)
{
/* Schedule timer after provider went offline */
return;
}
}
{
return;
}
}
struct ipa_dyndns_update_state {
struct ipa_options *ipa_ctx;
};
static struct tevent_req *
{
int ret;
struct ipa_dyndns_update_state *state;
return NULL;
}
/* The following three checks are here to prevent SEGFAULT
* from ticket #3076. */
goto done;
}
goto done;
}
goto done;
}
"in progress, not scheduling another update\n");
return req;
}
"ldap://", 7) != 0) {
goto done;
}
true);
if (!subreq) {
"sdap_id_op_connect_send failed: [%d](%s)\n",
goto done;
}
done:
}
return req;
}
{
return;
}
}
{
return EOK;
}