2 * Copyright (c) 1997 Kungliga Tekniska Högskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
17 * 3. Neither the name of the Institute nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 #include "kadm5_locl.h"
36 RCSID("$Id: server_glue.c,v 1.6 1999/12/02 17:05:07 joda Exp $");
39 kadm5_init_with_password(const char *client_name,
41 const char *service_name,
42 kadm5_config_params *realm_params,
43 unsigned long struct_version,
44 unsigned long api_version,
47 return kadm5_s_init_with_password(client_name,
57 kadm5_init_with_password_ctx(krb5_context context,
58 const char *client_name,
60 const char *service_name,
61 kadm5_config_params *realm_params,
62 unsigned long struct_version,
63 unsigned long api_version,
66 return kadm5_s_init_with_password_ctx(context,
77 kadm5_init_with_skey(const char *client_name,
79 const char *service_name,
80 kadm5_config_params *realm_params,
81 unsigned long struct_version,
82 unsigned long api_version,
85 return kadm5_s_init_with_skey(client_name,
95 kadm5_init_with_skey_ctx(krb5_context context,
96 const char *client_name,
98 const char *service_name,
99 kadm5_config_params *realm_params,
100 unsigned long struct_version,
101 unsigned long api_version,
102 void **server_handle)
104 return kadm5_s_init_with_skey_ctx(context,
115 kadm5_init_with_creds(const char *client_name,
117 const char *service_name,
118 kadm5_config_params *realm_params,
119 unsigned long struct_version,
120 unsigned long api_version,
121 void **server_handle)
123 return kadm5_s_init_with_creds(client_name,
133 kadm5_init_with_creds_ctx(krb5_context context,
134 const char *client_name,
136 const char *service_name,
137 kadm5_config_params *realm_params,
138 unsigned long struct_version,
139 unsigned long api_version,
140 void **server_handle)
142 return kadm5_s_init_with_creds_ctx(context,