krb5_init.c revision eaf3dcc15e9eb093ecf8b934f6c3a82d01236a92
/*
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;
unsigned v;
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;
}
}
goto fail;
}
}
goto fail;
}
goto fail;
}
goto fail;
}
if (debug_to_file != 0) {
DEBUG(0, ("Error setting up logging (%d) [%s]\n",
goto fail;
}
goto fail;
}
}
goto fail;
}
*ops = &krb5_auth_ops;
*pvt_auth_data = ctx;
return EOK;
fail:
return ret;
}
void **pvt_auth_data)
{
}