1 /*
2  * Copyright 2007 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 /* Solaris Kerberos: default for where ldap bind passwds stored */
54 #define DEF_SERVICE_PASSWD_FILE "/var/krb5/service_passwd"
55 
56 
57 #define	DEFAULT_KDB_FILE	"/var/krb5/principal"
58 #define	DEFAULT_KEYFILE_STUB	"/var/krb5/.k5."
59 #define	KRB5_DEFAULT_ADMIN_ACL	"/etc/krb5/krb5_adm.acl"
60 
61 /* Location of KDC profile */
62 #define	DEFAULT_KDC_PROFILE	"/etc/krb5/kdc.conf"
63 #define	KDC_PROFILE_ENV		"KRB5_KDC_PROFILE"
64 
65 #define DEFAULT_KDB_LIB_PATH	{ "/usr/lib/krb5", NULL }
66 
67 /*
68  * SUNW14resync
69  * MIT 1.4 has changed to ENCTYPE_DES3_CBC_SHA1 but we stick with the old one
70  * for backward compat.
71  */
72 #define DEFAULT_KDC_ENCTYPE	ENCTYPE_DES_CBC_CRC
73 #define	KDCRCACHE		"dfl:krb5kdc_rcache"
74 
75 #define	KDC_PORTNAME		"kerberos" /* for /etc/services or equiv. */
76 #define	KDC_SECONDARY_PORTNAME	"kerberos-sec" /* For backwards */
77 					    /* compatibility with */
78 					    /* port 750 clients */
79 
80 #define	DEFAULT_KPASSWD_PORT	464 /* assigned by IANA */
81 #define	KPASSWD_PORTNAME "kpasswd"
82 
83 #define	KRB5_DEFAULT_PORT	88
84 #define	KRB5_DEFAULT_SEC_PORT	750
85 
86 #define	DEFAULT_KDC_UDP_PORTLIST	"88, 750"
87 /* Solaris Kerberos: enabled TCP by default on port 88 */
88 #define	DEFAULT_KDC_TCP_PORTLIST	"88"
89 
90 /* Solaris Kerberos: control # of kdc tcp connection */
91 #define	DEFAULT_KDC_TCP_CONNECTIONS	30
92 #define	MIN_KDC_TCP_CONNECTIONS	10
93 
94 /*
95  * Defaults for the KADM5 admin system.
96  */
97 #define	DEFAULT_KADM5_KEYTAB	"/etc/krb5/kadm5.keytab"
98 #define	DEFAULT_KADM5_ACL_FILE	"/etc/krb5/kadm5.acl"
99 #define	DEFAULT_KADM5_PORT	749 /* assigned by IANA */
100 
101 #define	MAX_DGRAM_SIZE	4096
102 #define	MAX_SKDC_TIMEOUT 30
103 #define	SKDC_TIMEOUT_SHIFT 2		/* left shift of timeout for backoff */
104 #define	SKDC_TIMEOUT_1 1		/* seconds for first timeout */
105 
106 #define	KRB5_ENV_CCNAME	"KRB5CCNAME"
107 
108 /*
109  * krb5 slave support follows
110  */
111 
112 #define	KPROP_DEFAULT_FILE "/var/krb5/slave_datatrans"
113 #define	KPROPD_DEFAULT_FILE "/var/krb5/from_master"
114 #define	KPROPD_DEFAULT_KDB5_UTIL "/usr/sbin/kdb5_util"
115 #define	KPROPD_DEFAULT_KRB_DB DEFAULT_KDB_FILE
116 #define	KPROPD_ACL_FILE "/etc/krb5/kpropd.acl"
117 
118 #define	HAVE_GETEUID	1
119 
120 #ifdef	__cplusplus
121 }
122 #endif
123 
124 #endif	/* !_KRB5_OSCONF_H */
125