krb5_init.c revision 3441d0c2d11aea0c39b009751a1898333c009674
/*
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 "util/child_common.h"
#include "providers/krb5/krb5_auth.h"
#include "providers/krb5/krb5_common.h"
#include "providers/krb5/krb5_init_shared.h"
struct krb5_options {
};
struct bet_ops krb5_auth_ops = {
};
int krb5_ctx_re_destructor(void *memctx)
{
if (ctx->illegal_path_re) {
}
return 0;
}
void **pvt_auth_data)
{
int ret;
const char *krb5_servers;
const char *krb5_kpasswd_servers;
const char *krb5_realm;
const char *errstr;
int errval;
int errpos;
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) {
}
if (krb5_realm == NULL) {
DEBUG(0, ("Missing krb5_realm option!\n"));
return EINVAL;
}
DEBUG(0, ("Failed to init KRB5 failover service!\n"));
return ret;
}
DEBUG(0, ("Missing krb5_kpasswd option and KDC set explicitly, "
"will use KDC for pasword change operations!\n"));
} else {
&ctx->kpasswd_service);
DEBUG(0, ("Failed to init KRB5KPASSWD failover service!\n"));
return ret;
}
}
/* Initialize features needed by the krb5_child */
("Could not initialize krb5_child settings: [%s]\n",
goto fail;
}
goto fail;
}
*ops = &krb5_auth_ops;
*pvt_auth_data = ctx;
return EOK;
fail:
return ret;
}
void **pvt_auth_data)
{
}
void **pvt_auth_data)
{
}