xref: /onnv-gate/usr/src/lib/gss_mechs/mech_krb5/include/osconf.h (revision 7934:6aeeafc994de)
10Sstevel@tonic-gate /*
2*7934SMark.Phalan@Sun.COM  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
30Sstevel@tonic-gate  * Use is subject to license terms.
40Sstevel@tonic-gate  */
50Sstevel@tonic-gate 
60Sstevel@tonic-gate 
70Sstevel@tonic-gate /*
80Sstevel@tonic-gate  * include/krb5/stock/osconf.h
90Sstevel@tonic-gate  *
10*7934SMark.Phalan@Sun.COM  * Copyright 1990,1991 by the Massachusetts Institute of Technology.
110Sstevel@tonic-gate  * All Rights Reserved.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * Export of this software from the United States of America may
140Sstevel@tonic-gate  *   require a specific license from the United States Government.
150Sstevel@tonic-gate  *   It is the responsibility of any person or organization contemplating
160Sstevel@tonic-gate  *   export to obtain such a license before exporting.
17*7934SMark.Phalan@Sun.COM  *
180Sstevel@tonic-gate  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
190Sstevel@tonic-gate  * distribute this software and its documentation for any purpose and
200Sstevel@tonic-gate  * without fee is hereby granted, provided that the above copyright
210Sstevel@tonic-gate  * notice appear in all copies and that both that copyright notice and
220Sstevel@tonic-gate  * this permission notice appear in supporting documentation, and that
230Sstevel@tonic-gate  * the name of M.I.T. not be used in advertising or publicity pertaining
240Sstevel@tonic-gate  * to distribution of the software without specific, written prior
25*7934SMark.Phalan@Sun.COM  * permission.  Furthermore if you modify this software you must label
26*7934SMark.Phalan@Sun.COM  * your software as modified software and not distribute it in such a
27*7934SMark.Phalan@Sun.COM  * fashion that it might be confused with the original M.I.T. software.
28*7934SMark.Phalan@Sun.COM  * M.I.T. makes no representations about the suitability of
290Sstevel@tonic-gate  * this software for any purpose.  It is provided "as is" without express
300Sstevel@tonic-gate  * or implied warranty.
31*7934SMark.Phalan@Sun.COM  *
320Sstevel@tonic-gate  *
330Sstevel@tonic-gate  * Site- and OS- dependant configuration.
340Sstevel@tonic-gate  */
350Sstevel@tonic-gate 
36*7934SMark.Phalan@Sun.COM #ifndef KRB5_OSCONF__
37*7934SMark.Phalan@Sun.COM #define KRB5_OSCONF__
380Sstevel@tonic-gate 
39*7934SMark.Phalan@Sun.COM #if !defined(_WIN32)
40*7934SMark.Phalan@Sun.COM     /* Don't try to pull in autoconf.h for Windows, since it's not used */
410Sstevel@tonic-gate #ifndef KRB5_AUTOCONF__
42*7934SMark.Phalan@Sun.COM #define KRB5_AUTOCONF__
430Sstevel@tonic-gate #include "autoconf.h"
440Sstevel@tonic-gate #endif
45*7934SMark.Phalan@Sun.COM #endif
460Sstevel@tonic-gate 
47*7934SMark.Phalan@Sun.COM #if defined(__MACH__) && defined(__APPLE__)
48*7934SMark.Phalan@Sun.COM # include <TargetConditionals.h>
49*7934SMark.Phalan@Sun.COM #endif
50*7934SMark.Phalan@Sun.COM 
51*7934SMark.Phalan@Sun.COM #if defined(_WIN32)
52*7934SMark.Phalan@Sun.COM #define DEFAULT_PROFILE_FILENAME "krb5.ini"
53*7934SMark.Phalan@Sun.COM #define	DEFAULT_LNAME_FILENAME	"/aname"
54*7934SMark.Phalan@Sun.COM #define	DEFAULT_KEYTAB_NAME	"FILE:%s\\krb5kt"
55*7934SMark.Phalan@Sun.COM #else /* !_WINDOWS */
56*7934SMark.Phalan@Sun.COM #if TARGET_OS_MAC
57*7934SMark.Phalan@Sun.COM #define DEFAULT_SECURE_PROFILE_PATH "/Library/Preferences/edu.mit.Kerberos:/etc/krb5.conf:@SYSCONFDIR/krb5.conf"
58*7934SMark.Phalan@Sun.COM #define DEFAULT_PROFILE_PATH        ("~/Library/Preferences/edu.mit.Kerberos" ":" DEFAULT_SECURE_PROFILE_PATH)
59*7934SMark.Phalan@Sun.COM #define KRB5_PLUGIN_BUNDLE_DIR       "/System/Library/KerberosPlugins/KerberosFrameworkPlugins"
60*7934SMark.Phalan@Sun.COM #define KDB5_PLUGIN_BUNDLE_DIR       "/System/Library/KerberosPlugins/KerberosDatabasePlugins"
61*7934SMark.Phalan@Sun.COM #else
62*7934SMark.Phalan@Sun.COM /* Solaris Kerberos */
63*7934SMark.Phalan@Sun.COM #define DEFAULT_SECURE_PROFILE_PATH	"/etc/krb5/krb5.conf"
64*7934SMark.Phalan@Sun.COM #define DEFAULT_PROFILE_PATH        DEFAULT_SECURE_PROFILE_PATH
65*7934SMark.Phalan@Sun.COM #endif
66*7934SMark.Phalan@Sun.COM /* Solaris Kerberos */
670Sstevel@tonic-gate #define	DEFAULT_KEYTAB_NAME	"FILE:/etc/krb5/krb5.keytab"
68*7934SMark.Phalan@Sun.COM #endif /* _WINDOWS  */
690Sstevel@tonic-gate 
704960Swillf /* Solaris Kerberos: default for where ldap bind passwds stored */
714960Swillf #define DEF_SERVICE_PASSWD_FILE "/var/krb5/service_passwd"
724960Swillf 
73*7934SMark.Phalan@Sun.COM /* Solaris Kerberos */
74*7934SMark.Phalan@Sun.COM #define DEFAULT_KDB_FILE    "/var/krb5/principal"
75*7934SMark.Phalan@Sun.COM #define	DEFAULT_KEYFILE_STUB	"/var/krb5/.k5."
76*7934SMark.Phalan@Sun.COM #define KRB5_DEFAULT_ADMIN_ACL	"/etc/krb5/krb5_adm.acl"
770Sstevel@tonic-gate 
78*7934SMark.Phalan@Sun.COM #define	DEFAULT_ADMIN_ACL	"@LOCALSTATEDIR/krb5kdc/kadm_old.acl"
790Sstevel@tonic-gate 
800Sstevel@tonic-gate /* Location of KDC profile */
81*7934SMark.Phalan@Sun.COM /* Solaris Kerberos */
820Sstevel@tonic-gate #define	DEFAULT_KDC_PROFILE	"/etc/krb5/kdc.conf"
830Sstevel@tonic-gate #define	KDC_PROFILE_ENV		"KRB5_KDC_PROFILE"
840Sstevel@tonic-gate 
85*7934SMark.Phalan@Sun.COM #if TARGET_OS_MAC
86*7934SMark.Phalan@Sun.COM #define DEFAULT_KDB_LIB_PATH	{ KDB5_PLUGIN_BUNDLE_DIR, "@MODULEDIR/kdb", NULL }
87*7934SMark.Phalan@Sun.COM #else
88*7934SMark.Phalan@Sun.COM /* Solaris Kerberos */
894960Swillf #define DEFAULT_KDB_LIB_PATH	{ "/usr/lib/krb5", NULL }
90*7934SMark.Phalan@Sun.COM #endif
914960Swillf 
92781Sgtb /*
93781Sgtb  * SUNW14resync
94781Sgtb  * MIT 1.4 has changed to ENCTYPE_DES3_CBC_SHA1 but we stick with the old one
95781Sgtb  * for backward compat.
96781Sgtb  */
97781Sgtb #define DEFAULT_KDC_ENCTYPE	ENCTYPE_DES_CBC_CRC
980Sstevel@tonic-gate #define	KDCRCACHE		"dfl:krb5kdc_rcache"
990Sstevel@tonic-gate 
100*7934SMark.Phalan@Sun.COM #define KDC_PORTNAME		"kerberos" /* for /etc/services or equiv. */
101*7934SMark.Phalan@Sun.COM #define KDC_SECONDARY_PORTNAME	"kerberos-sec" /* For backwards */
1020Sstevel@tonic-gate 					    /* compatibility with */
1030Sstevel@tonic-gate 					    /* port 750 clients */
1040Sstevel@tonic-gate 
105*7934SMark.Phalan@Sun.COM #define KRB5_DEFAULT_PORT	88
106*7934SMark.Phalan@Sun.COM #define KRB5_DEFAULT_SEC_PORT	750
1070Sstevel@tonic-gate 
108*7934SMark.Phalan@Sun.COM #define DEFAULT_KPASSWD_PORT	464
109*7934SMark.Phalan@Sun.COM #define KPASSWD_PORTNAME "kpasswd"
1100Sstevel@tonic-gate 
111*7934SMark.Phalan@Sun.COM #define DEFAULT_KDC_UDP_PORTLIST "88,750"
1120Sstevel@tonic-gate /* Solaris Kerberos: enabled TCP by default on port 88 */
113*7934SMark.Phalan@Sun.COM #define DEFAULT_KDC_TCP_PORTLIST	"88"
1140Sstevel@tonic-gate 
1150Sstevel@tonic-gate /* Solaris Kerberos: control # of kdc tcp connection */
1160Sstevel@tonic-gate #define	DEFAULT_KDC_TCP_CONNECTIONS	30
1170Sstevel@tonic-gate #define	MIN_KDC_TCP_CONNECTIONS	10
1180Sstevel@tonic-gate 
1190Sstevel@tonic-gate /*
1200Sstevel@tonic-gate  * Defaults for the KADM5 admin system.
1210Sstevel@tonic-gate  */
122*7934SMark.Phalan@Sun.COM /* Solaris Kerberos */
123*7934SMark.Phalan@Sun.COM #define DEFAULT_KADM5_KEYTAB	"/etc/krb5/kadm5.keytab"
124*7934SMark.Phalan@Sun.COM #define DEFAULT_KADM5_ACL_FILE	"/etc/krb5/kadm5.acl"
125*7934SMark.Phalan@Sun.COM #define DEFAULT_KADM5_PORT	749 /* assigned by IANA */
1260Sstevel@tonic-gate 
127*7934SMark.Phalan@Sun.COM #define MAX_DGRAM_SIZE	4096
128*7934SMark.Phalan@Sun.COM #define MAX_SKDC_TIMEOUT 30
129*7934SMark.Phalan@Sun.COM #define SKDC_TIMEOUT_SHIFT 2		/* left shift of timeout for backoff */
130*7934SMark.Phalan@Sun.COM #define SKDC_TIMEOUT_1 1		/* seconds for first timeout */
1310Sstevel@tonic-gate 
132*7934SMark.Phalan@Sun.COM #define KRB5_ENV_CCNAME	"KRB5CCNAME"
1330Sstevel@tonic-gate 
1340Sstevel@tonic-gate /*
1350Sstevel@tonic-gate  * krb5 slave support follows
1360Sstevel@tonic-gate  */
1370Sstevel@tonic-gate 
138*7934SMark.Phalan@Sun.COM /* Solaris Kerberos */
139*7934SMark.Phalan@Sun.COM #define KPROP_DEFAULT_FILE "/var/krb5/slave_datatrans"
140*7934SMark.Phalan@Sun.COM #define KPROPD_DEFAULT_FILE "/var/krb5/from_master"
141*7934SMark.Phalan@Sun.COM #define KPROPD_DEFAULT_KDB5_UTIL "/usr/sbin/kdb5_util"
142*7934SMark.Phalan@Sun.COM #define KPROPD_DEFAULT_KDB5_EDIT "/usr/sbin/kdb5_edit"
143*7934SMark.Phalan@Sun.COM #define KPROPD_DEFAULT_KRB_DB DEFAULT_KDB_FILE
144*7934SMark.Phalan@Sun.COM #define KPROPD_ACL_FILE "/etc/krb5/kpropd.acl"
1450Sstevel@tonic-gate 
146*7934SMark.Phalan@Sun.COM #endif /* KRB5_OSCONF__ */
147