krb5_init.c revision 1c48b5a62f73234ed26bb20f0ab345ab61cda0ab
/*
SSSD
Kerberos 5 Backend Module
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2009 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/child_common.h"
#include "providers/krb5/krb5_auth.h"
#include "providers/krb5/krb5_common.h"
struct krb5_options {
};
struct bet_ops krb5_auth_ops = {
};
void **pvt_auth_data)
{
int ret;
struct tevent_signal *sige;
unsigned v;
const char *krb5_servers;
const char *krb5_realm;
if (krb5_options == NULL) {
if (krb5_options == NULL) {
return ENOMEM;
}
&krb5_options->opts);
return ret;
}
}
*ops = &krb5_auth_ops;
return EOK;
}
if (!ctx) {
return ENOMEM;
}
if (krb5_servers == NULL) {
DEBUG(0, ("Missing krb5_kdcip option!\n"));
return EINVAL;
}
if (krb5_realm == NULL) {
DEBUG(0, ("Missing krb5_realm option!\n"));
return EINVAL;
}
DEBUG(0, ("Failed to init IPA failover service!\n"));
return ret;
}
goto fail;
}
goto fail;
}
if (debug_to_file != 0) {
DEBUG(0, ("Error setting up logging (%d) [%s]\n",
goto fail;
}
goto fail;
}
}
*ops = &krb5_auth_ops;
*pvt_auth_data = ctx;
return EOK;
fail:
return ret;
}
void **pvt_auth_data)
{
}