ipa_dyndns.c revision 04868f1573f4b26ef34610b6d7069172f93bd8ab
/*
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/dp_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 EOK;
}
void ipa_dyndns_update(void *pvt)
{
return;
}
}
{
return;
}
}
struct ipa_dyndns_update_state {
struct ipa_options *ipa_ctx;
};
static struct tevent_req *
{
int ret;
struct ipa_dyndns_update_state *state;
char *dns_zone;
const char *servername;
int i;
return NULL;
}
if (!dns_zone) {
goto done;
}
/* The DNS zone for IPA is the lower-case
* version of the IPA domain
*/
for (i = 0; dns_zone[i] != '\0'; i++) {
}
"ldap://", 7) != 0) {
goto done;
}
if (!servername) {
goto done;
}
true);
if (!subreq) {
("sdap_id_op_connect_send failed: [%d](%s)\n",
goto done;
}
done:
}
return req;
}
{
return;
}
}
{
return EOK;
}