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