1*4960Swillf /* 2*4960Swillf * kadmin/ldap_util/kdb5_ldap_realm.h 3*4960Swillf */ 4*4960Swillf 5*4960Swillf /* Copyright (c) 2004-2005, Novell, Inc. 6*4960Swillf * All rights reserved. 7*4960Swillf * 8*4960Swillf * Redistribution and use in source and binary forms, with or without 9*4960Swillf * modification, are permitted provided that the following conditions are met: 10*4960Swillf * 11*4960Swillf * * Redistributions of source code must retain the above copyright notice, 12*4960Swillf * this list of conditions and the following disclaimer. 13*4960Swillf * * Redistributions in binary form must reproduce the above copyright 14*4960Swillf * notice, this list of conditions and the following disclaimer in the 15*4960Swillf * documentation and/or other materials provided with the distribution. 16*4960Swillf * * The copyright holder's name is not used to endorse or promote products 17*4960Swillf * derived from this software without specific prior written permission. 18*4960Swillf * 19*4960Swillf * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20*4960Swillf * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21*4960Swillf * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22*4960Swillf * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 23*4960Swillf * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24*4960Swillf * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25*4960Swillf * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26*4960Swillf * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27*4960Swillf * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28*4960Swillf * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29*4960Swillf * POSSIBILITY OF SUCH DAMAGE. 30*4960Swillf */ 31*4960Swillf 32*4960Swillf #ifndef _KDB5_LDAP_REALM_H_ 33*4960Swillf #define _KDB5_LDAP_REALM_H_ 34*4960Swillf 35*4960Swillf #pragma ident "%Z%%M% %I% %E% SMI" 36*4960Swillf 37*4960Swillf #define BUFF_LEN 64 /* Max len of enctype string */ 38*4960Swillf #define MAX_PRINC_SIZE 256 39*4960Swillf 40*4960Swillf enum ap_op { 41*4960Swillf NULL_KEY, /* setup null keys */ 42*4960Swillf MASTER_KEY, /* use master key as new key */ 43*4960Swillf TGT_KEY /* special handling for tgt key */ 44*4960Swillf }; 45*4960Swillf 46*4960Swillf struct realm_info { 47*4960Swillf krb5_deltat max_life; 48*4960Swillf krb5_deltat max_rlife; 49*4960Swillf krb5_timestamp expiration; 50*4960Swillf krb5_flags flags; 51*4960Swillf krb5_keyblock *key; 52*4960Swillf krb5_int32 nkslist; 53*4960Swillf krb5_key_salt_tuple *kslist; 54*4960Swillf }; 55*4960Swillf 56*4960Swillf struct iterate_args { 57*4960Swillf krb5_context ctx; 58*4960Swillf struct realm_info *rblock; 59*4960Swillf krb5_db_entry *dbentp; 60*4960Swillf }; 61*4960Swillf 62*4960Swillf extern void kdb5_ldap_create (int argc, char **argv); 63*4960Swillf extern void kdb5_ldap_destroy (int argc, char **argv); 64*4960Swillf extern void kdb5_ldap_modify (int argc, char **argv); 65*4960Swillf extern void kdb5_ldap_view (int argc, char **argv); 66*4960Swillf extern void kdb5_ldap_list (int argc, char **argv); 67*4960Swillf 68*4960Swillf #endif /* _KDB5_LDAP_REALM_H_ */ 69