ipa_init.c revision 1abdf56dcda5f6bed7b144e544c00dbdd501b3fc
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza IPA Provider Initialization functions
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza Simo Sorce <ssorce@redhat.com>
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza Copyright (C) 2009 Red Hat
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza This program is free software; you can redistribute it and/or modify
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza it under the terms of the GNU General Public License as published by
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza the Free Software Foundation; either version 3 of the License, or
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza (at your option) any later version.
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza This program is distributed in the hope that it will be useful,
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza but WITHOUT ANY WARRANTY; without even the implied warranty of
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza GNU General Public License for more details.
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza You should have received a copy of the GNU General Public License
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza along with this program. If not, see <http://www.gnu.org/licenses/>.
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza/* Id Handler */
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza ipa_servers = dp_opt_get_string(ipa_options->basic, IPA_SERVER);
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza ipa_backup_servers = dp_opt_get_string(ipa_options->basic, IPA_BACKUP_SERVER);
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza ret = ipa_service_init(ipa_options, bectx, ipa_servers,
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza DEBUG(0, ("Failed to init IPA failover service!\n"));
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza const char *hostname;
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza /* already initialized */
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza ipa_ctx = talloc_zero(ipa_options, struct ipa_id_ctx);
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza sdap_ctx = talloc_zero(ipa_options, struct sdap_id_ctx);
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza if(dp_opt_get_bool(ipa_options->basic, IPA_DYNDNS_UPDATE)) {
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza /* Perform automatic DNS updates when the
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza * IP address changes.
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza * Register a callback for successful LDAP
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza * reconnections. This is the easiest way to
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza * identify that we have gone online.
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza /* Ensure that nsupdate exists */
goto done;
goto done;
goto done;
goto done;
goto done;
done:
return ret;
void **pvt_data)
int ret;
if (!ipa_options) {
return ret;
return EOK;
if (!ipa_auth_ctx) {
return ENOMEM;
goto done;
goto done;
if (!krb5_auth_ctx) {
goto done;
goto done;
if (!sdap_auth_ctx) {
goto done;
goto done;
goto done;
goto done;
done:
return ret;
void **pvt_data)
int ret;
return ret;
void **pvt_data)
int ret;
return ENOMEM;
goto done;
goto done;
done:
return ret;
void **pvt_data)
int ret;
return ENOMEM;
goto done;
done:
return ret;
#ifdef BUILD_SSH
void **pvt_data)
int ret;
return ENOMEM;
goto done;
done:
return ret;
void **pvt_data)
#ifdef BUILD_AUTOFS
int ret;
return ret;
return EOK;
void **pvt_data)
int ret;
return ret;
return ret;
return EOK;