krb5_common.c revision 152f9e939f91d94e6f30391182fd72d9267ec6e1
/*
SSSD
Kerberos Provider Common Functions
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2008-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 <netdb.h>
#include "providers/dp_backend.h"
#include "providers/krb5/krb5_common.h"
struct dp_option default_krb5_opts[] = {
};
struct sss_domain_info *dom)
{
int ret;
char *value;
const char *realm;
const char *dummy;
char **list;
return ret;
}
}
}
} else {
return ret;
}
}
}
return ret;
}
return EINVAL;
}
return EINVAL;
}
"and krb5ccname_template must start with '/' or 'FILE:'\n"));
return EINVAL;
}
return EINVAL;
}
return ENOMEM;
}
return ret;
}
}
}
return EOK;
}
{
int ret;
return ENOMEM;
}
goto done;
}
done:
}
return ret;
}
{
int ret;
int fd = -1;
char *kdcinfo_name = NULL;
int kdc_len;
return EINVAL;
}
return ENOMEM;
}
goto done;
}
if (kdcinfo_name == NULL) {
goto done;
}
if (fd == -1) {
goto done;
}
if (ret == -1) {
goto done;
}
goto done;
}
if (ret == -1) {
goto done;
}
if (ret == -1) {
goto done;
}
if (ret == -1) {
goto done;
}
done:
return ret;
}
{
struct krb5_service *krb5_service;
char *address;
int ret;
if (!krb5_service) {
return;
}
if (!srvaddr) {
return;
}
if (!address) {
return;
}
}
return;
}
const char *service_name, const char *servers,
{
struct krb5_service *service;
int ret;
int i;
if (!tmp_ctx) {
return ENOMEM;
}
if (!service) {
goto done;
}
goto done;
}
goto done;
}
goto done;
}
goto done;
}
for (i = 0; list[i]; i++) {
DEBUG(0, ("Failed to add server\n"));
goto done;
}
}
goto done;
}
done:
}
return ret;
}