/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <locale.h>
#include <errno.h>
#include <krb5.h>
#include <profile.h>
#include <com_err.h>
struct profile_string_list {
char **list;
int num;
int max;
};
/*
* From prof_get.c as the following four functions are private in mech_krb5.
*/
/*
* Initialize the string list abstraction.
*/
static errcode_t
{
return (ENOMEM);
return (0);
}
/*
* If re_list is non-NULL then pass the list header to the caller else free
* the previously allocated list.
*/
static void
{
return;
if (ret_list) {
return;
} else
}
/*
* Add a string to the list.
*/
static errcode_t
{
int newmax;
return (ENOMEM);
}
return (ENOMEM);
return (0);
}
static void
usage()
{
"-k <kdc[,kdc]> -m <master_kdc>\n -p <kpasswd_protocol> "
"-d <domain>\n"));
exit(1);
}
int
{
#if !defined(TEXT_DOMAIN)
#endif /* TEXT_DOMAIN */
(void) textdomain(TEXT_DOMAIN);
/*
* kconf -f <file> -r <realm> -k <kdc[,kdc]> -m <master_kdc>
* -p <kpasswd_protocol> -d <domain>
*/
switch (c) {
case 'f':
break;
case 'r':
break;
case 'k':
break;
case 'm':
break;
case 'p':
set_change = TRUE;
break;
case 'd':
break;
default:
usage();
break;
}
}
if (code != 0) {
}
goto error;
}
do {
if (code != 0) {
"%d\n"), code);
goto error;
}
} else {
code);
goto error;
}
set_change, TRUE);
if (code != 0) {
"information\n"));
goto error;
}
if (code != 0) {
goto error;
}
if (ret_values != NULL)
/*
* Release profile, which will subsequently flush new profile to file.
* If this fails then at least free profile memory.
*/
return (code);
}