prof_solaris.c revision bfc032a14cc866ab7f34ca6fd86c240a5ebede9d
03831d35f7499c87d51205817c93e9a8d42c4baestevel * CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel * The contents of this file are subject to the terms of the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Common Development and Distribution License (the "License").
03831d35f7499c87d51205817c93e9a8d42c4baestevel * You may not use this file except in compliance with the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel * See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel * and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * When distributing Covered Code, include this CDDL HEADER in each
03831d35f7499c87d51205817c93e9a8d42c4baestevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * If applicable, add the following below this CDDL HEADER, with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * fields enclosed by brackets "[]" replaced with your own identifying
03831d35f7499c87d51205817c93e9a8d42c4baestevel * information: Portions Copyright [yyyy] [name of copyright owner]
03831d35f7499c87d51205817c93e9a8d42c4baestevel * CDDL HEADER END
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Abstracted contract private interfaces for configuring krb5.conf(4).
03831d35f7499c87d51205817c93e9a8d42c4baestevel__profile_iter_name_value(profile_t profile, char *section, char *key,
03831d35f7499c87d51205817c93e9a8d42c4baestevel char *name = NULL, *value = NULL, **ret_values = NULL;
03831d35f7499c87d51205817c93e9a8d42c4baestevel while (code == 0) {
03831d35f7499c87d51205817c93e9a8d42c4baestevel if (code2 != 0) {
03831d35f7499c87d51205817c93e9a8d42c4baestevel__profile_get_domain_realm(profile_t profile, char *realm, char ***domains)
03831d35f7499c87d51205817c93e9a8d42c4baestevel if (profile == NULL || realm == NULL || domains == NULL)
03831d35f7499c87d51205817c93e9a8d42c4baestevel return (__profile_iter_name_value(profile, "domain_realm", realm,
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Not fatal if this fails, continue on.
03831d35f7499c87d51205817c93e9a8d42c4baestevel code = profile_add_relation(profile, hierarchy, "true");
03831d35f7499c87d51205817c93e9a8d42c4baestevel code = profile_add_relation(profile, hierarchy, "true");
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Not fatal if this fails, continue on.
if (code != 0)
return (code);
if (code != 0)
return (code);
if (code != 0)
return (code);
return (code);
return (EINVAL);
return (code);
return (EINVAL);
return (code);
return (EINVAL);
return (code);
return (EINVAL);
return (code);
return (EINVAL);
if (code != 0)
goto error;
return (code);
char ***ret_value)
return (EINVAL);
return (code);
char **values)
return (EINVAL);
if (code != 0)
return (code);
return (EINVAL);
&value);
return (code);
return (EINVAL);
char **tkdcs;
return (EINVAL);
return (code);
return (code);
if (code != 0)
return (code);
return (code);
if (code != 0)
return (code);
return (code);
return (EINVAL);
while (code == 0) {
while (code2 == 0) {
&inter);
code3 =
if (code3 != 0) {
goto error;
code = 0;
return (code);
char *drealm;
return (EINVAL);
if (code != 0)
return (code);
if (code != 0)
return (code);
if (code != 0)
return (code);
if (code != 0)
return (code);
if (code != 0)
return (code);
char *inter)
return (EINVAL);
return (code);
return (EINVAL);
*val_err = 0;
if (islower(c)) {
goto cleanup;
goto cleanup;
goto cleanup;
if (islower(c)) {
goto cleanup;
&domains);
goto cleanup;
goto cleanup;
goto cleanup;
goto cleanup;
goto cleanup;
goto cleanup;
goto cleanup;
return (code);
return (EINVAL);
return (ENOMEM);
return (ENOMEM);
if (ret != 0)
return (ret);
if (fd < 0) {
return (err);
return (code);