diff options
| author | Mark Eichin <eichin@mit.edu> | 1994-06-09 23:38:25 +0000 |
|---|---|---|
| committer | Mark Eichin <eichin@mit.edu> | 1994-06-09 23:38:25 +0000 |
| commit | a58ac1b844b03d10ab35725dfe8eb5aeb15f8c74 (patch) | |
| tree | 145c663dec17ab21772221dd50910a20c48ddf6e /src/include | |
| parent | bfada90ca02dc1dc5c554eddf8ccba269e24ab99 (diff) | |
| download | krb5-a58ac1b844b03d10ab35725dfe8eb5aeb15f8c74.tar.gz krb5-a58ac1b844b03d10ab35725dfe8eb5aeb15f8c74.tar.xz krb5-a58ac1b844b03d10ab35725dfe8eb5aeb15f8c74.zip | |
use autoconf to set config variables
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3691 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/krb5/acconfig.h | 27 | ||||
| -rw-r--r-- | src/include/krb5/config.h | 91 | ||||
| -rw-r--r-- | src/include/krb5/osconf.h | 80 |
3 files changed, 198 insertions, 0 deletions
diff --git a/src/include/krb5/acconfig.h b/src/include/krb5/acconfig.h new file mode 100644 index 000000000..4b55bfde4 --- /dev/null +++ b/src/include/krb5/acconfig.h @@ -0,0 +1,27 @@ +/* just stuff needed by kerberos 5 */ + +#undef ANSI_STDIO +#undef BITS32 +#undef HAS_ANSI_CONST +#undef HAS_ANSI_VOLATILE +#undef HAS_STDLIB_H +#undef HAS_STRDUP +#undef HAS_VOID_TYPE +#undef KRB5_PROVIDE_PROTOTYPES +#undef NEED_SYS_FCNTL_H +#undef NO_NESTED_PROTOTYPES +#undef NO_STDLIB_H +#undef NO_YYLINENO +#undef POSIX_FILE_LOCKS +#undef POSIX_SIGTYPE +#undef POSIX_TERMIOS +#undef POSIX_TYPES +#undef STDARG_PROTOTYPES +#undef USE_DIRENT_H +#undef USE_STRING_H +#undef WAIT_USES_INT +#undef krb5_sigtype +#undef HAS_UNISTD_H +#undef KRB5_USE_INET +#undef ODBM +#undef USE_SYS_TIME_H diff --git a/src/include/krb5/config.h b/src/include/krb5/config.h new file mode 100644 index 000000000..03387a928 --- /dev/null +++ b/src/include/krb5/config.h @@ -0,0 +1,91 @@ +#ifdef UnifdefRan +/* WARNING: this file is automatically generated; do not edit! */ +#endif +/* + * $Source$ + * $Author$ + * $Id$ + * + * Copyright 1990,1991 by the Massachusetts Institute of Technology. + * All Rights Reserved. + * + * Export of this software from the United States of America may + * require a specific license from the United States Government. + * It is the responsibility of any person or organization contemplating + * export to obtain such a license before exporting. + * + * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and + * distribute this software and its documentation for any purpose and + * without fee is hereby granted, provided that the above copyright + * notice appear in all copies and that both that copyright notice and + * this permission notice appear in supporting documentation, and that + * the name of M.I.T. not be used in advertising or publicity pertaining + * to distribution of the software without specific, written prior + * permission. M.I.T. makes no representations about the suitability of + * this software for any purpose. It is provided "as is" without express + * or implied warranty. + * + * + * Configuration definition file. + */ + + +#ifndef KRB5_CONFIG__ +#define KRB5_CONFIG__ + +#ifndef KRB5_AUTOCONF__ +#define KRB5_AUTOCONF__ +#include "autoconf.h" +#endif + +#ifdef SYSV +/* Change srandom and random to use rand and srand */ +/* Taken from the Sandia changes. XXX We should really just include */ +/* srandom and random into Kerberos release, since rand() is a really */ +/* bad random number generator.... [tytso:19920616.2231EDT] */ +#define random() rand() +#define srandom(a) srand(a) +#ifndef unicos61 +#define utimes(a,b) utime(a,b) +#endif /* unicos61 */ +#endif /* SYSV */ + +/* XXX these should be parameterized soon... */ +#define PROVIDE_DES_CBC_CRC +#define PROVIDE_RAW_DES_CBC +#define PROVIDE_CRC32 +#define PROVIDE_DES_CBC_CKSUM +#define PROVIDE_RSA_MD4 +#define PROVIDE_RSA_MD5 + +#define DEFAULT_PWD_STRING1 "Enter password:" +#define DEFAULT_PWD_STRING2 "Re-enter password for verification:" + +#define KRB5_KDB_MAX_LIFE (60*60*24) /* one day */ +#define KRB5_KDB_MAX_RLIFE (60*60*24*7) /* one week */ +#define KRB5_KDB_EXPIRATION 2145830400 /* Thu Jan 1 00:00:00 2038 UTC */ + +#ifdef Krb4Compat +#define KRB5_KRB4_COMPAT +#endif + +/* + * For paranoid DOE types that don't want to give helpful error + * messages to the client....er, attacker + */ +#undef KRBCONF_VAGUE_ERRORS + +/* + * Define this if you want the KDC to modify the Kerberos database; + * this allows the last request information to be updated, as well as + * the failure count information. + * + * Note that this doesn't work if you're using slave servers!!! It + * also causes the database to be modified (and thus need to be + * locked) frequently. + */ +#undef KRBCONF_KDC_MODIFIES_KDB + + +#endif /* KRB5_CONFIG__ */ + diff --git a/src/include/krb5/osconf.h b/src/include/krb5/osconf.h new file mode 100644 index 000000000..a0dac410c --- /dev/null +++ b/src/include/krb5/osconf.h @@ -0,0 +1,80 @@ +#ifdef UnifdefRan +/* WARNING: this file is automatically generated; do not edit! */ +#endif +/* + * $Source$ + * $Author$ + * $Id$ + * + * Copyright 1990,1991 by the Massachusetts Institute of Technology. + * All Rights Reserved. + * + * Export of this software from the United States of America may + * require a specific license from the United States Government. + * It is the responsibility of any person or organization contemplating + * export to obtain such a license before exporting. + * + * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and + * distribute this software and its documentation for any purpose and + * without fee is hereby granted, provided that the above copyright + * notice appear in all copies and that both that copyright notice and + * this permission notice appear in supporting documentation, and that + * the name of M.I.T. not be used in advertising or publicity pertaining + * to distribution of the software without specific, written prior + * permission. M.I.T. makes no representations about the suitability of + * this software for any purpose. It is provided "as is" without express + * or implied warranty. + * + * + * Site- and OS- dependant configuration. + */ + + +#ifndef KRB5_OSCONF__ +#define KRB5_OSCONF__ + +#ifndef KRB5_AUTOCONF__ +#define KRB5_AUTOCONF__ +#include "autoconf.h" +#endif + +#ifdef USE_SYS_TIME_H +#ifdef TIME_WITH_SYS_TIME +#define USE_TIME_H +#endif /* TIME_WITH_SYS_TIME */ +#else /* !USE_SYS_TIME_H */ +#define USE_TIME_H +#endif /* USE_SYS_TIME_H */ + +#define USE_DBM_LNAME /* Use a DBM database for the aname/lname + conversion */ + +#define DEFAULT_CONFIG_FILENAME "@KRB5ROOT/krb.conf" +#define DEFAULT_TRANS_FILENAME "@KRB5ROOT/krb.realms" +#define DEFAULT_LNAME_FILENAME "@KRB5ROOT/aname" +#define DEFAULT_KEYTAB_NAME "FILE:@KRB5SRVTABDIR/v5srvtab" + +#define DEFAULT_KDB_FILE "@KDB5DIR/principal" +#define DEFAULT_ADMIN_ACL "@KDB5DIR/admin_acl_file" + +#define DEFAULT_KDC_ETYPE ETYPE_DES_CBC_CRC +#define DEFAULT_KDC_KEYTYPE KEYTYPE_DES +#define KDCRCACHE "dfl:krb5kdc_rcache" + +#define KDC_PORTNAME "kerberos" /* for /etc/services or equiv. */ +#define KDC_SECONDARY_PORTNAME "kerberos-sec" /* For backwards */ + /* compatibility with */ + /* port 750 clients */ + +#define MAX_DGRAM_SIZE 4096 +#define MAX_SKDC_TIMEOUT 30 +#define SKDC_TIMEOUT_SHIFT 2 /* left shift of timeout for backoff */ +#define SKDC_TIMEOUT_1 1 /* seconds for first timeout */ + +#define RCTMPDIR "/usr/tmp" /* directory to store replay caches */ + +#define KRB5_PATH_TTY "/dev/tty" +#define KRB5_PATH_LOGIN "@KRB5ROOT/sbin/login.krb5" +#define KRB5_PATH_RLOGIN "@KRB5ROOT/bin/rlogin" + +#endif /* KRB5_OSCONF__ */ |
