ad_init.c revision effcbdb12c7ef892f1fd92a745cb33a08ca4ba30
/*
SSSD
Authors:
Stephen Gallagher <sgallagh@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 <unistd.h>
#include <fcntl.h>
#include "providers/ad/ad_common.h"
#include "providers/ldap/ldap_common.h"
#include "providers/ldap/sdap_idmap.h"
#include "providers/krb5/krb5_auth.h"
static void
.finalize = ad_shutdown,
};
struct bet_ops ad_auth_ops = {
};
struct bet_ops ad_chpass_ops = {
};
static errno_t
{
char *ad_servers = NULL;
/* Get AD-specific options */
&ad_options);
("Could not parse common options: [%s]\n",
goto done;
}
/* Set up the failover service */
&ad_options->service);
("Failed to init AD failover service: [%s]\n",
goto done;
}
done:
return ret;
}
int
void **pvt_data)
{
struct sdap_id_ctx *sdap_ctx;
if (!ad_options) {
return ret;
}
}
if (ad_options->id_ctx) {
/* already initialized */
return EOK;
}
if (!ad_options) {
return ENOMEM;
}
if (!sdap_ctx) {
return ENOMEM;
}
goto done;
}
goto done;
}
goto done;
}
/* Set up the ID mapping object */
}
goto done;
}
("setup_child failed [%d][%s].\n",
goto done;
}
done:
}
return ret;
}
static void
{
/* TODO: Clean up any internal data */
}