Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/kadm5
File: admin.h
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
[0] Fix | Delete
/* lib/kadm5/admin.h */
[1] Fix | Delete
/*
[2] Fix | Delete
* Copyright 2001, 2008 by the Massachusetts Institute of Technology.
[3] Fix | Delete
* All Rights Reserved.
[4] Fix | Delete
*
[5] Fix | Delete
* Export of this software from the United States of America may
[6] Fix | Delete
* require a specific license from the United States Government.
[7] Fix | Delete
* It is the responsibility of any person or organization contemplating
[8] Fix | Delete
* export to obtain such a license before exporting.
[9] Fix | Delete
*
[10] Fix | Delete
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
[11] Fix | Delete
* distribute this software and its documentation for any purpose and
[12] Fix | Delete
* without fee is hereby granted, provided that the above copyright
[13] Fix | Delete
* notice appear in all copies and that both that copyright notice and
[14] Fix | Delete
* this permission notice appear in supporting documentation, and that
[15] Fix | Delete
* the name of M.I.T. not be used in advertising or publicity pertaining
[16] Fix | Delete
* to distribution of the software without specific, written prior
[17] Fix | Delete
* permission. Furthermore if you modify this software you must label
[18] Fix | Delete
* your software as modified software and not distribute it in such a
[19] Fix | Delete
* fashion that it might be confused with the original M.I.T. software.
[20] Fix | Delete
* M.I.T. makes no representations about the suitability of
[21] Fix | Delete
* this software for any purpose. It is provided "as is" without express
[22] Fix | Delete
* or implied warranty.
[23] Fix | Delete
*/
[24] Fix | Delete
/*
[25] Fix | Delete
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
[26] Fix | Delete
*
[27] Fix | Delete
* $Header$
[28] Fix | Delete
*/
[29] Fix | Delete
[30] Fix | Delete
/*
[31] Fix | Delete
* This API is not considered as stable as the main krb5 API.
[32] Fix | Delete
*
[33] Fix | Delete
* - We may make arbitrary incompatible changes between feature
[34] Fix | Delete
* releases (e.g. from 1.7 to 1.8).
[35] Fix | Delete
* - We will make some effort to avoid making incompatible changes for
[36] Fix | Delete
* bugfix releases, but will make them if necessary.
[37] Fix | Delete
*/
[38] Fix | Delete
[39] Fix | Delete
#ifndef __KADM5_ADMIN_H__
[40] Fix | Delete
#define __KADM5_ADMIN_H__
[41] Fix | Delete
[42] Fix | Delete
#include <sys/types.h>
[43] Fix | Delete
#include <gssrpc/rpc.h>
[44] Fix | Delete
#include <krb5.h>
[45] Fix | Delete
#include <kdb.h>
[46] Fix | Delete
#include <com_err.h>
[47] Fix | Delete
#include <kadm5/kadm_err.h>
[48] Fix | Delete
#include <kadm5/chpass_util_strings.h>
[49] Fix | Delete
[50] Fix | Delete
#ifndef KADM5INT_BEGIN_DECLS
[51] Fix | Delete
#if defined(__cplusplus)
[52] Fix | Delete
#define KADM5INT_BEGIN_DECLS extern "C" {
[53] Fix | Delete
#define KADM5INT_END_DECLS }
[54] Fix | Delete
#else
[55] Fix | Delete
#define KADM5INT_BEGIN_DECLS
[56] Fix | Delete
#define KADM5INT_END_DECLS
[57] Fix | Delete
#endif
[58] Fix | Delete
#endif
[59] Fix | Delete
[60] Fix | Delete
KADM5INT_BEGIN_DECLS
[61] Fix | Delete
[62] Fix | Delete
#define KADM5_ADMIN_SERVICE "kadmin/admin"
[63] Fix | Delete
#define KADM5_CHANGEPW_SERVICE "kadmin/changepw"
[64] Fix | Delete
#define KADM5_HIST_PRINCIPAL "kadmin/history"
[65] Fix | Delete
#define KADM5_KIPROP_HOST_SERVICE "kiprop"
[66] Fix | Delete
[67] Fix | Delete
typedef krb5_principal kadm5_princ_t;
[68] Fix | Delete
typedef char *kadm5_policy_t;
[69] Fix | Delete
typedef long kadm5_ret_t;
[70] Fix | Delete
[71] Fix | Delete
#define KADM5_PW_FIRST_PROMPT \
[72] Fix | Delete
(error_message(CHPASS_UTIL_NEW_PASSWORD_PROMPT))
[73] Fix | Delete
#define KADM5_PW_SECOND_PROMPT \
[74] Fix | Delete
(error_message(CHPASS_UTIL_NEW_PASSWORD_AGAIN_PROMPT))
[75] Fix | Delete
[76] Fix | Delete
/*
[77] Fix | Delete
* Successful return code
[78] Fix | Delete
*/
[79] Fix | Delete
#define KADM5_OK 0
[80] Fix | Delete
[81] Fix | Delete
/*
[82] Fix | Delete
* Field masks
[83] Fix | Delete
*/
[84] Fix | Delete
[85] Fix | Delete
/* kadm5_principal_ent_t */
[86] Fix | Delete
#define KADM5_PRINCIPAL 0x000001
[87] Fix | Delete
#define KADM5_PRINC_EXPIRE_TIME 0x000002
[88] Fix | Delete
#define KADM5_PW_EXPIRATION 0x000004
[89] Fix | Delete
#define KADM5_LAST_PWD_CHANGE 0x000008
[90] Fix | Delete
#define KADM5_ATTRIBUTES 0x000010
[91] Fix | Delete
#define KADM5_MAX_LIFE 0x000020
[92] Fix | Delete
#define KADM5_MOD_TIME 0x000040
[93] Fix | Delete
#define KADM5_MOD_NAME 0x000080
[94] Fix | Delete
#define KADM5_KVNO 0x000100
[95] Fix | Delete
#define KADM5_MKVNO 0x000200
[96] Fix | Delete
#define KADM5_AUX_ATTRIBUTES 0x000400
[97] Fix | Delete
#define KADM5_POLICY 0x000800
[98] Fix | Delete
#define KADM5_POLICY_CLR 0x001000
[99] Fix | Delete
/* version 2 masks */
[100] Fix | Delete
#define KADM5_MAX_RLIFE 0x002000
[101] Fix | Delete
#define KADM5_LAST_SUCCESS 0x004000
[102] Fix | Delete
#define KADM5_LAST_FAILED 0x008000
[103] Fix | Delete
#define KADM5_FAIL_AUTH_COUNT 0x010000
[104] Fix | Delete
#define KADM5_KEY_DATA 0x020000
[105] Fix | Delete
#define KADM5_TL_DATA 0x040000
[106] Fix | Delete
#ifdef notyet /* Novell */
[107] Fix | Delete
#define KADM5_CPW_FUNCTION 0x080000
[108] Fix | Delete
#define KADM5_RANDKEY_USED 0x100000
[109] Fix | Delete
#endif
[110] Fix | Delete
#define KADM5_LOAD 0x200000
[111] Fix | Delete
#define KADM5_KEY_HIST 0x400000
[112] Fix | Delete
[113] Fix | Delete
/* all but KEY_DATA, TL_DATA, LOAD */
[114] Fix | Delete
#define KADM5_PRINCIPAL_NORMAL_MASK 0x41ffff
[115] Fix | Delete
[116] Fix | Delete
[117] Fix | Delete
/* kadm5_policy_ent_t */
[118] Fix | Delete
#define KADM5_PW_MAX_LIFE 0x00004000
[119] Fix | Delete
#define KADM5_PW_MIN_LIFE 0x00008000
[120] Fix | Delete
#define KADM5_PW_MIN_LENGTH 0x00010000
[121] Fix | Delete
#define KADM5_PW_MIN_CLASSES 0x00020000
[122] Fix | Delete
#define KADM5_PW_HISTORY_NUM 0x00040000
[123] Fix | Delete
#define KADM5_REF_COUNT 0x00080000
[124] Fix | Delete
#define KADM5_PW_MAX_FAILURE 0x00100000
[125] Fix | Delete
#define KADM5_PW_FAILURE_COUNT_INTERVAL 0x00200000
[126] Fix | Delete
#define KADM5_PW_LOCKOUT_DURATION 0x00400000
[127] Fix | Delete
#define KADM5_POLICY_ATTRIBUTES 0x00800000
[128] Fix | Delete
#define KADM5_POLICY_MAX_LIFE 0x01000000
[129] Fix | Delete
#define KADM5_POLICY_MAX_RLIFE 0x02000000
[130] Fix | Delete
#define KADM5_POLICY_ALLOWED_KEYSALTS 0x04000000
[131] Fix | Delete
#define KADM5_POLICY_TL_DATA 0x08000000
[132] Fix | Delete
[133] Fix | Delete
/* kadm5_config_params */
[134] Fix | Delete
#define KADM5_CONFIG_REALM 0x00000001
[135] Fix | Delete
#define KADM5_CONFIG_DBNAME 0x00000002
[136] Fix | Delete
#define KADM5_CONFIG_MKEY_NAME 0x00000004
[137] Fix | Delete
#define KADM5_CONFIG_MAX_LIFE 0x00000008
[138] Fix | Delete
#define KADM5_CONFIG_MAX_RLIFE 0x00000010
[139] Fix | Delete
#define KADM5_CONFIG_EXPIRATION 0x00000020
[140] Fix | Delete
#define KADM5_CONFIG_FLAGS 0x00000040
[141] Fix | Delete
/*#define KADM5_CONFIG_ADMIN_KEYTAB 0x00000080*/
[142] Fix | Delete
#define KADM5_CONFIG_STASH_FILE 0x00000100
[143] Fix | Delete
#define KADM5_CONFIG_ENCTYPE 0x00000200
[144] Fix | Delete
#define KADM5_CONFIG_ADBNAME 0x00000400
[145] Fix | Delete
#define KADM5_CONFIG_ADB_LOCKFILE 0x00000800
[146] Fix | Delete
#define KADM5_CONFIG_KADMIND_LISTEN 0x00001000
[147] Fix | Delete
#define KADM5_CONFIG_ACL_FILE 0x00002000
[148] Fix | Delete
#define KADM5_CONFIG_KADMIND_PORT 0x00004000
[149] Fix | Delete
#define KADM5_CONFIG_ENCTYPES 0x00008000
[150] Fix | Delete
#define KADM5_CONFIG_ADMIN_SERVER 0x00010000
[151] Fix | Delete
#define KADM5_CONFIG_DICT_FILE 0x00020000
[152] Fix | Delete
#define KADM5_CONFIG_MKEY_FROM_KBD 0x00040000
[153] Fix | Delete
#define KADM5_CONFIG_KPASSWD_PORT 0x00080000
[154] Fix | Delete
#define KADM5_CONFIG_OLD_AUTH_GSSAPI 0x00100000
[155] Fix | Delete
#define KADM5_CONFIG_NO_AUTH 0x00200000
[156] Fix | Delete
#define KADM5_CONFIG_AUTH_NOFALLBACK 0x00400000
[157] Fix | Delete
#define KADM5_CONFIG_KPASSWD_LISTEN 0x00800000
[158] Fix | Delete
#define KADM5_CONFIG_IPROP_ENABLED 0x01000000
[159] Fix | Delete
#define KADM5_CONFIG_ULOG_SIZE 0x02000000
[160] Fix | Delete
#define KADM5_CONFIG_POLL_TIME 0x04000000
[161] Fix | Delete
#define KADM5_CONFIG_IPROP_LOGFILE 0x08000000
[162] Fix | Delete
#define KADM5_CONFIG_IPROP_PORT 0x10000000
[163] Fix | Delete
#define KADM5_CONFIG_KVNO 0x20000000
[164] Fix | Delete
#define KADM5_CONFIG_IPROP_RESYNC_TIMEOUT 0x40000000
[165] Fix | Delete
#define KADM5_CONFIG_IPROP_LISTEN 0x80000000
[166] Fix | Delete
/*
[167] Fix | Delete
* permission bits
[168] Fix | Delete
*/
[169] Fix | Delete
#define KADM5_PRIV_GET 0x01
[170] Fix | Delete
#define KADM5_PRIV_ADD 0x02
[171] Fix | Delete
#define KADM5_PRIV_MODIFY 0x04
[172] Fix | Delete
#define KADM5_PRIV_DELETE 0x08
[173] Fix | Delete
[174] Fix | Delete
/*
[175] Fix | Delete
* API versioning constants
[176] Fix | Delete
*/
[177] Fix | Delete
#define KADM5_MASK_BITS 0xffffff00
[178] Fix | Delete
[179] Fix | Delete
#define KADM5_STRUCT_VERSION_MASK 0x12345600
[180] Fix | Delete
#define KADM5_STRUCT_VERSION_1 (KADM5_STRUCT_VERSION_MASK|0x01)
[181] Fix | Delete
#define KADM5_STRUCT_VERSION KADM5_STRUCT_VERSION_1
[182] Fix | Delete
[183] Fix | Delete
#define KADM5_API_VERSION_MASK 0x12345700
[184] Fix | Delete
#define KADM5_API_VERSION_2 (KADM5_API_VERSION_MASK|0x02)
[185] Fix | Delete
#define KADM5_API_VERSION_3 (KADM5_API_VERSION_MASK|0x03)
[186] Fix | Delete
#define KADM5_API_VERSION_4 (KADM5_API_VERSION_MASK|0x04)
[187] Fix | Delete
[188] Fix | Delete
typedef struct _kadm5_principal_ent_t {
[189] Fix | Delete
krb5_principal principal;
[190] Fix | Delete
krb5_timestamp princ_expire_time;
[191] Fix | Delete
krb5_timestamp last_pwd_change;
[192] Fix | Delete
krb5_timestamp pw_expiration;
[193] Fix | Delete
krb5_deltat max_life;
[194] Fix | Delete
krb5_principal mod_name;
[195] Fix | Delete
krb5_timestamp mod_date;
[196] Fix | Delete
krb5_flags attributes;
[197] Fix | Delete
krb5_kvno kvno;
[198] Fix | Delete
krb5_kvno mkvno;
[199] Fix | Delete
char *policy;
[200] Fix | Delete
long aux_attributes;
[201] Fix | Delete
[202] Fix | Delete
/* version 2 fields */
[203] Fix | Delete
krb5_deltat max_renewable_life;
[204] Fix | Delete
krb5_timestamp last_success;
[205] Fix | Delete
krb5_timestamp last_failed;
[206] Fix | Delete
krb5_kvno fail_auth_count;
[207] Fix | Delete
krb5_int16 n_key_data;
[208] Fix | Delete
krb5_int16 n_tl_data;
[209] Fix | Delete
krb5_tl_data *tl_data;
[210] Fix | Delete
krb5_key_data *key_data;
[211] Fix | Delete
} kadm5_principal_ent_rec, *kadm5_principal_ent_t;
[212] Fix | Delete
[213] Fix | Delete
typedef struct _kadm5_policy_ent_t {
[214] Fix | Delete
char *policy;
[215] Fix | Delete
long pw_min_life;
[216] Fix | Delete
long pw_max_life;
[217] Fix | Delete
long pw_min_length;
[218] Fix | Delete
long pw_min_classes;
[219] Fix | Delete
long pw_history_num;
[220] Fix | Delete
long policy_refcnt; /* no longer used */
[221] Fix | Delete
[222] Fix | Delete
/* version 3 fields */
[223] Fix | Delete
krb5_kvno pw_max_fail;
[224] Fix | Delete
krb5_deltat pw_failcnt_interval;
[225] Fix | Delete
krb5_deltat pw_lockout_duration;
[226] Fix | Delete
[227] Fix | Delete
/* version 4 fields */
[228] Fix | Delete
krb5_flags attributes;
[229] Fix | Delete
krb5_deltat max_life;
[230] Fix | Delete
krb5_deltat max_renewable_life;
[231] Fix | Delete
char *allowed_keysalts;
[232] Fix | Delete
krb5_int16 n_tl_data;
[233] Fix | Delete
krb5_tl_data *tl_data;
[234] Fix | Delete
} kadm5_policy_ent_rec, *kadm5_policy_ent_t;
[235] Fix | Delete
[236] Fix | Delete
/*
[237] Fix | Delete
* Data structure returned by kadm5_get_config_params()
[238] Fix | Delete
*/
[239] Fix | Delete
typedef struct _kadm5_config_params {
[240] Fix | Delete
long mask;
[241] Fix | Delete
char * realm;
[242] Fix | Delete
int kadmind_port;
[243] Fix | Delete
int kpasswd_port;
[244] Fix | Delete
[245] Fix | Delete
char * admin_server;
[246] Fix | Delete
#ifdef notyet /* Novell */ /* ABI change? */
[247] Fix | Delete
char * kpasswd_server;
[248] Fix | Delete
#endif
[249] Fix | Delete
[250] Fix | Delete
/* Deprecated except for db2 backwards compatibility. Don't add
[251] Fix | Delete
new uses except as fallbacks for parameters that should be
[252] Fix | Delete
specified in the database module section of the config
[253] Fix | Delete
file. */
[254] Fix | Delete
char * dbname;
[255] Fix | Delete
[256] Fix | Delete
char * acl_file;
[257] Fix | Delete
char * dict_file;
[258] Fix | Delete
[259] Fix | Delete
int mkey_from_kbd;
[260] Fix | Delete
char * stash_file;
[261] Fix | Delete
char * mkey_name;
[262] Fix | Delete
krb5_enctype enctype;
[263] Fix | Delete
krb5_deltat max_life;
[264] Fix | Delete
krb5_deltat max_rlife;
[265] Fix | Delete
krb5_timestamp expiration;
[266] Fix | Delete
krb5_flags flags;
[267] Fix | Delete
krb5_key_salt_tuple *keysalts;
[268] Fix | Delete
krb5_int32 num_keysalts;
[269] Fix | Delete
krb5_kvno kvno;
[270] Fix | Delete
bool_t iprop_enabled;
[271] Fix | Delete
uint32_t iprop_ulogsize;
[272] Fix | Delete
krb5_deltat iprop_poll_time;
[273] Fix | Delete
char * iprop_logfile;
[274] Fix | Delete
/* char * iprop_server;*/
[275] Fix | Delete
int iprop_port;
[276] Fix | Delete
int iprop_resync_timeout;
[277] Fix | Delete
char * kadmind_listen;
[278] Fix | Delete
char * kpasswd_listen;
[279] Fix | Delete
char * iprop_listen;
[280] Fix | Delete
} kadm5_config_params;
[281] Fix | Delete
[282] Fix | Delete
typedef struct _kadm5_key_data {
[283] Fix | Delete
krb5_kvno kvno;
[284] Fix | Delete
krb5_keyblock key;
[285] Fix | Delete
krb5_keysalt salt;
[286] Fix | Delete
} kadm5_key_data;
[287] Fix | Delete
[288] Fix | Delete
/*
[289] Fix | Delete
* functions
[290] Fix | Delete
*/
[291] Fix | Delete
[292] Fix | Delete
krb5_error_code kadm5_get_config_params(krb5_context context,
[293] Fix | Delete
int use_kdc_config,
[294] Fix | Delete
kadm5_config_params *params_in,
[295] Fix | Delete
kadm5_config_params *params_out);
[296] Fix | Delete
[297] Fix | Delete
krb5_error_code kadm5_free_config_params(krb5_context context,
[298] Fix | Delete
kadm5_config_params *params);
[299] Fix | Delete
[300] Fix | Delete
krb5_error_code kadm5_get_admin_service_name(krb5_context, char *,
[301] Fix | Delete
char *, size_t);
[302] Fix | Delete
[303] Fix | Delete
/*
[304] Fix | Delete
* For all initialization functions, the caller must first initialize
[305] Fix | Delete
* a context with kadm5_init_krb5_context which will survive as long
[306] Fix | Delete
* as the resulting handle. The caller should free the context with
[307] Fix | Delete
* krb5_free_context.
[308] Fix | Delete
*/
[309] Fix | Delete
[310] Fix | Delete
kadm5_ret_t kadm5_init(krb5_context context, char *client_name,
[311] Fix | Delete
char *pass, char *service_name,
[312] Fix | Delete
kadm5_config_params *params,
[313] Fix | Delete
krb5_ui_4 struct_version,
[314] Fix | Delete
krb5_ui_4 api_version,
[315] Fix | Delete
char **db_args,
[316] Fix | Delete
void **server_handle);
[317] Fix | Delete
kadm5_ret_t kadm5_init_anonymous(krb5_context context, char *client_name,
[318] Fix | Delete
char *service_name,
[319] Fix | Delete
kadm5_config_params *params,
[320] Fix | Delete
krb5_ui_4 struct_version,
[321] Fix | Delete
krb5_ui_4 api_version,
[322] Fix | Delete
char **db_args,
[323] Fix | Delete
void **server_handle);
[324] Fix | Delete
kadm5_ret_t kadm5_init_with_password(krb5_context context,
[325] Fix | Delete
char *client_name,
[326] Fix | Delete
char *pass,
[327] Fix | Delete
char *service_name,
[328] Fix | Delete
kadm5_config_params *params,
[329] Fix | Delete
krb5_ui_4 struct_version,
[330] Fix | Delete
krb5_ui_4 api_version,
[331] Fix | Delete
char **db_args,
[332] Fix | Delete
void **server_handle);
[333] Fix | Delete
kadm5_ret_t kadm5_init_with_skey(krb5_context context,
[334] Fix | Delete
char *client_name,
[335] Fix | Delete
char *keytab,
[336] Fix | Delete
char *service_name,
[337] Fix | Delete
kadm5_config_params *params,
[338] Fix | Delete
krb5_ui_4 struct_version,
[339] Fix | Delete
krb5_ui_4 api_version,
[340] Fix | Delete
char **db_args,
[341] Fix | Delete
void **server_handle);
[342] Fix | Delete
kadm5_ret_t kadm5_init_with_creds(krb5_context context,
[343] Fix | Delete
char *client_name,
[344] Fix | Delete
krb5_ccache cc,
[345] Fix | Delete
char *service_name,
[346] Fix | Delete
kadm5_config_params *params,
[347] Fix | Delete
krb5_ui_4 struct_version,
[348] Fix | Delete
krb5_ui_4 api_version,
[349] Fix | Delete
char **db_args,
[350] Fix | Delete
void **server_handle);
[351] Fix | Delete
kadm5_ret_t kadm5_lock(void *server_handle);
[352] Fix | Delete
kadm5_ret_t kadm5_unlock(void *server_handle);
[353] Fix | Delete
kadm5_ret_t kadm5_flush(void *server_handle);
[354] Fix | Delete
kadm5_ret_t kadm5_destroy(void *server_handle);
[355] Fix | Delete
kadm5_ret_t kadm5_create_principal(void *server_handle,
[356] Fix | Delete
kadm5_principal_ent_t ent,
[357] Fix | Delete
long mask, char *pass);
[358] Fix | Delete
kadm5_ret_t kadm5_create_principal_3(void *server_handle,
[359] Fix | Delete
kadm5_principal_ent_t ent,
[360] Fix | Delete
long mask,
[361] Fix | Delete
int n_ks_tuple,
[362] Fix | Delete
krb5_key_salt_tuple *ks_tuple,
[363] Fix | Delete
char *pass);
[364] Fix | Delete
kadm5_ret_t kadm5_delete_principal(void *server_handle,
[365] Fix | Delete
krb5_principal principal);
[366] Fix | Delete
kadm5_ret_t kadm5_modify_principal(void *server_handle,
[367] Fix | Delete
kadm5_principal_ent_t ent,
[368] Fix | Delete
long mask);
[369] Fix | Delete
kadm5_ret_t kadm5_rename_principal(void *server_handle,
[370] Fix | Delete
krb5_principal,krb5_principal);
[371] Fix | Delete
kadm5_ret_t kadm5_get_principal(void *server_handle,
[372] Fix | Delete
krb5_principal principal,
[373] Fix | Delete
kadm5_principal_ent_t ent,
[374] Fix | Delete
long mask);
[375] Fix | Delete
kadm5_ret_t kadm5_chpass_principal(void *server_handle,
[376] Fix | Delete
krb5_principal principal,
[377] Fix | Delete
char *pass);
[378] Fix | Delete
kadm5_ret_t kadm5_chpass_principal_3(void *server_handle,
[379] Fix | Delete
krb5_principal principal,
[380] Fix | Delete
krb5_boolean keepold,
[381] Fix | Delete
int n_ks_tuple,
[382] Fix | Delete
krb5_key_salt_tuple *ks_tuple,
[383] Fix | Delete
char *pass);
[384] Fix | Delete
kadm5_ret_t kadm5_randkey_principal(void *server_handle,
[385] Fix | Delete
krb5_principal principal,
[386] Fix | Delete
krb5_keyblock **keyblocks,
[387] Fix | Delete
int *n_keys);
[388] Fix | Delete
kadm5_ret_t kadm5_randkey_principal_3(void *server_handle,
[389] Fix | Delete
krb5_principal principal,
[390] Fix | Delete
krb5_boolean keepold,
[391] Fix | Delete
int n_ks_tuple,
[392] Fix | Delete
krb5_key_salt_tuple *ks_tuple,
[393] Fix | Delete
krb5_keyblock **keyblocks,
[394] Fix | Delete
int *n_keys);
[395] Fix | Delete
[396] Fix | Delete
kadm5_ret_t kadm5_setkey_principal(void *server_handle,
[397] Fix | Delete
krb5_principal principal,
[398] Fix | Delete
krb5_keyblock *keyblocks,
[399] Fix | Delete
int n_keys);
[400] Fix | Delete
[401] Fix | Delete
kadm5_ret_t kadm5_setkey_principal_3(void *server_handle,
[402] Fix | Delete
krb5_principal principal,
[403] Fix | Delete
krb5_boolean keepold,
[404] Fix | Delete
int n_ks_tuple,
[405] Fix | Delete
krb5_key_salt_tuple *ks_tuple,
[406] Fix | Delete
krb5_keyblock *keyblocks,
[407] Fix | Delete
int n_keys);
[408] Fix | Delete
[409] Fix | Delete
kadm5_ret_t kadm5_setkey_principal_4(void *server_handle,
[410] Fix | Delete
krb5_principal principal,
[411] Fix | Delete
krb5_boolean keepold,
[412] Fix | Delete
kadm5_key_data *key_data,
[413] Fix | Delete
int n_key_data);
[414] Fix | Delete
[415] Fix | Delete
kadm5_ret_t kadm5_decrypt_key(void *server_handle,
[416] Fix | Delete
kadm5_principal_ent_t entry, krb5_int32
[417] Fix | Delete
ktype, krb5_int32 stype, krb5_int32
[418] Fix | Delete
kvno, krb5_keyblock *keyblock,
[419] Fix | Delete
krb5_keysalt *keysalt, int *kvnop);
[420] Fix | Delete
[421] Fix | Delete
kadm5_ret_t kadm5_create_policy(void *server_handle,
[422] Fix | Delete
kadm5_policy_ent_t ent,
[423] Fix | Delete
long mask);
[424] Fix | Delete
kadm5_ret_t kadm5_delete_policy(void *server_handle,
[425] Fix | Delete
kadm5_policy_t policy);
[426] Fix | Delete
kadm5_ret_t kadm5_modify_policy(void *server_handle,
[427] Fix | Delete
kadm5_policy_ent_t ent,
[428] Fix | Delete
long mask);
[429] Fix | Delete
kadm5_ret_t kadm5_get_policy(void *server_handle,
[430] Fix | Delete
kadm5_policy_t policy,
[431] Fix | Delete
kadm5_policy_ent_t ent);
[432] Fix | Delete
kadm5_ret_t kadm5_get_privs(void *server_handle,
[433] Fix | Delete
long *privs);
[434] Fix | Delete
[435] Fix | Delete
kadm5_ret_t kadm5_chpass_principal_util(void *server_handle,
[436] Fix | Delete
krb5_principal princ,
[437] Fix | Delete
char *new_pw,
[438] Fix | Delete
char **ret_pw,
[439] Fix | Delete
char *msg_ret,
[440] Fix | Delete
unsigned int msg_len);
[441] Fix | Delete
[442] Fix | Delete
kadm5_ret_t kadm5_free_principal_ent(void *server_handle,
[443] Fix | Delete
kadm5_principal_ent_t
[444] Fix | Delete
ent);
[445] Fix | Delete
kadm5_ret_t kadm5_free_policy_ent(void *server_handle,
[446] Fix | Delete
kadm5_policy_ent_t ent);
[447] Fix | Delete
[448] Fix | Delete
kadm5_ret_t kadm5_get_principals(void *server_handle,
[449] Fix | Delete
char *exp, char ***princs,
[450] Fix | Delete
int *count);
[451] Fix | Delete
[452] Fix | Delete
kadm5_ret_t kadm5_get_policies(void *server_handle,
[453] Fix | Delete
char *exp, char ***pols,
[454] Fix | Delete
int *count);
[455] Fix | Delete
[456] Fix | Delete
kadm5_ret_t kadm5_free_key_data(void *server_handle,
[457] Fix | Delete
krb5_int16 *n_key_data,
[458] Fix | Delete
krb5_key_data *key_data);
[459] Fix | Delete
[460] Fix | Delete
kadm5_ret_t kadm5_free_name_list(void *server_handle, char **names,
[461] Fix | Delete
int count);
[462] Fix | Delete
[463] Fix | Delete
krb5_error_code kadm5_init_krb5_context (krb5_context *);
[464] Fix | Delete
[465] Fix | Delete
krb5_error_code kadm5_init_iprop(void *server_handle, char **db_args);
[466] Fix | Delete
[467] Fix | Delete
kadm5_ret_t kadm5_get_principal_keys(void *server_handle,
[468] Fix | Delete
krb5_principal principal,
[469] Fix | Delete
krb5_kvno kvno,
[470] Fix | Delete
kadm5_key_data **key_data,
[471] Fix | Delete
int *n_key_data);
[472] Fix | Delete
[473] Fix | Delete
kadm5_ret_t kadm5_purgekeys(void *server_handle,
[474] Fix | Delete
krb5_principal principal,
[475] Fix | Delete
int keepkvno);
[476] Fix | Delete
[477] Fix | Delete
kadm5_ret_t kadm5_get_strings(void *server_handle,
[478] Fix | Delete
krb5_principal principal,
[479] Fix | Delete
krb5_string_attr **strings_out,
[480] Fix | Delete
int *count_out);
[481] Fix | Delete
[482] Fix | Delete
kadm5_ret_t kadm5_set_string(void *server_handle,
[483] Fix | Delete
krb5_principal principal,
[484] Fix | Delete
const char *key,
[485] Fix | Delete
const char *value);
[486] Fix | Delete
[487] Fix | Delete
kadm5_ret_t kadm5_free_strings(void *server_handle,
[488] Fix | Delete
krb5_string_attr *strings,
[489] Fix | Delete
int count);
[490] Fix | Delete
[491] Fix | Delete
kadm5_ret_t kadm5_free_kadm5_key_data(krb5_context context, int n_key_data,
[492] Fix | Delete
kadm5_key_data *key_data);
[493] Fix | Delete
[494] Fix | Delete
KADM5INT_END_DECLS
[495] Fix | Delete
[496] Fix | Delete
#endif /* __KADM5_ADMIN_H__ */
[497] Fix | Delete
[498] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function