1 /*
2  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 #ifndef _KRB5_OSCONF_H
7 #define	_KRB5_OSCONF_H
8 
9 #pragma ident	"%Z%%M%	%I%	%E% SMI"
10 
11 #ifdef	__cplusplus
12 extern "C" {
13 #endif
14 
15 /*
16  * include/krb5/stock/osconf.h
17  *
18  * Copyright 1990, 1991 by the Massachusetts Institute of Technology.
19  * All Rights Reserved.
20  *
21  * Export of this software from the United States of America may
22  *   require a specific license from the United States Government.
23  *   It is the responsibility of any person or organization contemplating
24  *   export to obtain such a license before exporting.
25  *
26  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
27  * distribute this software and its documentation for any purpose and
28  * without fee is hereby granted, provided that the above copyright
29  * notice appear in all copies and that both that copyright notice and
30  * this permission notice appear in supporting documentation, and that
31  * the name of M.I.T. not be used in advertising or publicity pertaining
32  * to distribution of the software without specific, written prior
33  * permission.  M.I.T. makes no representations about the suitability of
34  * this software for any purpose.  It is provided "as is" without express
35  * or implied warranty.
36  *
37  *
38  * Site- and OS- dependant configuration.
39  */
40 
41 
42 /* Don't try to pull in autoconf.h for Windows, since it's not used */
43 #ifndef KRB5_AUTOCONF__
44 #define	KRB5_AUTOCONF__
45 #include "autoconf.h"
46 #endif
47 
48 #define	DEFAULT_SECURE_PROFILE_PATH	"/etc/krb5/krb5.conf"
49 #define DEFAULT_PROFILE_PATH	DEFAULT_SECURE_PROFILE_PATH
50 #define	DEFAULT_KEYTAB_NAME	"FILE:/etc/krb5/krb5.keytab"
51 #define	DEFAULT_KEYTAB		"WRFILE:/etc/krb5/krb5.keytab"
52 
53 
54 #define	DEFAULT_KDB_FILE	"/var/krb5/principal"
55 #define	DEFAULT_KEYFILE_STUB	"/var/krb5/.k5."
56 #define	KRB5_DEFAULT_ADMIN_ACL	"/etc/krb5/krb5_adm.acl"
57 
58 /* Location of KDC profile */
59 #define	DEFAULT_KDC_PROFILE	"/etc/krb5/kdc.conf"
60 #define	KDC_PROFILE_ENV		"KRB5_KDC_PROFILE"
61 
62 /*
63  * SUNW14resync
64  * MIT 1.4 has changed to ENCTYPE_DES3_CBC_SHA1 but we stick with the old one
65  * for backward compat.
66  */
67 #define DEFAULT_KDC_ENCTYPE	ENCTYPE_DES_CBC_CRC
68 #define	KDCRCACHE		"dfl:krb5kdc_rcache"
69 
70 #define	KDC_PORTNAME		"kerberos" /* for /etc/services or equiv. */
71 #define	KDC_SECONDARY_PORTNAME	"kerberos-sec" /* For backwards */
72 					    /* compatibility with */
73 					    /* port 750 clients */
74 
75 #define	DEFAULT_KPASSWD_PORT	464 /* assigned by IANA */
76 #define	KPASSWD_PORTNAME "kpasswd"
77 
78 #define	KRB5_DEFAULT_PORT	88
79 #define	KRB5_DEFAULT_SEC_PORT	750
80 
81 #define	DEFAULT_KDC_UDP_PORTLIST	"88, 750"
82 /* Solaris Kerberos: enabled TCP by default on port 88 */
83 #define	DEFAULT_KDC_TCP_PORTLIST	"88"
84 
85 /* Solaris Kerberos: control # of kdc tcp connection */
86 #define	DEFAULT_KDC_TCP_CONNECTIONS	30
87 #define	MIN_KDC_TCP_CONNECTIONS	10
88 
89 /*
90  * Defaults for the KADM5 admin system.
91  */
92 #define	DEFAULT_KADM5_KEYTAB	"/etc/krb5/kadm5.keytab"
93 #define	DEFAULT_KADM5_ACL_FILE	"/etc/krb5/kadm5.acl"
94 #define	DEFAULT_KADM5_PORT	749 /* assigned by IANA */
95 
96 #define	MAX_DGRAM_SIZE	4096
97 #define	MAX_SKDC_TIMEOUT 30
98 #define	SKDC_TIMEOUT_SHIFT 2		/* left shift of timeout for backoff */
99 #define	SKDC_TIMEOUT_1 1		/* seconds for first timeout */
100 
101 #define	KRB5_ENV_CCNAME	"KRB5CCNAME"
102 
103 /*
104  * krb5 slave support follows
105  */
106 
107 #define	KPROP_DEFAULT_FILE "/var/krb5/slave_datatrans"
108 #define	KPROPD_DEFAULT_FILE "/var/krb5/from_master"
109 #define	KPROPD_DEFAULT_KDB5_UTIL "/usr/sbin/kdb5_util"
110 #define	KPROPD_DEFAULT_KRB_DB DEFAULT_KDB_FILE
111 #define	KPROPD_ACL_FILE "/etc/krb5/kpropd.acl"
112 
113 #define	HAVE_GETEUID	1
114 
115 #ifdef	__cplusplus
116 }
117 #endif
118 
119 #endif	/* !_KRB5_OSCONF_H */
120