server_init.c (7c64d375) | server_init.c (159d09a2) |
---|---|
1/* 2 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3 * Use is subject to license terms. 4 */ 5 | 1/* 2 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3 * Use is subject to license terms. 4 */ 5 |
6#pragma ident "%Z%%M% %I% %E% SMI" | |
7 8/* 9 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 10 * 11 * Openvision retains the copyright to derivative works of 12 * this source code. Do *NOT* create a derivative of this 13 * source code before consulting with your legal department. 14 * Do *NOT* integrate *ANY* of this source code into another --- 6 unchanged lines hidden (view full) --- 21 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 22 * 23 */ 24 25 26/* 27 * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved. 28 * | 6 7/* 8 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 9 * 10 * Openvision retains the copyright to derivative works of 11 * this source code. Do *NOT* create a derivative of this 12 * source code before consulting with your legal department. 13 * Do *NOT* integrate *ANY* of this source code into another --- 6 unchanged lines hidden (view full) --- 20 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 21 * 22 */ 23 24 25/* 26 * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved. 27 * |
29 * $Id: server_init.c,v 1.8 2002/10/15 15:40:49 epeisach Exp $ 30 * $Source: /cvs/krbdev/krb5/src/lib/kadm5/srv/server_init.c,v $ | 28 * $Id: server_init.c 18584 2006-09-13 20:30:23Z raeburn $ 29 * $Source$ |
31 */ 32 33#if !defined(lint) && !defined(__CODECENTER__) 34static char *rcsid = "$Header: /cvs/krbdev/krb5/src/lib/kadm5/srv/server_init.c,v 1.8 2002/10/15 15:40:49 epeisach Exp $"; 35#endif 36 37#include <stdio.h> 38#include <stdlib.h> | 30 */ 31 32#if !defined(lint) && !defined(__CODECENTER__) 33static char *rcsid = "$Header: /cvs/krbdev/krb5/src/lib/kadm5/srv/server_init.c,v 1.8 2002/10/15 15:40:49 epeisach Exp $"; 34#endif 35 36#include <stdio.h> 37#include <stdlib.h> |
38#include <errno.h> |
|
39#include <com_err.h> | 39#include <com_err.h> |
40#include "k5-int.h" /* needed for gssapiP_krb5.h */ |
|
40#include <kadm5/admin.h> 41#include <krb5.h> 42#include "server_internal.h" 43#include <kdb/kdb_log.h> 44 45/* 46 * Function check_handle 47 * --- 198 unchanged lines hidden (view full) --- 246 if (params_in && (params_in->mask & ILLEGAL_PARAMS)) { 247 krb5_free_context(handle->context); 248 free_db_args(handle); 249 free(handle); 250 return KADM5_BAD_SERVER_PARAMS; 251 } 252#endif 253 | 41#include <kadm5/admin.h> 42#include <krb5.h> 43#include "server_internal.h" 44#include <kdb/kdb_log.h> 45 46/* 47 * Function check_handle 48 * --- 198 unchanged lines hidden (view full) --- 247 if (params_in && (params_in->mask & ILLEGAL_PARAMS)) { 248 krb5_free_context(handle->context); 249 free_db_args(handle); 250 free(handle); 251 return KADM5_BAD_SERVER_PARAMS; 252 } 253#endif 254 |
254 ret = kadm5_get_config_params(handle->context, (char *) NULL, 255 (char *) NULL, params_in, | 255 ret = kadm5_get_config_params(handle->context, 1, params_in, |
256 &handle->params); | 256 &handle->params); |
257 | |
258 if (ret) { 259 krb5_free_context(handle->context); 260 free_db_args(handle); 261 free(handle); 262 return(ret); 263 } 264 265#define REQUIRED_PARAMS (KADM5_CONFIG_REALM | KADM5_CONFIG_DBNAME | \ --- 258 unchanged lines hidden --- | 257 if (ret) { 258 krb5_free_context(handle->context); 259 free_db_args(handle); 260 free(handle); 261 return(ret); 262 } 263 264#define REQUIRED_PARAMS (KADM5_CONFIG_REALM | KADM5_CONFIG_DBNAME | \ --- 258 unchanged lines hidden --- |