/*
* 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 <k5-int.h>
#include "admin.h"
#include <stdio.h>
#include "fake-addrinfo.h"
/* HACK!!! need struct serverlist*/
#include "../krb5/os/os-proto.h"
/* HACK!!! */
extern krb5_error_code
struct serverlist *serverlist);
extern krb5_error_code
/*
* Find the admin server for the given realm. If the realm is null or
* the empty string, find the admin server for the default realm.
* Returns 0 on succsess (KADM5_OK). It is the callers responsibility to
* free the storage allocated to the admin server, master.
*/
{
if (code == 0) {
} else
ret = KADM5_NO_SRV;
return (ret);
}
void
{
int i;
return;
}
}
/*
* Get the host base service name for the admin principal. Returns
* KADM5_OK on success. Caller must call free_srv_names() on
* host_service_names.
*/
const char *realm, char ***host_service_names)
{
char **tmp_srv_names;
int i;
/* get list of admin servers */
return (EINVAL);
return (ret);
/* + 1 for array terminator */
if (tmp_srv_names == NULL) {
return (ENOMEM);
}
if (tmp_srv_names[i] == NULL) {
return (ENOMEM);
}
}
return (KADM5_OK);
}
/*
* Get the host base service name for the changepw principal. Returns
* KADM5_OK on success. Caller must call free_srv_names() on
* host_service_names.
*/
const char *realm, char ***host_service_names)
{
char **tmp_srv_names;
int i;
/* get list of admin servers */
return (EINVAL);
return (ret);
/* + 1 for array terminator */
if (tmp_srv_names == NULL) {
return (ENOMEM);
}
if (tmp_srv_names[i] == NULL) {
return (ENOMEM);
}
}
return (KADM5_OK);
}
/*
* Get the host base service name for the kiprop principal. Returns
* KADM5_OK on success. Caller must free the storage allocated
* for host_service_name.
*/
const char *realm,
char ***host_service_names)
{
char **tmp_srv_names;
int i;
/* get list of admin servers */
return (EINVAL);
return (ret);
/* + 1 for array terminator */
if (tmp_srv_names == NULL) {
return (ENOMEM);
}
if (tmp_srv_names[i] == NULL) {
return (ENOMEM);
}
}
return (KADM5_OK);
}